Compiling problems with linux-amd64

Started by Anonymous, January 26, 2006, 19:00:12

Previous topic - Next topic

Anonymous

Hello.

I'm trying to compile LWJGL from source for amd64.  I've applied the patch that has been suggested elsewhere, but I get an error when I try to compile.

xxxxx@xxxxx:~/downloads/lwjgl$ ant
Buildfile: build.xml

compile:
    [core] Compiling 210 source files to /home/xxxxx/downloads/lwjgl/bin
    [core] directory does not exist: -sourcepath

BUILD FAILED
/home/xxxxx/downloads/lwjgl/build.xml:333: Compile failed; see the compiler error output for details.

Total time: 3 seconds

Am I doing something horribly wrong?
Thanks for any help you can give.

Matzon

you shouldn't need any patch files, there is one included in the distribution - makefile.amd64

however compiling java files shouldn't produce any errors regardless of platform. You must have applied some weird patches... :)

Anonymous

The only patch I applied was to replace the default makefile with the makefile.amd64.  Either way (if I leave it the way I downloaded it), I get the same error.

Any help/advice you can give would be much appreciated.

Thanks.

Matzon

please check your java installation and/or ant. The default build.xml works like expected.

Anonymous

Thanks for the ant suggestion, that fixed the first problem, but now there are others.  Mostly "package does not exist" errors (net.java.games.input) and "Cannot find symbol" errors (Class Component in org.lwjgl.input.JInputController).

Any suggestions?  If I can get this to work, I'd like to stick it in a tarball and donate the native amd64 libs to you guys.

P.S. My java installation is Sun's JDK1.5.0_06

Matzon

you need the jinput libs - which are in the libs folder

MadCoder

oj@GentooBox ~/builddir $ ant
Buildfile: build.xml

