Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (576)
games submitted by our members
Games in WIP (497)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Can't compile nightly build on OSX  (Read 2788 times)
0 Members and 1 Guest are viewing this topic.
Offline abegel

Senior Newbie




Java games rock!


« Posted 2005-04-26 09:02:39 »

When I try to compile the nightly build of jinput on OSX (from March 25, 2005) jinput-1.1.0-b04-src.tar.gz, I get this compile error. Is there any updated source code (cvs HEAD shows the same problem) that actually compiles?

Andrew


compile:
   [javac] Compiling 7 source files to /Users/abegel/Developer/jinput/plugins/OSX/classes
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:167: cannot resolve symbol
   [javac] symbol  : class ButtonID
   [javac] location: class net.java.games.input.OSXMouse.ButtonImpl
   [javac]         public ButtonImpl(ButtonID id, InputControllerElement element)
   [javac]                           ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:202: cannot resolve symbol
   [javac] symbol  : class AbstractAxis
   [javac] location: class net.java.games.input.OSXMouse.BallAxis
   [javac]     class BallAxis extends AbstractAxis
   [javac]                            ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:211: cannot resolve symbol
   [javac] symbol  : class Identifier
   [javac] location: class net.java.games.input.OSXMouse.BallAxis
   [javac]         public BallAxis(Identifier id, InputControllerElement element)
   [javac]                         ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXKeyboard.java:225: cannot resolve symbol
   [javac] symbol  : class KeyID
   [javac] location: class net.java.games.input.OSXKeyboard
   [javac]         KeyID id = (KeyID)key.getIdentifier();
   [javac]         ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXKeyboard.java:225: cannot resolve symbol
   [javac] symbol  : class KeyID
   [javac] location: class net.java.games.input.OSXKeyboard
   [javac]         KeyID id = (KeyID)key.getIdentifier();
   [javac]                     ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:108: package Axis does not exist
   [javac]             x = new BallAxis( Axis.Identifier.X, element );
   [javac]                                   ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:113: package Axis does not exist
   [javac]             y = new BallAxis( Axis.Identifier.Y, element );
   [javac]                                   ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:118: package Axis does not exist
   [javac]             wheel = new BallAxis( Axis.Identifier.SLIDER, element );
   [javac]                                       ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:140: cannot resolve symbol
   [javac] symbol  : variable ButtonID
   [javac] location: class net.java.games.input.OSXMouse.ButtonsImpl
   [javac]                 left = new ButtonImpl( ButtonID.LEFT, element );
   [javac]                                        ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:144: cannot resolve symbol
   [javac] symbol  : variable ButtonID
   [javac] location: class net.java.games.input.OSXMouse.ButtonsImpl
   [javac]                 right = new ButtonImpl( ButtonID.RIGHT, element );
   [javac]                                         ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:148: cannot resolve symbol
   [javac] symbol  : variable ButtonID
   [javac] location: class net.java.games.input.OSXMouse.ButtonsImpl
   [javac]                 middle = new ButtonImpl( ButtonID.MIDDLE, element );
   [javac]                                          ^
   [javac] 11 errors

BUILD FAILED
file:/Users/abegel/Developer/jinput/plugins/OSX/build.xml:15: Compile failed; see the compiler error output for details.
Offline Jeff

JGO Coder




Got any cats?


« Reply #1 - Posted 2005-04-26 18:43:32 »

On a quick galcen it loosk to me like you are trying to build the plug-in without the JInput master source available.   Try making sure JInput.jar is on your compile class path.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline abegel

Senior Newbie




Java games rock!


« Reply #2 - Posted 2005-04-26 19:37:58 »

Sorry, here's the full build log for both jutils, then jinput. The jinput.jar file is created. The ant script copied it to jinput/plugins/DX8/lib. That seems like the wrong place for an OSX build, no?

Andrew


[Brisket:~/Developer/jutils] abegel% ant
Buildfile: build.xml

init:

compile:

jar:
    [copy] Copying 1 file to /Users/abegel/Developer/jinput/coreAPI/lib
    [copy] Copying 1 file to /Users/abegel/Developer/jinput/plugins/DX8/lib

all:
    [echo] Application built. Hello ${hello}!

BUILD SUCCESSFUL
Total time: 1 second
[Brisket:~/Developer/jutils] abegel% cd ..
[Brisket:~/Developer] abegel% cd jinput/
[Brisket:~/Developer/jinput] abegel% ant
Buildfile: build.xml

init:

core:

init:

compile:
   [javac] Compiling 17 source files to /Users/abegel/Developer/jinput/coreAPI/classes

