<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Aleksander,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I will try with what you indicated, and thank you very much</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Galo Irarrazabal</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size: 11pt;"><b>From:</b> Aleksander Morgado <aleksander@aleksander.es><br>
<b>Sent:</b> Tuesday, October 27, 2020 1:49 AM<br>
<b>To:</b> Galo Irarrazabal <girarraz@hotmail.com><br>
<b>Cc:</b> libqmi-devel@lists.freedesktop.org <libqmi-devel@lists.freedesktop.org><br>
<b>Subject:</b> Re: Fw: question about qmicli</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Hey,<br>
<br>
><br>
> I've execute : ./configure --prefix=/usr --disable-static<br>
><br>
> if i execute the command<br>
><br>
> sudo qmicli -d /dev/cdc-wdm0 -p --nas-get-signal-info --client-cid=1 --client-no-release-cid<br>
> [/dev/cdc-wdm0] Successfully got signal info<br>
> LTE:<br>
> RSSI: '-75 dBm'<br>
> RSRQ: '-14 dB'<br>
> RSRP: '-106 dBm'<br>
> SNR: '-0.4 dB'<br>
> qmicli: symbol lookup error: qmicli: undefined symbol: qmi_message_nas_get_signal_info_output_get_tdma_signal_strength_extended<br>
><br>
> but no problem, if it works ...<br>
><br>
<br>
No, you shouldn't leave that setup like that, qmicli is still crashing.<br>
<br>
It looks like your distribution isn't using /usr/lib by default for<br>
libdir, which is why this is breaking like this. Instead of the<br>
configure with only --prefix, do the following:<br>
<br>
// clear your previous installation that you did with --prefix=/usr<br>
$ sudo make uninstall<br>
<br>
// now configure also specifying --libdir, e.g. I would bet you're<br>
using Ubuntu or similar, so:<br>
$ ./configure --prefix=/usr --disable-static --libdir=/usr/lib/x86_64-linux-gnu<br>
$ make -j8 && sudo make install<br>
<br>
// and now retry the qmicli command, e.g.<br>
$ sudo qmicli -d /dev/cdc-wdm0 -p --nas-get-signal-info<br>
<br>
<br>
> another question is<br>
><br>
> for dms executions qmi commands<br>
><br>
> --dms-get-revision and --dms-get-ids specifically<br>
><br>
> i need a cid to execute too? ie execute a similar command "sudo qmicli -d /dev/cdc-wdm0 -p --nas-noop --client-no-release-cid" to get cid and then use the cid in te commnad inside the loop ?<br>
><br>
<br>
You could allocate a DMS client also for those, e.g. using --dms-noop<br>
instead, but well, if it's only 2 commands and you're not going to<br>
poll them over and over, you could just run them without the explicit<br>
client allocation logic.<br>
<br>
-- <br>
Aleksander<br>
<a href="https://aleksander.es">https://aleksander.es</a><br>
</div>
</span></font></div>
</div>
</body>
</html>