compile:
     [core] Compiling 210 source files to /home/oj/builddir/bin
     [core] /home/oj/builddir/src/java/org/lwjgl/input/Controllers.java:5: package net.java.games.input does not exist
     [core] import net.java.games.input.ControllerEnvironment;
     [core]                             ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/Controllers.java:70: package net.java.games.input does not exist
     [core]     private static void createController(net.java.games.input.Controller c) {
     [core]                                                                  ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:5: package net.java.games.input does not exist
     [core] import net.java.games.input.Component;
     [core]                             ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:15: package net.java.games.input does not exist
     [core]     private net.java.games.input.Controller target;
     [core]                                     ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:54: package net.java.games.input does not exist
     [core]     public JInputController(int index,net.java.games.input.Controller target) {
     [core]                                                               ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/Controllers.java:38: cannot find symbol
     [core] symbol  : class ControllerEnvironment
     [core] location: class org.lwjgl.input.Controllers
     [core]                     ControllerEnvironment env = ControllerEnvironment.getDefaultEnvironment();
     [core]                         ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/Controllers.java:38: cannot find symbol
     [core] symbol  : variable ControllerEnvironment
     [core] location: class org.lwjgl.input.Controllers
     [core]                     ControllerEnvironment env = ControllerEnvironment.getDefaultEnvironment();
     [core]                                                     ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/Controllers.java:40: package net.java.games.input does not exist
     [core]                     net.java.games.input.Controller[] found = env.getControllers();
     [core]                                             ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/Controllers.java:43: package net.java.games.input does not exist
     [core]                             net.java.games.input.Controller c = found[i];     [core]                                                     ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/Controllers.java:45: package net.java.games.input.Controller does not exist
     [core]                             if ((!c.getType().equals(net.java.games.input.Controller.Type.KEYBOARD)) &&
     [core]                ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/Controllers.java:46: package net.java.games.input.Controller does not exist
     [core]                                     (!c.getType().equals(net.java.games.input.Controller.Type.MOUSE))) {
     [core]                    ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/Controllers.java:54: package net.java.games.input does not exist
     [core]                             net.java.games.input.Controller c = (net.java.games.input.Controller) lollers.get(i);
     [core]                                                     ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/Controllers.java:54: package net.java.games.input does not exist
     [core]                             net.java.games.input.Controller c = (net.java.games.input.Controller) lollers.get(i);
     [core]                 ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/Controllers.java:71: package net.java.games.input does not exist
     [core]             net.java.games.input.Controller[] sub = c.getControllers();
     [core]                                     ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:58: cannot find symbol
     [core] symbol  : class Component
     [core] location: class org.lwjgl.input.JInputController
     [core]             Component[] sourceAxes = target.getComponents();
     [core]                 ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:61: package Component.Identifier does not exist
     [core]                     if (sourceAxes[i].getIdentifier() instanceof Component.Identifier.Button) {
     [core]                 ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:63: package Component.Identifier does not exist
     [core]                     } else if (sourceAxes[i].getIdentifier().equals(Component.Identifier.Axis.POV)) {
     [core]                    ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:78: package Component.Identifier does not exist
     [core]                     if (sourceAxes[i].getIdentifier() instanceof Component.Identifier.Button) {
     [core]                 ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:81: package Component.Identifier does not exist
     [core]                     } else if (sourceAxes[i].getIdentifier().equals(Component.Identifier.Axis.POV)) {
     [core]                    ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:86: package Component.Identifier does not exist
     [core]                             if (sourceAxes[i].getIdentifier().equals(Component.Identifier.Axis.X)) {
     [core]                     ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:89: package Component.Identifier does not exist
     [core]                             if (sourceAxes[i].getIdentifier().equals(Component.Identifier.Axis.Y)) {
     [core]                     ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:92: package Component.Identifier does not exist
     [core]                             if (sourceAxes[i].getIdentifier().equals(Component.Identifier.Axis.Z)) {
     [core]                     ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:95: package Component.Identifier does not exist
     [core]                             if (sourceAxes[i].getIdentifier().equals(Component.Identifier.Axis.RX)) {
     [core]                     ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:98: package Component.Identifier does not exist
     [core]                             if (sourceAxes[i].getIdentifier().equals(Component.Identifier.Axis.RY)) {
     [core]                     ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:101: package Component.Identifier does not exist
     [core]                             if (sourceAxes[i].getIdentifier().equals(Component.Identifier.Axis.RZ)) {
     [core]                     ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:144: cannot find symbol
     [core] symbol  : class Component
     [core] location: class org.lwjgl.input.JInputController
     [core]             Component button = (Component) buttons.get(index);
     [core]                 ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:144: cannot find symbol
     [core] symbol  : class Component
     [core] location: class org.lwjgl.input.JInputController
     [core]             Component button = (Component) buttons.get(index);
     [core]                                     ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:164: cannot find symbol
     [core] symbol  : class Component
     [core] location: class org.lwjgl.input.JInputController
     [core]                     Component button = (Component) buttons.get(i);
     [core]                         ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:164: cannot find symbol
     [core] symbol  : class Component
     [core] location: class org.lwjgl.input.JInputController
     [core]                     Component button = (Component) buttons.get(i);
     [core]                                             ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:178: cannot find symbol
     [core] symbol  : class Component
     [core] location: class org.lwjgl.input.JInputController
     [core]                     Component p = (Component) pov.get(i);
     [core]                         ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:178: cannot find symbol
     [core] symbol  : class Component
     [core] location: class org.lwjgl.input.JInputController
     [core]                     Component p = (Component) pov.get(i);
     [core]                                        ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:201: cannot find symbol
     [core] symbol  : class Component
     [core] location: class org.lwjgl.input.JInputController
     [core]                     Component axis = (Component) axes.get(i);
     [core]                         ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:201: cannot find symbol
     [core] symbol  : class Component
     [core] location: class org.lwjgl.input.JInputController
     [core]                     Component axis = (Component) axes.get(i);
     [core]                                           ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:238: cannot find symbol
     [core] symbol  : class Component
     [core] location: class org.lwjgl.input.JInputController
     [core]             Component axis = (Component) axes.get(index);
     [core]                 ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:238: cannot find symbol
     [core] symbol  : class Component
     [core] location: class org.lwjgl.input.JInputController
     [core]             Component axis = (Component) axes.get(index);
     [core]                                   ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:448: package Component does not exist
     [core]             if ((value == Component.POV.DOWN_LEFT) ||
     [core]                                        ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:449: package Component does not exist
     [core]                 (value == Component.POV.UP_LEFT) ||
     [core]                                        ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:450: package Component does not exist
     [core]                 (value == Component.POV.LEFT)) {
     [core]                                        ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:453: package Component does not exist
     [core]             if ((value == Component.POV.DOWN_RIGHT) ||
     [core]                                        ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:454: package Component does not exist
     [core]                 (value == Component.POV.UP_RIGHT) ||
     [core]                                        ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:455: package Component does not exist
     [core]                 (value == Component.POV.RIGHT)) {
     [core]                                        ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:472: package Component does not exist
     [core]             if ((value == Component.POV.DOWN_LEFT) ||
     [core]                                        ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:473: package Component does not exist
     [core]                 (value == Component.POV.DOWN_RIGHT) ||
     [core]                                        ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:474: package Component does not exist
     [core]                 (value == Component.POV.DOWN)) {
     [core]                                        ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:477: package Component does not exist
     [core]             if ((value == Component.POV.UP_LEFT) ||
     [core]                                        ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:478: package Component does not exist
     [core]                 (value == Component.POV.UP_RIGHT) ||
     [core]                                        ^
     [core] /home/oj/builddir/src/java/org/lwjgl/input/JInputController.java:479: package Component does not exist
     [core]                 (value == Component.POV.UP)) {
     [core]                                        ^
     [core] 47 errors

BUILD FAILED
/home/oj/builddir/build.xml:333: Compile failed; see the compiler error output for details.

Total time: 5 seconds


I really have no prior experiences with building stuff what wrong here?

MadCoder

Well I guess its safe to say that I need some kind of build guide but have been unable to find one, if someone have some pointers please help. After I have succesfully built this I will make a guide for it.

Matzon

pretty simple, need jinput support libs to compile - if need be, add them to the ant build file.

You must be using an old build file, because the one in cvs has jinput added.