I am trying to build the LibusbJava.so on Linux but I can't find libusbpp.so. I don't see it in the /usr/lib directory either. Where is it suppose to be? I am running on Red Hat.
thx Blaine
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After some digging, it seems that libusbpp.so is on rhel5 and above as well as SUSE but not for rhel3 which is what I am running on. Is there a way to make this work on rhel3?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Remove the line
<arg value="${build.linux.includes}/${build.linux.lib.libusbpp}" />
from the linux target in build.xml and see if it compiles. I manged to compile without this line on Ubuntu 6. There must have been a reason why I included libusbpp, but I can't remember.
You may get better information on this issue on the libusb mailing list. Maybe someone has a rhel3 installation and can verify that libusbpp is not there.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My sys admin compiled a libusbpp for me on rhel3 but it still did not work. I then removed the line as you suggested and it compiles fine but still does not work. I get the same error in both cases. My program will load the shared library and I can do a usb_open, getConfig, getDescriptor, and getISerialNumber, but when I call LibusbJava.usb_get_string_simple(handle, index) it returns null and if I comment that out and continue on then when I try and claim the interface it returns non successful.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried to compile the library without libusbpp on my suse installation. Compiling works, but it doesn't run:
libusbJava.so.0.2.4: undefined symbol: usb_init
Did you try enabling debug output with LibusbJava.usb_set_debug(255);
Maybe this gives some additional output.
Another approach would be to recompile libusb from scratch.
As you may have noticed I'm not a Linux expert. But I'm sure on the libusb mailing list there are some...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to build the LibusbJava.so on Linux but I can't find libusbpp.so. I don't see it in the /usr/lib directory either. Where is it suppose to be? I am running on Red Hat.
thx Blaine
After some digging, it seems that libusbpp.so is on rhel5 and above as well as SUSE but not for rhel3 which is what I am running on. Is there a way to make this work on rhel3?
Remove the line
<arg value="${build.linux.includes}/${build.linux.lib.libusbpp}" />
from the linux target in build.xml and see if it compiles. I manged to compile without this line on Ubuntu 6. There must have been a reason why I included libusbpp, but I can't remember.
You may get better information on this issue on the libusb mailing list. Maybe someone has a rhel3 installation and can verify that libusbpp is not there.
My sys admin compiled a libusbpp for me on rhel3 but it still did not work. I then removed the line as you suggested and it compiles fine but still does not work. I get the same error in both cases. My program will load the shared library and I can do a usb_open, getConfig, getDescriptor, and getISerialNumber, but when I call LibusbJava.usb_get_string_simple(handle, index) it returns null and if I comment that out and continue on then when I try and claim the interface it returns non successful.
I tried to compile the library without libusbpp on my suse installation. Compiling works, but it doesn't run:
libusbJava.so.0.2.4: undefined symbol: usb_init
Did you try enabling debug output with LibusbJava.usb_set_debug(255);
Maybe this gives some additional output.
Another approach would be to recompile libusb from scratch.
As you may have noticed I'm not a Linux expert. But I'm sure on the libusb mailing list there are some...