Menu

Linux Build

Help
Blaine
2009-01-14
2012-12-06
  • Blaine

    Blaine - 2009-01-14

    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

     
    • Blaine

      Blaine - 2009-01-14

      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?

       
      • andi

        andi - 2009-01-15

        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.

         
        • Blaine

          Blaine - 2009-01-15

          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.

           
    • andi

      andi - 2009-01-19

      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...

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.