error on make
Hi, I am trying to compile gpsd, a version of it for my earthmate delorme GPS and I get an error on make, I can't seem to figure it out. The website for the version of gpsd that I am using is here http://trans.civil.northwestern.edu/~jay/gpsd.html
Here are the errors I am getting gcc -o gpsd gpsd.o -L. -lgpsd -lnsl -lm -lc -lusb ./libgpsd.a(m8.o): In function `takeover_device': /root/gpsd-1.10_earthmate_usb/m8.c:129: undefined reference to `usb_get_driver_np' /root/gpsd-1.10_earthmate_usb/m8.c:135: undefined reference to `usb_detach_kernel_driver_np' ./libgpsd.a(m8.o): In function `m8_findDevice': /root/gpsd-1.10_earthmate_usb/m8.c:211: undefined reference to `usb_get_string_simple' /root/gpsd-1.10_earthmate_usb/m8.c:201: undefined reference to `usb_get_string_simple' /root/gpsd-1.10_earthmate_usb/m8.c:190: undefined reference to `usb_get_string_simple' ./libgpsd.a(m8.o): In function `handle_M8input': /root/gpsd-1.10_earthmate_usb/m8.c:361: undefined reference to `usb_interrupt_read' collect2: ld returned 1 exit status make: *** [gpsd] Error 1 I am using redhat 8.0 with stock kernel. I thought it was the libusb so i downloaded the newest version and still get the same error. HELP thanks |
Did you download a development version of the lib with header files?
The headers may not match the version of the lib and is giving you problems. |
I downloaded the current stable, should i have something else?
|
Most packages dont have header files with libs, so they have a devlopment versions of the libraries that have headers installed as well. Where did you get libusb from?
|
http://libusb.sourceforge.net/download.html#stable
is there i got it from.... |
Hmm, this does contain the headers and everthing.
Sorry if you have but I gotta ask... do you configure make and make install ( as root ) libusb? Also you did set the correct prefix for configure? ( it defaults too /usr/local which would be wrong for most systems. ) |
I did not set the prefix in configure, what would i set it to?
|
usually you should set the prefix for /usr ( this is normally where things reside ).
|
What it is happenning with 'undefined reference to'?
I'm working with gnokii proyect and a get the same problem:
undefined reference to 'usb_get_string_simple' Do I have to update my kernel? I use kernel 2.4.20-8 but my friend laclac01 says that the problem follows. ./configure --prefix=/usr/ --enable-security : this is well gmake : this is bad. Here is the trouble. What can/should I do? |
All times are GMT -5. The time now is 08:52 PM. |