Hi, I'm trying to build the libusbjava on my Ubuntu 12.04 64 bit, but I get the following message when executing "ant linux":
~/workspace/trunk/LibusbJava$ ant linux
Buildfile: /home/username/workspace/trunk/LibusbJava/build.xml
clean:
Build LibusbJava Test:
[echo] Building Library for unit tests:
[exec] /home/username/workspace/trunk/LibusbJava/LibusbJava.cpp:34:26: fatal error: test/CuTest.h: No such file or directory
[exec] compilation terminated.
[exec] In file included from /home/username/workspace/trunk/LibusbJava/objects/Usb_Device.cpp:7:0:
[exec] /home/username/workspace/trunk/LibusbJava/objects/Usb_Device.h:5:21: fatal error: libusb.h: No such file or directory
[exec] compilation terminated.
BUILD FAILED
/home/username/workspace/trunk/LibusbJava/build.xml:120: The following error occurred while executing this line:
/home/username/workspace/trunk/LibusbJava/build.xml:186: exec returned: 1
Total time: 1 second
I don't know much about ant, but is the error that it does not find the libusb.h or that it (surprisingly) does not find the CuTest.h which definitely is there.
I had to set a symlink so that the build.xml can locate my libusb-1.0.so, in case this is relevant somehow...
ls -al /usr/lib/libusb-1.0.so
lrwxrwxrwx 1 root root 39 Feb 2 13:41 /usr/lib/libusb-1.0.so -> /usr/lib/x86_64-linux-gnu/libusb-1.0.so
Any help is very much appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Looking at build.xml I just noted that there were obviously two include path arguments missing for the Linux build. Please update and retry again.
It's also worth noting that the unittests are not yet ported to be runnable in Linux. I think you have to remove the dependency on "LibusbJava Test Linux" of the target "linux" in build.xml.
Or of course feel free to port the necessary parts in the test application ;-)
Last edit: uniederer 2013-02-02
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi, thanks for your quick reply. I had problems to get the latest version of build.xml with svn. Anyways, I downloaded the file manually and edited the dependencies like you said. It worked!
I'm sorry, I think my skills wont be any help for your project. But I wish you guys good luck!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I'm trying to build the libusbjava on my Ubuntu 12.04 64 bit, but I get the following message when executing "ant linux":
I don't know much about ant, but is the error that it does not find the libusb.h or that it (surprisingly) does not find the CuTest.h which definitely is there.
I had to set a symlink so that the build.xml can locate my libusb-1.0.so, in case this is relevant somehow...
ls -al /usr/lib/libusb-1.0.so
lrwxrwxrwx 1 root root 39 Feb 2 13:41 /usr/lib/libusb-1.0.so -> /usr/lib/x86_64-linux-gnu/libusb-1.0.so
Any help is very much appreciated.
Looking at build.xml I just noted that there were obviously two include path arguments missing for the Linux build. Please update and retry again.
It's also worth noting that the unittests are not yet ported to be runnable in Linux. I think you have to remove the dependency on "LibusbJava Test Linux" of the target "linux" in build.xml.
Or of course feel free to port the necessary parts in the test application ;-)
Last edit: uniederer 2013-02-02
hi, thanks for your quick reply. I had problems to get the latest version of build.xml with svn. Anyways, I downloaded the file manually and edited the dependencies like you said. It worked!
I'm sorry, I think my skills wont be any help for your project. But I wish you guys good luck!