undefined reference on make
Eric Younkin - NOAA Federal
eric.g.younkin at noaa.gov
Fri Apr 13 16:13:17 UTC 2018
I did install it, during configure for libqmi it gives me this statement:
*checking for mbim-glib >= 1.14.0... yes*
Which I am guessing means it found it ok. I tried a make clean and then
remaking both libmbim and libqmi using your steps. Got the same result.
I tried again without qmi and mbim. That seemed to get me past that part
of the makefile. Not sure what I'm doing wrong here. From my limited
understanding of this stuff, I believe mbim is mostly for WWAN protocols?
I'm trying to build in support for my Iriidum modem, so I don't think I
need it anyway.
It's built now. I just needed udev support. I'm going to try and build a
rule for the iridium modem / baud rate I have as you suggested months ago.
Just now got back to it!
Thanks again,
Eric
On Wed, Apr 11, 2018 at 5:56 PM, Aleksander Morgado <
aleksander at aleksander.es> wrote:
> >
> > In building libqmi-glib, I get these two undefined reference errors.
> Should
> > I be including a specific header file that isn't included somewhere?
> >
> > Full disclosure, I'm attempting to build for raspberry pi
> > (arm-linux-gnueabihf).
> >
> > Making all in .
> > make[4]: Entering directory
> > '/home/pi/Downloads/libqmi-1.20.0/src/libqmi-glib'
> > CC libqmi_glib_la-qmi-enums-wds.lo
> > CC libqmi_glib_la-qmi-enums-dms.lo
> > CC libqmi_glib_la-qmi-utils.lo
> > CC libqmi_glib_la-qmi-compat.lo
> > CC libqmi_glib_la-qmi-message.lo
> > CC libqmi_glib_la-qmi-message-context.lo
> > CC libqmi_glib_la-qmi-device.lo
> > CC libqmi_glib_la-qmi-client.lo
> > CC libqmi_glib_la-qmi-proxy.lo
> > CCLD libqmi-glib.la
> > make[4]: Leaving directory
> > '/home/pi/Downloads/libqmi-1.20.0/src/libqmi-glib'
> > Making all in test
> > make[4]: Entering directory
> > '/home/pi/Downloads/libqmi-1.20.0/src/libqmi-glib/test'
> > CC test_utils-test-utils.o
> > CCLD test-utils
> > ../../../src/libqmi-glib/.libs/libqmi-glib.so: undefined reference to
> > `mbim_message_qmi_msg_set_new'
> > ../../../src/libqmi-glib/.libs/libqmi-glib.so: undefined reference to
> > `mbim_message_response_get_result'
> > collect2: error: ld returned 1 exit status
> > Makefile:448: recipe for target 'test-utils' failed
> > make[4]: *** [test-utils] Error 1
> > make[4]: Leaving directory
> > '/home/pi/Downloads/libqmi-1.20.0/src/libqmi-glib/test'
> > Makefile:689: recipe for target 'all-recursive' failed
> > make[3]: *** [all-recursive] Error 1
> > make[3]: Leaving directory
> > '/home/pi/Downloads/libqmi-1.20.0/src/libqmi-glib'
> > Makefile:378: recipe for target 'all-recursive' failed
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory '/home/pi/Downloads/libqmi-1.20.0/src'
> > Makefile:434: recipe for target 'all-recursive' failed
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory '/home/pi/Downloads/libqmi-1.20.0'
> > Makefile:366: recipe for target 'all' failed
> > make: *** [all] Error 2
> >
>
> Did you also build libmbim before trying to build libqmi?
> Did you install libmbim in e.g. /usr? or some other prefix?
> This looks like libmbim was installed in a path out of LD_LIBRARY_PATH.
>
> You can probably solve this just by installing in /usr everything
> (both libmbim and libqmi), e.g.:
> $ ./configure --prefix=/usr
> $ make
> $ sudo make install
>
> Another option could be to build libqmi without mbim support if you
> don't need that:
> $ ./configure --disable-mbim-qmux
> ...
>
>
> --
> Aleksander
> https://aleksander.es
>
--
Eric Younkin
Physical Scientist
NOAA OCS, Hydrographic Systems and Technology Branch
1315 East-West Highway
N/CS11, Room 6604
Silver Spring, MD 20910
Office: 240-847-8208
Cell: 828-331-8197
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20180413/d4278515/attachment.html>
More information about the libqmi-devel
mailing list