QMICLI/symbol lookup error

Aleksander Morgado aleksander at aleksander.es
Sun Mar 13 10:52:43 UTC 2016


On Sun, Mar 13, 2016 at 8:48 AM, Sebastian Sjoholm
<sebastian.sjoholm at gmail.com> wrote:
> Regarding the issue with qmicli. I have removed the apt installed qmicli package and compiled from GIT master the latest version.
>
>>
>> Looks like qmicli from git master, trying to use libqmi-glib from your
>> system-installed package. If you installed libqmi somewhere else not
>> in /usr, you'll need LD_LIBRARY_PATH; e.g.:
>>
>> $ LD_LIBRARY_PATH=/path/somewhere/lib /path/somewhere/bin/qmicli --version
>>
>
>
> root at SBC13:/opt/libqmi# qmicli -d /dev/cdc-wdm0 -e -v
> [13 Mar 2016, 08:22:38] [Debug] [/dev/cdc-wdm0] Opening device with flags 'none'...
> [13 Mar 2016, 08:22:38] [Debug] QMI Device at '/dev/cdc-wdm0' ready
> [13 Mar 2016, 08:22:38] [Debug] Getting expected WWAN data format this control port...
> qmicli: symbol lookup error: qmicli: undefined symbol: qmi_device_get_expected_data_format
> root at SBC05:~#
>
> When using the “LD_LIBRARY_PATH” in front, then it will work as specified.
>
> root at SBC05:~# LD_LIBRARY_PATH=/usr/lib/ /usr/bin/qmicli -d /dev/cdc-wdm0 -e
> 802-3
> root at SBC05:~#
>
> So basically by setting the LD_LIBRARY_PATH like:
>
> export LD_LIBRARY_PATH=/usr/lib/
>
> will fix it.

This is really an issue with your own setup, not something we can fix
in libqmi. A mixup with where lib/cli are installed or something.

What's the output of this? This should tell you where qmicli is
looking for libqmi by default.
$ ldd /usr/bin/qmicli | grep libqmi


-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list