gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-users] Cross Compiling gpsd for ARM


From: B. Simning
Subject: [gpsd-users] Cross Compiling gpsd for ARM
Date: Wed, 20 Nov 2013 15:30:31 -0600

I've been thrashing all afternoon trying to resolve an error when I am cross compiling for use within an embedded environment. What's particularly frustrating was the compile successfully completed the first time. When I tried to execute the gpsd on my target, it failed to resolve a library.

# ./gpsd_test -n -b -D 7 /dev/ttyUSB3
./gpsd_test: error while loading shared libraries: libgpsd.so.21: cannot open shared object 
file: No such file or directory

I tried changing the "prefix" within .scons-option-cache to see it would affect the pathing for the library. Now the compile fails with a "Error  -11". Restoring the "prefix" seems to have no effect.

Here is the console output. I executed a "scon -c" followed by "scon".

Any suggestions??

address@hidden:~/Downloads/release-3.9$ scons -c

scons: Reading SConscript files ...

Checking if compiler accepts -Wextra ...(cached) no

Checking if compiler accepts -Wall ...(cached) no

Checking if compiler accepts -Wno-uninitialized ...(cached) no

Checking if compiler accepts -Wno-missing-field-initializers ...(cached) no

Checking if compiler accepts -Wcast-align ...(cached) no

Checking if compiler accepts -Wmissing-declarations ...(cached) no

Checking if compiler accepts -Wmissing-prototypes ...(cached) no

Checking if compiler accepts -Wstrict-prototypes ...(cached) no

Checking if compiler accepts -Wpointer-arith ...(cached) no

Checking if compiler accepts -Wreturn-type ...(cached) no

Checking for chrpath... (cached) no

chrpath is not available or use of it has been disabled.

Checking whether the C++ compiler works(cached) no

Checking for ncurses... (cached) no

Checking for ncurses5-config... (cached) yes

Checking for libusb-1.0... (cached) yes

Checking for C library librt... (cached) no

Checking for C library libcap... (cached) no

Checking for bluez... (cached) yes

Checking for C header file sys/timepps.h... (cached) no

You do not have kernel PPS available.

Checking for C header file linux/can.h... (cached) no

You do not have kernel CANbus available.

Checking for C function daemon()... (cached) no

Checking for C function strlcpy()... (cached) no

Checking for C function strlcat()... (cached) no

Checking for C function clock_gettime()... (cached) no

Checking for C library libbluetooth... (cached) no

libbluetooth not found, bluez cannot be enabled.

Checking for C function pselect()... (cached) no

Checking that xsltproc can make man pages... (cached) yes

Altered configuration variables:

nmea2000 = False (default True): NMEA2000/CAN support

libgpsmm = False (default True): build C++ bindings

libQgpsmm = False (default True): build QT bindings

python = False (default True): build Python support and modules.

prefix = /home/puck/timesys/twr_vf600/rfs/usr/sbin/ (default /usr/local): installation directory prefix

target = armv7l-timesys-linux-gnueabi (default ): cross-development target

sysroot = /home/puck/timesys/twr_vf600/toolchain/ (default ): cross-development system root

scons: done reading SConscript files.

scons: Cleaning targets ...

Removed jsongen.py

Removed ais_json.i

Removed gpsd_config.h

Removed ais_json.os

Removed leapsecond.pyc

Removed directory .sconf_temp

scons: done cleaning targets.

address@hidden:~/Downloads/release-3.9$

address@hidden:~/Downloads/release-3.9$ scons

scons: Reading SConscript files ...

Checking if compiler accepts -Wextra ...(cached) no

Checking if compiler accepts -Wall ...(cached) no

Checking if compiler accepts -Wno-uninitialized ...(cached) no

Checking if compiler accepts -Wno-missing-field-initializers ...(cached) no

Checking if compiler accepts -Wcast-align ...(cached) no

Checking if compiler accepts -Wmissing-declarations ...(cached) no

Checking if compiler accepts -Wmissing-prototypes ...(cached) no

Checking if compiler accepts -Wstrict-prototypes ...(cached) no

Checking if compiler accepts -Wpointer-arith ...(cached) no

Checking if compiler accepts -Wreturn-type ...(cached) no

Checking for chrpath... (cached) no

chrpath is not available or use of it has been disabled.

Checking whether the C++ compiler works(cached) no

Checking for ncurses... (cached) no

Checking for ncurses5-config... (cached) yes

Checking for libusb-1.0... (cached) yes

Checking for C library librt... (cached) no

Checking for C library libcap... (cached) no

Checking for bluez... (cached) yes

Checking for C header file sys/timepps.h... (cached) no

You do not have kernel PPS available.

Checking for C header file linux/can.h... (cached) no

You do not have kernel CANbus available.

Checking for C function daemon()... (cached) no

Checking for C function strlcpy()... (cached) no

Checking for C function strlcat()... (cached) no

Checking for C function clock_gettime()... (cached) no

Checking for C library libbluetooth... (cached) no

libbluetooth not found, bluez cannot be enabled.

Checking for C function pselect()... (cached) no

Checking that xsltproc can make man pages... (cached) yes

Altered configuration variables:

nmea2000 = False (default True): NMEA2000/CAN support

libgpsmm = False (default True): build C++ bindings

libQgpsmm = False (default True): build QT bindings

python = False (default True): build Python support and modules.

prefix = /home/puck/timesys/twr_vf600/rfs/usr/sbin/ (default /usr/local): installation directory prefix

target = armv7l-timesys-linux-gnueabi (default ): cross-development target

sysroot = /home/puck/timesys/twr_vf600/toolchain/ (default ): cross-development system root

scons: done reading SConscript files.

scons: Building targets ...

substituter(["jsongen.py"], ["jsongen.py.in"])

chmod -w jsongen.py

chmod +x jsongen.py

rm -f ais_json.i && /usr/bin/python jsongen.py --ais --target=parser > ais_json.i && chmod a-w ais_json.i

Creating 'gpsd_config.h'

armv7l-timesys-linux-gnueabi-gcc -o ais_json.os -c -D_GNU_SOURCE --sysroot=/home/puck/timesys/twr_vf600/toolchain/ -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 -fPIC ais_json.c

armv7l-timesys-linux-gnueabi-gcc -o bits.os -c -D_GNU_SOURCE --sysroot=/home/puck/timesys/twr_vf600/toolchain/ -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 -fPIC bits.c

scons: *** [bits.os] Error -11

scons: building terminated because of errors.

address@hidden:~/Downloads/release-3.9$

  


reply via email to

[Prev in Thread] Current Thread [Next in Thread]