Fw: question about qmicli

Galo Irarrazabal girarraz at hotmail.com
Tue Oct 27 13:06:19 UTC 2020


Hi Aleksander,
I will try with what you indicated, and thank you very much

Galo Irarrazabal


________________________________
From: Aleksander Morgado <aleksander at aleksander.es>
Sent: Tuesday, October 27, 2020 1:49 AM
To: Galo Irarrazabal <girarraz at hotmail.com>
Cc: libqmi-devel at lists.freedesktop.org <libqmi-devel at lists.freedesktop.org>
Subject: Re: Fw: question about qmicli

Hey,

>
> I've execute : ./configure --prefix=/usr --disable-static
>
> if i execute the command
>
>  sudo  qmicli -d /dev/cdc-wdm0 -p --nas-get-signal-info --client-cid=1 --client-no-release-cid
> [/dev/cdc-wdm0] Successfully got signal info
> LTE:
>         RSSI: '-75 dBm'
>         RSRQ: '-14 dB'
>         RSRP: '-106 dBm'
>         SNR: '-0.4 dB'
> qmicli: symbol lookup error: qmicli: undefined symbol: qmi_message_nas_get_signal_info_output_get_tdma_signal_strength_extended
>
> but no problem, if it works ...
>

No, you shouldn't leave that setup like that, qmicli is still crashing.

It looks like your distribution isn't using /usr/lib by default for
libdir, which is why this is breaking like this. Instead of the
configure with only --prefix, do the following:

// clear your previous installation that you did with --prefix=/usr
$ sudo make uninstall

// now configure also specifying --libdir, e.g. I would bet you're
using Ubuntu or similar, so:
$ ./configure --prefix=/usr --disable-static --libdir=/usr/lib/x86_64-linux-gnu
$ make -j8 && sudo make install

// and now retry the qmicli command, e.g.
$ sudo  qmicli -d /dev/cdc-wdm0 -p --nas-get-signal-info


> another question is
>
> for dms executions qmi commands
>
> --dms-get-revision and --dms-get-ids specifically
>
> 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 ?
>

You could allocate a DMS client also for those, e.g. using --dms-noop
instead, but well, if it's only 2 commands and you're not going to
poll them over and over, you could just run them without the explicit
client allocation logic.

--
Aleksander
https://aleksander.es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20201027/a0bef95a/attachment.htm>


More information about the libqmi-devel mailing list