Hi all, My name is Arturo Corrales and I've been working with the DM6446 for signal processing, in which I use an USB device to gather the audio information that I need to work with, and so transfer all the information via USB communication to the Davinci DM6446.
So far the USB device that I used for the information gathering works really well with the host PC, so I started adapting the USB driver so it can work in the Davinci DM6446 enviroment, and while doing this I found a problem while I tried to cross-compile an application that is needed to download the firmware to the USB Device. When I tried to do the cross-compilation of the application (C source code) it gives me this error: arm-linux-gnueabi-gcc -pipe -g fx2_programmer.c -lusb -o fx2_programmer fx2_programmer.c:4:17: error: usb.h: No such file or directory fx2_programmer.c: In function ‘dump_busses’: fx2_programmer.c:34: error: ‘usb_busses’ undeclared (first use in this function) fx2_programmer.c:34: error: (Each undeclared identifier is reported only once fx2_programmer.c:34: error: for each function it appears in.) fx2_programmer.c:37: error: dereferencing pointer to incomplete type fx2_programmer.c:40: error: dereferencing pointer to incomplete type fx2_programmer.c:40: error: dereferencing pointer to incomplete type fx2_programmer.c:40: error: dereferencing pointer to incomplete type fx2_programmer.c:40: error: dereferencing pointer to incomplete type fx2_programmer.c:41: error: dereferencing pointer to incomplete type fx2_programmer.c:41: error: dereferencing pointer to incomplete type fx2_programmer.c:43: error: dereferencing pointer to incomplete type fx2_programmer.c:45: error: dereferencing pointer to incomplete type fx2_programmer.c: In function ‘find_device’: fx2_programmer.c:54: error: ‘usb_busses’ undeclared (first use in this function) fx2_programmer.c:56: error: dereferencing pointer to incomplete type fx2_programmer.c:57: error: dereferencing pointer to incomplete type fx2_programmer.c:58: error: dereferencing pointer to incomplete type fx2_programmer.c:62: error: dereferencing pointer to incomplete type fx2_programmer.c:63: error: dereferencing pointer to incomplete type fx2_programmer.c:65: error: dereferencing pointer to incomplete type fx2_programmer.c: At top level: fx2_programmer.c:71: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token fx2_programmer.c: In function ‘dump_ram’: fx2_programmer.c:83: error: ‘current_handle’ undeclared (first use in this function) fx2_programmer.c: In function ‘dump_bulkdata’: fx2_programmer.c:108: error: ‘current_handle’ undeclared (first use in this function) fx2_programmer.c: In function ‘bench_bulk’: fx2_programmer.c:143: error: ‘current_handle’ undeclared (first use in this function) fx2_programmer.c: In function ‘upload_ram’: fx2_programmer.c:177: error: ‘current_handle’ undeclared (first use in this function) fx2_programmer.c: In function ‘main’: fx2_programmer.c:299: error: dereferencing pointer to incomplete type fx2_programmer.c:299: error: dereferencing pointer to incomplete type fx2_programmer.c:300: error: ‘current_handle’ undeclared (first use in this function) make: *** [fx2_programmer] Error 1 Looking around to find a solution of why it didn't cross-compile properly I found that the application uses the library "libusb", and this one is no part of the Toolchain of the cross-compiler, so I was wondering if someone can tell me How can I add this library into the toolchain so the cross-compiler can find the headers that are missing? In case that adding the library into the Toolchain is not the solution, then maybe someone can tell me how to accomplish to cross-compile the application so I can run it from the Davinci DM6446 enviroment. Thanks a lot for your answers and time, Arturo Corrales V. KIST - Robotics System Division CJS Team _______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source