jar:
     [jar] Building jar: /Users/abegel/Developer/jinput/coreAPI/bin/jinput.jar
    [copy] Copying 1 file to /Users/abegel/Developer/jinput/plugins/DX8/lib

all:
    [echo] JInput has been built and jinput.jar is located in the bin directory.

windows_plugin:

linux_plugin:

OSX_plugin:

init:
   [mkdir] Created dir: /Users/abegel/Developer/jinput/plugins/OSX/classes
   [mkdir] Created dir: /Users/abegel/Developer/jinput/plugins/OSX/dist

compile:
   [javac] Compiling 7 source files to /Users/abegel/Developer/jinput/plugins/OSX/classes
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:167: cannot resolve symbol
   [javac] symbol  : class ButtonID
   [javac] location: class net.java.games.input.OSXMouse.ButtonImpl
   [javac]         public ButtonImpl(ButtonID id, InputControllerElement element)
   [javac]                           ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:202: cannot resolve symbol
   [javac] symbol  : class AbstractAxis
   [javac] location: class net.java.games.input.OSXMouse.BallAxis
   [javac]     class BallAxis extends AbstractAxis
   [javac]                            ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:211: cannot resolve symbol
   [javac] symbol  : class Identifier
   [javac] location: class net.java.games.input.OSXMouse.BallAxis
   [javac]         public BallAxis(Identifier id, InputControllerElement element)
   [javac]                         ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXKeyboard.java:225: cannot resolve symbol
   [javac] symbol  : class KeyID
   [javac] location: class net.java.games.input.OSXKeyboard
   [javac]         KeyID id = (KeyID)key.getIdentifier();
   [javac]         ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXKeyboard.java:225: cannot resolve symbol
   [javac] symbol  : class KeyID
   [javac] location: class net.java.games.input.OSXKeyboard
   [javac]         KeyID id = (KeyID)key.getIdentifier();
   [javac]                     ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:108: package Axis does not exist
   [javac]             x = new BallAxis( Axis.Identifier.X, element );
   [javac]                                   ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:113: package Axis does not exist
   [javac]             y = new BallAxis( Axis.Identifier.Y, element );
   [javac]                                   ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:118: package Axis does not exist
   [javac]             wheel = new BallAxis( Axis.Identifier.SLIDER, element );
   [javac]                                       ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:140: cannot resolve symbol
   [javac] symbol  : variable ButtonID
   [javac] location: class net.java.games.input.OSXMouse.ButtonsImpl
   [javac]                 left = new ButtonImpl( ButtonID.LEFT, element );
   [javac]                                        ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:144: cannot resolve symbol
   [javac] symbol  : variable ButtonID
   [javac] location: class net.java.games.input.OSXMouse.ButtonsImpl
   [javac]                 right = new ButtonImpl( ButtonID.RIGHT, element );
   [javac]                                         ^
   [javac] /Users/abegel/Developer/jinput/plugins/OSX/src/java/net/java/games/input/OSXMouse.java:148: cannot resolve symbol
   [javac] symbol  : variable ButtonID
   [javac] location: class net.java.games.input.OSXMouse.ButtonsImpl
   [javac]                 middle = new ButtonImpl( ButtonID.MIDDLE, element );
   [javac]                                          ^
   [javac] 11 errors

BUILD FAILED
file:/Users/abegel/Developer/jinput/plugins/OSX/build.xml:15: Compile failed; see the compiler error output for details.

Total time: 4 seconds
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jeff

JGO Coder




Got any cats?


« Reply #3 - Posted 2005-04-27 03:45:20 »

yeah the ant build shouldnt be putting anuything in the DX8 directory when building on OSX.

Im not sure what happened. it worked when I first wrote it and the guys first added  the OSX stuff.  Soudsn liek somehow its gotten a bad put back or something.

I'll be attempting a Linux build soon msyelf so we'll see how that works...

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline cjcdoomed

Junior Newbie




Java games rock!


« Reply #4 - Posted 2005-04-27 21:36:50 »

I get the same thing.  Also I notice in the OS X plugin build.xml file has references to HIDWrapper.jar and libjinput.jnilib but I can't find them in the release binaries or in CVS.

Anyone know where I can find these?

Offline Jeff

JGO Coder




Got any cats?


« Reply #5 - Posted 2005-04-28 01:18:42 »

libjinput.lib should be whats built from the C code as part of building the OSX plug-in.  Thats the native side that talks to the OS.

HIDWrapper.jar sounds like part of the Java side.

