<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>I was able to build and install latest version of libqmi by the
following commands:</p>
<p><span><span
class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"
dir="ltr">sudo apt install git meson cmake libgudev-1.0-dev
libmbim-glib-dev help2man flex bison libghc-doctemplates-doc<br>
git clone <a
aria-label="Link https://gitlab.gnome.org/GNOME/gobject-introspection.git"
href="https://gitlab.gnome.org/GNOME/gobject-introspection.git"
rel="noreferrer noopener" target="_blank"
class="fui-Link ___10kug0w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn moz-txt-link-freetext"
title="https://gitlab.gnome.org/gnome/gobject-introspection.git"
style="overflow-wrap: break-word;">https://gitlab.gnome.org/GNOME/gobject-introspection.git</a><br>
git clone --depth 1 <a
aria-label="Link https://gitlab.freedesktop.org/mobile-broadband/libqrtr-glib.git"
href="https://gitlab.freedesktop.org/mobile-broadband/libqrtr-glib.git"
rel="noreferrer noopener" target="_blank"
class="fui-Link ___10kug0w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn moz-txt-link-freetext"
title="https://gitlab.freedesktop.org/mobile-broadband/libqrtr-glib.git"
style="overflow-wrap: break-word;">https://gitlab.freedesktop.org/mobile-broadband/libqrtr-glib.git<br>
</a>git clone <a
aria-label="Link https://gitlab.freedesktop.org/mobile-broadband/libqmi.git"
href="https://gitlab.freedesktop.org/mobile-broadband/libqmi.git"
rel="noreferrer noopener" target="_blank"
class="fui-Link ___10kug0w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn moz-txt-link-freetext"
title="https://gitlab.freedesktop.org/mobile-broadband/libqmi.git"
style="overflow-wrap: break-word;">https://gitlab.freedesktop.org/mobile-broadband/libqmi.git</a><br>
</span></span><span><span
class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"
dir="ltr">
cd gobject-introspection<br>
mkdir build<br>
cd build<br>
meson --prefix=/usr --buildtype=release ..<br>
sudo ninja -C . install<br>
cd ..<br>
cd ..<br>
cd libqrtr-glib<br>
meson setup build --prefix=/usr<br>
sudo ninja -C build install<br>
cd ..<br>
cd libqmi<br>
meson setup build --prefix=/usr<br>
sudo ninja -C build install<br>
cd ..</span></span></p>
<p><span><span
class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"
dir="ltr"><br>
</span></span></p>
<p><span><span
class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"
dir="ltr">$ qmicli --version<br>
qmicli 1.33.8<br>
Copyright (C) 2012-2023 Aleksander Morgado<br>
License GPLv2+: GNU GPL version 2 or later
<a class="moz-txt-link-rfc2396E" href="http://gnu.org/licenses/gpl-2.0.html"><http://gnu.org/licenses/gpl-2.0.html></a><br>
This is free software: you are free to change and redistribute
it.<br>
There is NO WARRANTY, to the extent permitted by law.<br>
<br>
$<br>
<br>
</span></span></p>
<p><span><span
class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"
dir="ltr"><br>
</span></span></p>
<p><span><span
class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"
dir="ltr">Then the error "free(): double free detected in
tcache 2" seems to go away. Looks like my version (the current
default version of Raspberry Pi OS from May 2023) was too old.</span></span></p>
<p><span><span
class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"
dir="ltr"><br>
</span></span></p>
<p><span><span
class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"
dir="ltr">One small followup question: How can I generate (or
find) the Python API documentation for this latest up-to-date
version?</span></span></p>
<p><span><span
class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"
dir="ltr">I have seen (or found out) that now</span></span><span><span
class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"
dir="ltr"></span></span></p>
<p>revision = output.get_revision()</p>
<p>only return the revision itself, not more</p>
<p>available, revision = output.get_revision()</p>
<p>like in the old version.</p>
<p>( old version was from here:
<a class="moz-txt-link-freetext" href="https://lazka.github.io/pgi-docs/Qmi-1.0/classes/MessageDmsGetRevisionOutput.html#Qmi.MessageDmsGetRevisionOutput">https://lazka.github.io/pgi-docs/Qmi-1.0/classes/MessageDmsGetRevisionOutput.html#Qmi.MessageDmsGetRevisionOutput</a>
)<br>
</p>
<p>Best regards,</p>
<p>Martin<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">Am 23.09.2023 um 13:09 schrieb Martin
Maurer:<br>
</div>
<blockquote type="cite"
cite="mid:0f5d35dd-a61e-4c2d-aea0-f1c452cb3b79@mmeacs.de">I also
opened a topic in Raspberry forum and asked there for help. You
can find the post here:
<br>
<br>
<a class="moz-txt-link-freetext" href="https://forums.raspberrypi.com/viewtopic.php?t=356710">https://forums.raspberrypi.com/viewtopic.php?t=356710</a>
<br>
<br>
<br>
Am 23.09.2023 um 13:04 schrieb Martin Maurer:
<br>
<blockquote type="cite">Hello Aleksander,
<br>
<br>
I already tried to update (via sudo apt
update/upgrade/dist-upgrade) my version on Raspberry Pi 4,
<br>
<br>
but version is and stays at 1.26.10-0.1
<br>
<br>
<br>
trio@radio2:~ $ qmicli --version
<br>
qmicli 1.26.10
<br>
Copyright (C) 2012-2020 Aleksander Morgado
<br>
License GPLv2+: GNU GPL version 2 or later
<a class="moz-txt-link-rfc2396E" href="http://gnu.org/licenses/gpl-2.0.html"><http://gnu.org/licenses/gpl-2.0.html></a>
<br>
This is free software: you are free to change and redistribute
it.
<br>
There is NO WARRANTY, to the extent permitted by law.
<br>
<br>
trio@radio2:~ $ sudo apt list | grep libqmi
<br>
<br>
WARNING: apt does not have a stable CLI interface. Use with
caution in scripts.
<br>
<br>
libqmi-glib-dev/oldstable,now 1.26.10-0.1 arm64 [installed]
<br>
libqmi-glib-dev/oldstable 1.26.10-0.1 armhf
<br>
libqmi-glib-doc/oldstable,oldstable 1.26.10-0.1 all
<br>
libqmi-glib5/oldstable,now 1.26.10-0.1 arm64
[installed,automatic]
<br>
libqmi-glib5/oldstable 1.26.10-0.1 armhf
<br>
libqmi-proxy/oldstable,now 1.26.10-0.1 arm64
[installed,automatic]
<br>
libqmi-proxy/oldstable 1.26.10-0.1 armhf
<br>
libqmi-utils/oldstable,now 1.26.10-0.1 arm64 [installed]
<br>
libqmi-utils/oldstable 1.26.10-0.1 armhf
<br>
trio@radio2:~ $
<br>
<br>
How can I update, what is already delivered by my system?
<br>
<br>
Or is the way to go to download libqmi sources and
build/install.
<br>
<br>
Will it update the part which could make me problems?
<br>
<br>
Take the sources from here? Is this the most up-to-date-version?
<br>
<br>
<a class="moz-txt-link-freetext" href="https://gitlab.freedesktop.org/mobile-broadband/libqmi">https://gitlab.freedesktop.org/mobile-broadband/libqmi</a>
<br>
<br>
1.26.10 seems to be around 2 years old.
<br>
<br>
<a class="moz-txt-link-freetext" href="https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/tags/1.26.10">https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/tags/1.26.10</a>
<br>
<br>
How to officially get a newer version into Raspberry Pi OS
Environment? Do you/does someone know?
<br>
<br>
Many thanks!
<br>
<br>
Best regards,
<br>
<br>
Martin
<br>
<br>
<br>
Am 22.09.2023 um 15:04 schrieb Aleksander Morgado:
<br>
<blockquote type="cite">Hey,
<br>
<br>
<blockquote type="cite">I am trying to learn how to use the
Python API of libqmi.
<br>
I extended the simple-tester-python.py to press a key and
query some information.
<br>
When trying to get the revision, I get the correct revision,
but afterwards I get the error message “free(): double free
detected in tcache 2”.
<br>
I tried the same with getting the model, and same behaviour:
Model can be printed and is correct, but then same error
message.
<br>
</blockquote>
What libqmi version are you using?
<br>
<br>
</blockquote>
</blockquote>
</blockquote>
</body>
</html>