im trying to build a shared library with linux i have g++ installed and im building using ant
it gives me a life long error message
from the error message i can see this g++: /usr/lib/libusb.so: No such file or directory, their ofcourse is no file by that name cause im trying to build it any ideas?
Buildfile: build.xml
clean:
linux:
g++: /usr/lib/libusb.so: No such file or directory
g++: /usr/lib/libusbpp.so: No such file or directory
LibusbJava.cpp:14:17: error: usb.h: No such file or directory
LibusbJava.cpp: In function ‘void Java_ch_ntb_usb_LibusbJava_usb_1set_1debug(JNIEnv*, __jclass*, jint)’:
LibusbJava.cpp:92: error: ‘usb_set_debug’ was not declared in this scope
LibusbJava.cpp: In function ‘void Java_ch_ntb_usb_LibusbJava_usb_1init(JNIEnv*, __jclass*)’:
LibusbJava.cpp:103: error: ‘usb_init’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1find_1busses(JNIEnv*, __jclass*)’:
LibusbJava.cpp:115: error: ‘usb_find_busses’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1find_1devices(JNIEnv*, __jclass*)’:
LibusbJava.cpp:127: error: ‘usb_find_devices’ was not declared in this scope
LibusbJava.cpp: In function ‘__jobject* Java_ch_ntb_usb_LibusbJava_usb_1get_1busses(JNIEnv*, __jclass*)’:
LibusbJava.cpp:268: error: ‘usb_get_busses’ was not declared in this scope
LibusbJava.cpp:299: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:307: error: invalid use of incomplete type ‘struct usb_bus’
LibusbJava.cpp:25: error: forward declaration of ‘struct usb_bus’
LibusbJava.cpp:310: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:316: error: invalid use of incomplete type ‘struct usb_bus’
LibusbJava.cpp:25: error: forward declaration of ‘struct usb_bus’
LibusbJava.cpp:317: error: invalid use of incomplete type ‘struct usb_bus’
LibusbJava.cpp:25: error: forward declaration of ‘struct usb_bus’
LibusbJava.cpp:319: error: invalid use of incomplete type ‘struct usb_bus’
LibusbJava.cpp:25: error: forward declaration of ‘struct usb_bus’
LibusbJava.cpp:332: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:339: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:342: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:349: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:350: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:351: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:357: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:360: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:361: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:362: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:363: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:364: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:365: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:366: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:367: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:368: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:369: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:370: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:371: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:372: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:373: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:378: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:380: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:383: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:387: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:389: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:395: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:399: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:400: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:401: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:402: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:403: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:404: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:405: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:406: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:407: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:408: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:409: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:410: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:410: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:416: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:418: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:421: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:425: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:433: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:437: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:439: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:441: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:444: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:448: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:456: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:460: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:461: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:462: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:463: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:464: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:465: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:466: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:467: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:468: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:469: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:470: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:471: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:472: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:472: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:478: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:480: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:483: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:487: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:494: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:498: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:499: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:500: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:501: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:502: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:503: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:504: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:505: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:506: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:507: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:508: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:509: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:509: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:527: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:534: error: invalid use of incomplete type ‘struct usb_bus’
LibusbJava.cpp:25: error: forward declaration of ‘struct usb_bus’
LibusbJava.cpp: In function ‘jlong Java_ch_ntb_usb_LibusbJava_usb_1open(JNIEnv*, __jclass*, __jobject*)’:
LibusbJava.cpp:553: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:562: error: invalid use of incomplete type ‘struct usb_bus’
LibusbJava.cpp:25: error: forward declaration of ‘struct usb_bus’
LibusbJava.cpp:564: error: invalid use of incomplete type ‘struct usb_bus’
LibusbJava.cpp:25: error: forward declaration of ‘struct usb_bus’
LibusbJava.cpp:564: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:558: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:566: error: ‘usb_open’ was not declared in this scope
LibusbJava.cpp:570: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1close(JNIEnv*, __jclass*, jlong)’:
LibusbJava.cpp:583: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:583: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:583: error: ‘usb_close’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1set_1configuration(JNIEnv*, __jclass*, jlong, jint)’:
LibusbJava.cpp:595: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:595: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:595: error: ‘usb_set_configuration’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1set_1altinterface(JNIEnv*, __jclass*, jlong, jint)’:
LibusbJava.cpp:607: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:607: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:607: error: ‘usb_set_altinterface’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1clear_1halt(JNIEnv*, __jclass*, jlong, jint)’:
LibusbJava.cpp:619: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:619: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:619: error: ‘usb_clear_halt’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1reset(JNIEnv*, __jclass*, jlong)’:
LibusbJava.cpp:631: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:631: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:631: error: ‘usb_reset’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1claim_1interface(JNIEnv*, __jclass*, jlong, jint)’:
LibusbJava.cpp:643: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:643: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:643: error: ‘usb_claim_interface’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1release_1interface(JNIEnv*, __jclass*, jlong, jint)’:
LibusbJava.cpp:655: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:655: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:655: error: ‘usb_release_interface’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1control_1msg(JNIEnv*, __jclass*, jlong, jint, jint, jint, jint, __jbyteArray*, jint, jint)’:
LibusbJava.cpp:668: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:668: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:668: error: ‘usb_control_msg’ was not declared in this scope
LibusbJava.cpp: In function ‘__jstring* Java_ch_ntb_usb_LibusbJava_usb_1get_1string(JNIEnv*, __jclass*, jlong, jint, jint)’:
LibusbJava.cpp:684: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:684: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:684: error: ‘usb_get_string’ was not declared in this scope
LibusbJava.cpp: In function ‘__jstring* Java_ch_ntb_usb_LibusbJava_usb_1get_1string_1simple(JNIEnv*, __jclass*, jlong, jint)’:
LibusbJava.cpp:700: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:700: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:700: error: ‘usb_get_string_simple’ was not declared in this scope
LibusbJava.cpp: In function ‘__jstring* Java_ch_ntb_usb_LibusbJava_usb_1get_1descriptor(JNIEnv*, __jclass*, jlong, jbyte, jbyte, jint)’:
LibusbJava.cpp:715: error: ‘malloc’ was not declared in this scope
LibusbJava.cpp:716: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:716: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:717: error: ‘usb_get_descriptor’ was not declared in this scope
LibusbJava.cpp: In function ‘__jstring* Java_ch_ntb_usb_LibusbJava_usb_1get_1descriptor_1by_1endpoint(JNIEnv*, __jclass*, jlong, jint, jbyte, jbyte, jint)’:
LibusbJava.cpp:732: error: ‘malloc’ was not declared in this scope
LibusbJava.cpp:733: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:733: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:734: error: ‘usb_get_descriptor_by_endpoint’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1bulk_1write(JNIEnv*, __jclass*, jlong, jint, __jbyteArray*, jint, jint)’:
LibusbJava.cpp:750: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:750: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:750: error: ‘usb_bulk_write’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1bulk_1read(JNIEnv*, __jclass*, jlong, jint, __jbyteArray*, jint, jint)’:
LibusbJava.cpp:764: error: ‘malloc’ was not declared in this scope
LibusbJava.cpp:765: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:765: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:765: error: ‘usb_bulk_read’ was not declared in this scope
LibusbJava.cpp:768: error: ‘free’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1interrupt_1write(JNIEnv*, __jclass*, jlong, jint, __jbyteArray*, jint, jint)’:
LibusbJava.cpp:782: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:782: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:782: error: ‘usb_interrupt_write’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1interrupt_1read(JNIEnv*, __jclass*, jlong, jint, __jbyteArray*, jint, jint)’:
LibusbJava.cpp:796: error: ‘malloc’ was not declared in this scope
LibusbJava.cpp:797: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:797: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:797: error: ‘usb_interrupt_read’ was not declared in this scope
LibusbJava.cpp:800: error: ‘free’ was not declared in this scope
LibusbJava.cpp: In function ‘__jstring* Java_ch_ntb_usb_LibusbJava_usb_1strerror(JNIEnv*, __jclass*)’:
LibusbJava.cpp:818: error: ‘usb_strerror’ was not declared in this scope
BUILD SUCCESSFUL
Total time: 0 seconds
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
im trying to build a shared library with linux i have g++ installed and im building using ant
it gives me a life long error message
from the error message i can see this g++: /usr/lib/libusb.so: No such file or directory, their ofcourse is no file by that name cause im trying to build it any ideas?
Buildfile: build.xml
clean:
linux:
g++: /usr/lib/libusb.so: No such file or directory
g++: /usr/lib/libusbpp.so: No such file or directory
LibusbJava.cpp:14:17: error: usb.h: No such file or directory
LibusbJava.cpp: In function ‘void Java_ch_ntb_usb_LibusbJava_usb_1set_1debug(JNIEnv*, __jclass*, jint)’:
LibusbJava.cpp:92: error: ‘usb_set_debug’ was not declared in this scope
LibusbJava.cpp: In function ‘void Java_ch_ntb_usb_LibusbJava_usb_1init(JNIEnv*, __jclass*)’:
LibusbJava.cpp:103: error: ‘usb_init’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1find_1busses(JNIEnv*, __jclass*)’:
LibusbJava.cpp:115: error: ‘usb_find_busses’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1find_1devices(JNIEnv*, __jclass*)’:
LibusbJava.cpp:127: error: ‘usb_find_devices’ was not declared in this scope
LibusbJava.cpp: In function ‘__jobject* Java_ch_ntb_usb_LibusbJava_usb_1get_1busses(JNIEnv*, __jclass*)’:
LibusbJava.cpp:268: error: ‘usb_get_busses’ was not declared in this scope
LibusbJava.cpp:299: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:307: error: invalid use of incomplete type ‘struct usb_bus’
LibusbJava.cpp:25: error: forward declaration of ‘struct usb_bus’
LibusbJava.cpp:310: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:316: error: invalid use of incomplete type ‘struct usb_bus’
LibusbJava.cpp:25: error: forward declaration of ‘struct usb_bus’
LibusbJava.cpp:317: error: invalid use of incomplete type ‘struct usb_bus’
LibusbJava.cpp:25: error: forward declaration of ‘struct usb_bus’
LibusbJava.cpp:319: error: invalid use of incomplete type ‘struct usb_bus’
LibusbJava.cpp:25: error: forward declaration of ‘struct usb_bus’
LibusbJava.cpp:332: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:339: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:342: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:349: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:350: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:351: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:357: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:360: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:361: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:362: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:363: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:364: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:365: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:366: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:367: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:368: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:369: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:370: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:371: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:372: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:373: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:378: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:380: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:383: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:387: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:389: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:395: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:399: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:400: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:401: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:402: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:403: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:404: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:405: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:406: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:407: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:408: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:409: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:410: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:410: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:416: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:418: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:421: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:425: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:433: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:437: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:439: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:441: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:444: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:448: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:456: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:460: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:461: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:462: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:463: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:464: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:465: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:466: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:467: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:468: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:469: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:470: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:471: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:472: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:472: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:478: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:480: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:483: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:487: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:494: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:498: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:499: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:500: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:501: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:502: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:503: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:504: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:505: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:506: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:507: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:508: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:509: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:509: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:527: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:265: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:534: error: invalid use of incomplete type ‘struct usb_bus’
LibusbJava.cpp:25: error: forward declaration of ‘struct usb_bus’
LibusbJava.cpp: In function ‘jlong Java_ch_ntb_usb_LibusbJava_usb_1open(JNIEnv*, __jclass*, __jobject*)’:
LibusbJava.cpp:553: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp:562: error: invalid use of incomplete type ‘struct usb_bus’
LibusbJava.cpp:25: error: forward declaration of ‘struct usb_bus’
LibusbJava.cpp:564: error: invalid use of incomplete type ‘struct usb_bus’
LibusbJava.cpp:25: error: forward declaration of ‘struct usb_bus’
LibusbJava.cpp:564: error: invalid use of incomplete type ‘struct usb_device’
LibusbJava.cpp:558: error: forward declaration of ‘struct usb_device’
LibusbJava.cpp:566: error: ‘usb_open’ was not declared in this scope
LibusbJava.cpp:570: warning: deprecated conversion from string constant to ‘char*’
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1close(JNIEnv*, __jclass*, jlong)’:
LibusbJava.cpp:583: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:583: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:583: error: ‘usb_close’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1set_1configuration(JNIEnv*, __jclass*, jlong, jint)’:
LibusbJava.cpp:595: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:595: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:595: error: ‘usb_set_configuration’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1set_1altinterface(JNIEnv*, __jclass*, jlong, jint)’:
LibusbJava.cpp:607: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:607: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:607: error: ‘usb_set_altinterface’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1clear_1halt(JNIEnv*, __jclass*, jlong, jint)’:
LibusbJava.cpp:619: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:619: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:619: error: ‘usb_clear_halt’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1reset(JNIEnv*, __jclass*, jlong)’:
LibusbJava.cpp:631: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:631: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:631: error: ‘usb_reset’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1claim_1interface(JNIEnv*, __jclass*, jlong, jint)’:
LibusbJava.cpp:643: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:643: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:643: error: ‘usb_claim_interface’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1release_1interface(JNIEnv*, __jclass*, jlong, jint)’:
LibusbJava.cpp:655: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:655: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:655: error: ‘usb_release_interface’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1control_1msg(JNIEnv*, __jclass*, jlong, jint, jint, jint, jint, __jbyteArray*, jint, jint)’:
LibusbJava.cpp:668: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:668: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:668: error: ‘usb_control_msg’ was not declared in this scope
LibusbJava.cpp: In function ‘__jstring* Java_ch_ntb_usb_LibusbJava_usb_1get_1string(JNIEnv*, __jclass*, jlong, jint, jint)’:
LibusbJava.cpp:684: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:684: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:684: error: ‘usb_get_string’ was not declared in this scope
LibusbJava.cpp: In function ‘__jstring* Java_ch_ntb_usb_LibusbJava_usb_1get_1string_1simple(JNIEnv*, __jclass*, jlong, jint)’:
LibusbJava.cpp:700: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:700: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:700: error: ‘usb_get_string_simple’ was not declared in this scope
LibusbJava.cpp: In function ‘__jstring* Java_ch_ntb_usb_LibusbJava_usb_1get_1descriptor(JNIEnv*, __jclass*, jlong, jbyte, jbyte, jint)’:
LibusbJava.cpp:715: error: ‘malloc’ was not declared in this scope
LibusbJava.cpp:716: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:716: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:717: error: ‘usb_get_descriptor’ was not declared in this scope
LibusbJava.cpp: In function ‘__jstring* Java_ch_ntb_usb_LibusbJava_usb_1get_1descriptor_1by_1endpoint(JNIEnv*, __jclass*, jlong, jint, jbyte, jbyte, jint)’:
LibusbJava.cpp:732: error: ‘malloc’ was not declared in this scope
LibusbJava.cpp:733: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:733: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:734: error: ‘usb_get_descriptor_by_endpoint’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1bulk_1write(JNIEnv*, __jclass*, jlong, jint, __jbyteArray*, jint, jint)’:
LibusbJava.cpp:750: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:750: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:750: error: ‘usb_bulk_write’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1bulk_1read(JNIEnv*, __jclass*, jlong, jint, __jbyteArray*, jint, jint)’:
LibusbJava.cpp:764: error: ‘malloc’ was not declared in this scope
LibusbJava.cpp:765: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:765: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:765: error: ‘usb_bulk_read’ was not declared in this scope
LibusbJava.cpp:768: error: ‘free’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1interrupt_1write(JNIEnv*, __jclass*, jlong, jint, __jbyteArray*, jint, jint)’:
LibusbJava.cpp:782: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:782: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:782: error: ‘usb_interrupt_write’ was not declared in this scope
LibusbJava.cpp: In function ‘jint Java_ch_ntb_usb_LibusbJava_usb_1interrupt_1read(JNIEnv*, __jclass*, jlong, jint, __jbyteArray*, jint, jint)’:
LibusbJava.cpp:796: error: ‘malloc’ was not declared in this scope
LibusbJava.cpp:797: error: ‘usb_dev_handle’ was not declared in this scope
LibusbJava.cpp:797: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:797: error: ‘usb_interrupt_read’ was not declared in this scope
LibusbJava.cpp:800: error: ‘free’ was not declared in this scope
LibusbJava.cpp: In function ‘__jstring* Java_ch_ntb_usb_LibusbJava_usb_1strerror(JNIEnv*, __jclass*)’:
LibusbJava.cpp:818: error: ‘usb_strerror’ was not declared in this scope
BUILD SUCCESSFUL
Total time: 0 seconds
sorry i did see my mistake its looking for the actual libusb files not the wrapper .so
i did a ls | grep libusb in my shell
these are the files that i have on my computer at the moment
libusb-0.1.so.4
libusb-0.1.so.4.4.4
libusb-1.0.so.0
libusb-1.0.so.0.0.0
libusbmuxd.so.1
libusbmuxd.so.1.0.0
libusbpp-0.1.so.4
libusbpp-0.1.so.4.4.4
i now jst have comalation problems in LibusbJava.cpp