Unfrotunately I dont have a mac in the lab right now so I can't try a build myself.  Whose name is in the mac plug in file comments?  Was it SWp
who wrote those?

Edit: I stopped and though abotu thsi for a moment. you ARE using ant to build it, yes?  If not then I can imagien yould have all sorts of build order problems as its a multi-step build procedure.


JK

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Jeff

JGO Coder




Got any cats?


« Reply #6 - Posted 2005-04-28 05:40:14 »

W4ell, it build perfectly now udner Linux and JDK1.5

You might want to lo k at that and see if there are any differences that there shouldnt be betwnne the linux build and the mac build in the build.xml

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Jeff

JGO Coder




Got any cats?


« Reply #7 - Posted 2005-04-28 05:42:36 »

Well, it builds perfectly now udner Linux and JDK1.5

You might want to look at that and see if there are any differences that there shouldnt be between the linux build and the mac build in the build.xml

ALso Update ytour snapshot ebause there was an issue in  Jutils with a sytnax chnage they made in jdk1.5 release :/   I fixed it.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline cjcdoomed

Junior Newbie




Java games rock!


« Reply #8 - Posted 2005-04-28 14:17:25 »

Ok,  I looked through the Linux and Win32 native code and compared it to the OS X code.  There is no ButtonID anywhere.  Instead ButtonID should be changed to Component.Identifier.Button

That's not it, BallAxis and OSXKeyboard have similiar problems referencing objects that no longer exist.

After about a hour of fixing unresolved symbols to use inner-inner classes of Component....it compiled.

It also works now.  Tests recognized my keyboard, trackpad buttons, trackpad, USB mouse buttons and USB mouse ball.

I'm happy to send anyone the code and could also send a CVS patch.

I'd also maintain/test the OS X version on a continuing basis if asked.
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #9 - Posted 2005-04-28 20:38:25 »

Quote
Was it SWp who wrote those?


Gregory Pierce did the OS X port.  I haven't contributed much of anything... though I had started work on getting some game pads going on OS X.  I've never had enough time to fully digest the architecture of JInput to do a proper job though.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jeff

JGO Coder




Got any cats?


« Reply #10 - Posted 2005-04-29 04:59:04 »

Quote

After about a hour of fixing unresolved symbols to use inner-inner classes of Component....it compiled.

It also works now.  Tests recognized my keyboard, trackpad buttons, trackpad, USB mouse buttons and USB mouse ball.

I'm happy to send anyone the code and could also send a CVS patch.

I'd also maintain/test the OS X version on a continuing basis if asked.


Wow, congrats and thnak you.  I wodner is this was due to another of the 1.5 sytnax changes :/

Endolf  really is the project leader at this point but I thin kit would be GREAT to have an OSX volunteer!

As SWp remidned me, Greg Pierce did the original port but I assume hes now on to other things.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Jeff

JGO Coder




Got any cats?


« Reply #11 - Posted 2005-04-29 05:01:47 »

Quote


Gregory Pierce did the OS X port.  I haven't contributed much of anything... though I had started work on getting some game pads going on OS X.  I've never had enough time to fully digest the architecture of JInput to do a proper job though.



Thankls for the brain tickler.

Anmd Id be lying if I said I balmed you much.  MIke Martak, a hell of a guy by the way, did the original JInput design which i inherited. o be honest I've always foudn his architecture a bit... compelx.  Its not how I would have done it but I haven't stepped up to re-write it so I really can't complain  Wink

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline abegel

Senior Newbie




Java games rock!


« Reply #12 - Posted 2005-04-29 07:29:47 »

Just wanted to report that Chris Cooper's MacOSX patch did the trick and everything compiles now on OSX 10.3.9.
Offline Jeff

JGO Coder




Got any cats?


« Reply #13 - Posted 2005-04-29 21:32:27 »

Quote
Just wanted to report that Chris Cooper's MacOSX patch did the trick and everything compiles now on OSX 10.3.9.


Great!  Thanks guys for steppign and doing the fixing and testing on this!

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (12 views)
2014-04-15 18:08:23

BurntPizza (11 views)
2014-04-15 03:46:01

UprightPath (24 views)
2014-04-14 17:39:50

UprightPath (10 views)
2014-04-14 17:35:47

Porlus (27 views)
2014-04-14 15:48:38

tom_mai78101 (49 views)
2014-04-10 04:04:31

BurntPizza (108 views)
2014-04-08 23:06:04

tom_mai78101 (208 views)
2014-04-05 13:34:39

trollwarrior1 (176 views)
2014-04-04 12:06:45

CJLetsGame (182 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
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
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!