I downloaded the nightly build for JInput, but it doesn't have a MacOS X native executable library. It lists linux and DirectX in the plugins directory, but there aren't plugins fro those systems either.

I got a login to the .dev.java.net website so I downloaded all of the project directories and run 'ant' to build them. Jutils built fine; Jinput bombed out pretty early until I copied 'jutils.jar' into my system classpath, but that's fine. Now it bombs out much later into the dynamic lib compilation with the following error message:

BUILD FAILED/Users/scott/java/games-core/jinput/build.xml:87: The following error occurred while executing this line:/Users/scott/java/games-core/jinput/build.xml:63: The following error occurred while executing this line:/Users/scott/java/games-core/jinput/plugins/OSX/build.xml:75: The following error occurred while executing this line:/Users/scott/java/games-core/jinput/plugins/OSX/src/native/build.xml:54: The following error occurred while executing this line:/Users/scott/java/games-core/jinput/plugins/OSX/src/native/build.xml:19: apply returned: 1

I can see clearly the error, though I have little idea what would cause that. I can't even ind any file which mentions 'cc1' at all... -.-;; If someone could get me started in the right direction I would greatly appreciate it.

The above code responded with this:Failed to enumerate device: Device open failed: -536870203So I'm not sure what to do about that from here.

elias:

You're right, I tried a simple program and it returned "gcc-3.3: installation problem, cannot exec `cc1': No such file or directory". I'm running all o fthis on my Intel Mac, which as I recall doesn't COME with gcc-3.3, or something like that. Do you know of a way to get it? Or perhaps is there something else wrong entirely?

As for gcc, I'm not really sure how that all changed, or why Apple mandates gcc4 for intel macs, but I'm reluctant to go messing about with it since the version you provided works just fine and I honestly don't know enough to feel comfortable changing things around like that.

Out of curiosity, when I iterate through the controllers and output their .getName() value, I see the mice (a mouse and stylus) and the controller, but then I see three more: "Controller Type: Mouse", then "Keyboard", then "Controller"... So that looks like JInput found SIX devices (seven, if you count the one it couldn't open), but I only have four. Is this expected?

(Sorry for redirecting the thread topic...)

Nevermind all that. I checked my code and it turns out that I was already calling something to list the controller type when I added the code to list the other information beforehand. >.< My bad.

I'm glad it works for you now. You won't need gcc 3 now, but just in case others see this thread: On (at least PowerPC) macs, gcc 3 and gcc 4 can live happily side by side and won't step on each others toes. And gcc 4 has been the standard compiler since (I think) Mac OS X 10.4 on both ppc and intel. Jinput (and my other project, LWJGL) use gcc 3 only to build the ppc part of the universal library to make it compatible all the way down to Mac OS X 10.2. The intel part is compiled with gcc 4, since all intel macs have at least Mac OS X 10.4.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org