Hi, I'm new in cross-compiling and I need to compile libusb to be used in a software portable on arm architecture. I downloaded libusb-1.0.8 from http://sourceforge.net/projects/libusb/ and arm-linux-gcc-3.3.2.tar.bz2 from http://ftp.gwdg.de/linux/handhelds/projects/toolchain/ I extracted arm toolchain and added the subdirectory /bin/ to my PATH. I tryed to cross-compile a simple hello_world.c arm-linux-gcc hello_world.c And it worked fine. After that, I tryed to cross compile libusb. I moved into libusb directory and did: ./configure --host=arm-linux make after launching make, it stopped with the following error: os/linux_usbfs.c: In function `find_monotonic_clock': os/linux_usbfs.c:206: error: `CLOCK_MONOTONIC' undeclared (first use in this function) I've no idea what's talking about. Am I doing something wrong in cross-compiling? Or do I miss some tools? I'm sorry for my bad english and I thank you very much, I need this library for my thesis at University, nobody of my docents or mates can help me about cross-compiling.
Need help cross-compiling libusb with arm-linux-gcc
Perhaps, if you either post the script or list the commands you are using to do this someone might be able to help. It appears you have not included a library that is needed. Why are you not using the toolchain that comes on the CD or from the downloads page?
I followed the steps showed in this post: http://www.friendlyarm.net/forum/topic/2289 $ ./configure --host=arm-linux --prefix=/home/abhinit/libusb/install $ make $ make install but when I launch the first "make" command it shows me that error about CLOCK_MONOTONIC. I used the toolchain downloaded from the ftp link above provided me by my docent and I don't know where I should download it other than there.