last day (15 days later) » 

1:00 PM
0
A: libphidget cross building, libusb_init no, and cannot find usb.h

ashwanth selvamTo cross compile libusb follow the below steps ./configure --prefix=/home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/bin/ --host=arm-linux Then compile it make Finally install it make install

 
libtool: install: arm-linux-ranlib /home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/bin/lib/libusb-1.0.a ../libtool: line 1113: arm-linux-ranlib: command not found Makefile:319: recipe for target 'install-libLTLIBRARIES' failed make[2]: *** [install-libLTLIBRARIES] Error 127 make[2]: Leaving directory '/home/charlie/libusb-1.0.9/libusb' Makefile:603: recipe for target 'install-am' failed make[1]: *** [install-am] Error 2 make[1]: Leaving directory '/home/charlie/libusb-1.0.9/libusb' Makefile:362: recipe for target 'install-recursive' failed make: *** [install-recursive] Error 1
Not successful, when install it
 
can you provide me the complete output in some link. Did you follow the same three steps?
 
charlie@charlie-desktop:~/libusb-1.0.9$ ./configure --prefix=/home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/bin/ --host=arm-linux configure: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for arm-linux-strip... arm-linux-strip checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no checking for arm-linux-gcc... arm-linux-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether arm-linux-gcc accepts -g... yes checking for arm-linux-gcc option to accept ISO C89... none needed checking for style of include used by make... GNU
checking dependency style of arm-linux-gcc... gcc3 checking build system type... i686-pc-linux-gnu checking host system type... arm-unknown-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by arm-linux-gcc... /home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/arm-ntc-linux-gnueabi/bin/l‌​‌​d
checking if the linker (/home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/arm-ntc-linux-gnueabi/bin/‌​‌​ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... //home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/bin/arm-linux-nm -B checking the name lister (//home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/bin/arm-linux-nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes
checking for /home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/arm-ntc-linux-gnueabi/bin/l‌​‌​d option to reload object files... -r checking for arm-linux-objdump... arm-linux-objdump checking how to recognize dependent libraries... pass_all checking for arm-linux-ar... arm-linux-ar checking for arm-linux-strip... (cached) arm-linux-strip checking for arm-linux-ranlib... arm-linux-ranlib checking command to parse //home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/bin/arm-linux-nm -B output from arm-linux-gcc object... ok checking how to run the C preprocessor... arm-linux-gcc -E
checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if arm-linux-gcc supports -fno-rtti -fno-exceptions... no checking for arm-linux-gcc option to produce PIC... -fPIC -DPIC checking if arm-linux-gcc PIC flag -fPIC -DPIC works... yes
checking if arm-linux-gcc static flag -static works... yes checking if arm-linux-gcc supports -c -o file.o... yes checking if arm-linux-gcc supports -c -o file.o... (cached) yes checking whether the arm-linux-gcc linker (/home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/arm-ntc-linux-gnueabi/bin/‌​‌​ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for arm-linux-windres... no checking for windres... no checking for inline... inline checking whether arm-linux-gcc and cc understand -c and -o together... yes checking operating system... Linux checking for clock_gettime in -lrt... yes checking poll.h usability... yes checking poll.h presence... yes checking for poll.h... yes checking sys/timerfd.h usability... yes checking sys/timerfd.h presence... yes
checking for sys/timerfd.h... yes checking whether TFD_NONBLOCK is declared... yes checking whether to use timerfd for timing... yes checking for struct timespec... yes checking for sigaction... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for gettimeofday... yes configure: creating ./config.status config.status: creating libusb-1.0.pc config.status: creating Makefile config.status: creating libusb/Makefile config.status: creating examples/Makefile config.status: creating doc/Makefile
config.status: creating doc/doxygen.cfg config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands
charlie@charlie-desktop:~/libusb-1.0.9$ make make all-recursive make[1]: Entering directory '/home/charlie/libusb-1.0.9' Making all in libusb make[2]: Entering directory '/home/charlie/libusb-1.0.9/libusb' CC libusb_1_0_la-core.lo CC libusb_1_0_la-descriptor.lo CC libusb_1_0_la-io.lo CC libusb_1_0_la-sync.lo CC libusb_1_0_la-linux_usbfs.lo CC libusb_1_0_la-threads_posix.lo CCLD libusb-1.0.la make[2]: Leaving directory '/home/charlie/libusb-1.0.9/libusb' Making all in doc make[2]: Entering directory '/home/charlie/libusb-1.0.9/doc'
make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/charlie/libusb-1.0.9/doc' make[2]: Entering directory '/home/charlie/libusb-1.0.9' make[2]: Leaving directory '/home/charlie/libusb-1.0.9' make[1]: Leaving directory '/home/charlie/libusb-1.0.9' charlie@charlie-desktop:~/libusb-1.0.9$ sudo make install [sudo] password for charlie: Making install in libusb make[1]: Entering directory '/home/charlie/libusb-1.0.9/libusb' make[2]: Entering directory '/home/charlie/libusb-1.0.9/libusb'
test -z "/home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/bin/lib" || /bin/mkdir -p "/home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/bin/lib" /bin/bash ../libtool --mode=install /usr/bin/install -c libusb-1.0.la '/home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/bin/lib' libtool: install: /usr/bin/install -c .libs/libusb-1.0.so.0.1.0 /home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/bin/lib/libusb-1.0.so.0.1.0
libtool: install: (cd /home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/bin/lib && { ln -s -f libusb-1.0.so.0.1.0 libusb-1.0.so.0 || { rm -f libusb-1.0.so.0 && ln -s libusb-1.0.so.0.1.0 libusb-1.0.so.0; }; }) libtool: install: (cd /home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/bin/lib && { ln -s -f libusb-1.0.so.0.1.0 libusb-1.0.so || { rm -f libusb-1.0.so && ln -s libusb-1.0.so.0.1.0 libusb-1.0.so; }; }) libtool: install: /usr/bin/install -c .libs/libusb-1.0.lai /home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/bin/lib/libusb-1.0.la
libtool: install: /usr/bin/install -c .libs/libusb-1.0.a /home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/bin/lib/libusb-1.0.a libtool: install: chmod 644 /home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/bin/lib/libusb-1.0.a libtool: install: arm-linux-ranlib /home/charlie/SDK_Bovine_vdf_nwl12_2.0.18.9/compiler/bin/lib/libusb-1.0.a ../libtool: line 1113: arm-linux-ranlib: command not found Makefile:319: recipe for target 'install-libLTLIBRARIES' failed make[2]: *** [install-libLTLIBRARIES] Error 127 make[2]: Leaving directory '/home/charlie/libusb-1.0.9/libusb'
Makefile:603: recipe for target 'install-am' failed make[1]: *** [install-am] Error 2 make[1]: Leaving directory '/home/charlie/libusb-1.0.9/libusb' Makefile:362: recipe for target 'install-recursive' failed make: *** [install-recursive] Error 1
 
Do you have some means for communicating faster like skype
 
Sorry, no available
 
1:00 PM
The same steps are working for me. Can you open a new terminal and try these steps again. Do a make distclean. Can you send me the output of which arm-linux-ranlib ?
 
you are right. which arm-linux-ranlib show the PATH setting is wrong. after correct it fixes.
 
so your issue has been solved
 
Thanks, looks after cross compiling the libusb, the compiling continued and finished.
 

  last day (15 days later) »