Menu

#2 Cannot buld libusbjava on damnsmalllinux

open
nobody
5
2012-12-06
2007-12-10
No

We are successfully using libusb for windows and your libusbjava JNI code to talk to usb devices, but it's time to move to our embedded device running DamnSmallLinux (DSL), and I can't get it to compile.

Checking out the trunk, I run "ant linux" in DSL, and I get a bunch of errors. An example:

[exec] LibusbJava.cpp:806: error: redefinition of `int libusbJavaError'
[exec] LibusbJava.cpp:565: error: `int libusbJavaError' previously defined here
[exec] LibusbJava.cpp:806: warning: converting to non-pointer type `int' from NULL
[exec] LibusbJava.cpp:807: error: parse error before `}' token
[exec] LibusbJava.cpp:819: error: parse error before `
[exec] Java_ch_ntb_usb_LibusbJava_usb_1error_1no'
[exec] Result: 1

I must be missing something obvious, but I'm not sure what. I've got gcc v3.3.4.

Any pointers?

Discussion


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.