mac:
i686-apple-darwin11-llvm-gcc-4.2: /usr/local/lib/libusb.dylib: No such file or directory
i686-apple-darwin11-llvm-gcc-4.2: /usr/local/lib/libusbpp.dylib: No such file or directory
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~22/src/configure -disable-checking -enable-werror -prefix=/Developer/usr/llvm-gcc-4.2 -mandir=/share/man -enable-languages=c,objc,c++,obj-c++ -program-prefix=llvm- -program-transform-name=/^*$/s/$/-4.2/ -with-slibdir=/usr/lib -build=i686-apple-darwin11 -enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~22/dst-llvmCore/Developer/usr/local -program-prefix=i686-apple-darwin11- -host=x86_64-apple-darwin11 -target=i686-apple-darwin11 -with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
/usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin11/4.2.1/cc1plus -quiet -v -I /System/Library/Frameworks/JavaVM.framework/Headers/ -imultilib x86_64 -iprefix /usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/ -D__DYNAMIC__ LibusbJava.cpp -fPIC -quiet -dumpbase LibusbJava.cpp -mmacosx-version-min=10.7.2 -m64 -mtune=core2 -auxbase LibusbJava -version -D__private_extern__=extern -o /var/folders/01/2652mb9d5rd771ht_w9f7qq80000gn/T//ccFMmHdA.s
ignoring nonexistent directory "/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/include"
ignoring nonexistent directory "/usr/include/c++/4.2.1/i686-apple-darwin11/x86_64"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/include"
#include "…" search starts here:
#include <…> search starts here:
/System/Library/Frameworks/JavaVM.framework/Headers/
/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include
/usr/include/c++/4.2.1
/usr/include/c++/4.2.1/backward
/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
GNU C++ version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) (i686-apple-darwin11)
compiled by GNU C version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00).
GGC heuristics: -param ggc-min-expand=150 -param ggc-min-heapsize=65536
Compiler executable checksum: 605a89755b56b6a65b80e4ed8f67b67e
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 ‘str
uct 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: ‘usb_close’ was not declared in this scope
LibusbJava.cpp:583: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:583: error: expected ‘;’ before ‘usb_close’
LibusbJava.cpp:583: error: expected primary-expression before ‘)’ token
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
Result: 1
BUILD SUCCESSFUL
Total time: 0 seconds
I a newbie with c++, I just need to have Libusbjava.dylib. Can anyone send me the compiled file (paolo@fusecreativelab.it)? Or help me to compile it?
Thank you very much.
paolofuse
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I'm trying to compile the code found here (https://libusbjava.svn.sourceforge.net/svnroot/libusbjava/trunk/LibusbJava/) with "ant mac". But I get this error:
Buildfile: /Users/paolofuse/Documents/libusb/LibusbJava/build.xml
clean:
mac:
i686-apple-darwin11-llvm-gcc-4.2: /usr/local/lib/libusb.dylib: No such file or directory
i686-apple-darwin11-llvm-gcc-4.2: /usr/local/lib/libusbpp.dylib: No such file or directory
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~22/src/configure -disable-checking -enable-werror -prefix=/Developer/usr/llvm-gcc-4.2 -mandir=/share/man -enable-languages=c,objc,c++,obj-c++ -program-prefix=llvm- -program-transform-name=/^*$/s/$/-4.2/ -with-slibdir=/usr/lib -build=i686-apple-darwin11 -enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~22/dst-llvmCore/Developer/usr/local -program-prefix=i686-apple-darwin11- -host=x86_64-apple-darwin11 -target=i686-apple-darwin11 -with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
/usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin11/4.2.1/cc1plus -quiet -v -I /System/Library/Frameworks/JavaVM.framework/Headers/ -imultilib x86_64 -iprefix /usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/ -D__DYNAMIC__ LibusbJava.cpp -fPIC -quiet -dumpbase LibusbJava.cpp -mmacosx-version-min=10.7.2 -m64 -mtune=core2 -auxbase LibusbJava -version -D__private_extern__=extern -o /var/folders/01/2652mb9d5rd771ht_w9f7qq80000gn/T//ccFMmHdA.s
ignoring nonexistent directory "/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/include"
ignoring nonexistent directory "/usr/include/c++/4.2.1/i686-apple-darwin11/x86_64"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/include"
#include "…" search starts here:
#include <…> search starts here:
/System/Library/Frameworks/JavaVM.framework/Headers/
/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include
/usr/include/c++/4.2.1
/usr/include/c++/4.2.1/backward
/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
GNU C++ version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) (i686-apple-darwin11)
compiled by GNU C version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00).
GGC heuristics: -param ggc-min-expand=150 -param ggc-min-heapsize=65536
Compiler executable checksum: 605a89755b56b6a65b80e4ed8f67b67e
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 ‘str
uct 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: ‘usb_close’ was not declared in this scope
LibusbJava.cpp:583: error: expected primary-expression before ‘)’ token
LibusbJava.cpp:583: error: expected ‘;’ before ‘usb_close’
LibusbJava.cpp:583: error: expected primary-expression before ‘)’ token
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
Result: 1
BUILD SUCCESSFUL
Total time: 0 seconds
I a newbie with c++, I just need to have Libusbjava.dylib. Can anyone send me the compiled file (paolo@fusecreativelab.it)? Or help me to compile it?
Thank you very much.
paolofuse