problems building cvs under mac os x and linux

Started by funsheep, July 20, 2004, 09:32:37

Previous topic - Next topic

funsheep

hi there,

i tried yesterday and this morning to build the actuall cvs version under mac os x and linux.

there occures an error when trying to build the native things.

it always says:
/LWJGL/build.xml:206: Warning: Could not find file .../funsheep/LWJGL/src/native/.libs/liblwjgl.so.0.0.0 to copy.


is this an error in the build.xml ?
also the build.xml says for linux
liblwjgl.so.0.0.0
and for the mac os x target
liblwjgl.0.0.0


then i tried to build lwjgl with the provided xcode project file. the problem there is, that xcode cannot find a file called .../src/native/macosx/org_lwjgl_Display.h
it is included in the .../src/native/macosx/org_lwjgl_Display.cpp
i cannot find it in the whole cvstree.

can someone help me?


regards
funsheep

Matzon

Mac doesn't build right now, due to the Display merge, which hasn't propogated to Mac yet.

the lib error is just a wrong name... I don't know what the right name is - so cant fix it right now... - Elias will probably chime in later...

elias

I reverted a change, so it should work again. It seems that on some configurations, a liblwjgl.so.0.0.0 is created while on others, a liblwjgl.0.0.0 is created.

- elias

MCI_Nano

Hi...

I get this problem too but with more other infos....
This is what I get compiling with ant
bash-2.05b$ ant compile
Buildfile: build.xml

initialize:
[initialiazing lib folder] Created dir: /home/mci/java/lwjgl/libs
[initialiazing dist folder] Created dir: /home/mci/java/lwjgl/dist
[initialiazing temp folder] Created dir: /home/mci/java/lwjgl/temp

compile:

compile_java:

compile_native:

compile_native_win32:

compile_native_linux:
     [echo] Compiling Linux LWJGL version
    [apply] automake: configure.in: installing `./install-sh'
    [apply] automake: configure.in: installing `./mkinstalldirs'
    [apply] automake: configure.in: installing `./missing'
    [apply] configure.in: 240: installing `./config.guess'
    [apply] configure.in: 8: required file `./[config.h].in' not found

[............snip.............]

  [apply] creating libtool
    [apply] configure: error: /opt/sun-jdk-1.4.2.04/bin/javac could not be found in path
    [apply] checking for /opt/sun-jdk-1.4.2.04/bin/javac... no
    [apply] make: *** No targets specified and no makefile found.  Stop.
    [apply] strip: '.libs/liblwjgl.0.0.0': No such file

BUILD FAILED
file:/home/mci/java/lwjgl/build.xml:206: Warning: Could not find file /home/mci/java/lwjgl/src/native/.libs/liblwjgl.0.0.0 to copy.

Total time: 36 seconds


What should I do? :?:

I have to say:
/opt/sun-jdk-1.4.2.04/bin/javac
is installed and correct. I think the configurescript gets the information from $JAVAC.
bash-2.05b$ echo $JAVAC
/opt/sun-jdk-1.4.2.04/bin/javac


Sorry, but this is the first project from cvs i want to compile... :oops:

elias

Which version of automake to you have? It seems that 1.8.3 is required... I check my version with "rpm -q automake"

- elias

Erestar

I'm having this same problem...

   [apply] configure: error: /opt/blackdown-jdk-1.4.1/bin/javac could not be found in path
    [apply] checking for /opt/blackdown-jdk-1.4.1/bin/javac... no
    [apply] make: *** No targets specified and no makefile found.  Stop.
    [apply] strip: '.libs/liblwjgl.so.0.0.0': No such file

After seeing the post about the automake version, I got that and the newest Ant and still get the same result (though I am using blackdown instead of the sun version)

/opt/blackdown-jdk-1.4.1/bin IS in my path, so I don't understand what's going wrong here. Any more ideas?

Additionally, right when I run ant compile I get
   [echo] Compiling Linux LWJGL version
    [apply] configure.in: 8: required file `./[config.h].in' not found


Not sure what that means though, or if its important.

Ere

elias

Could you try using the SUN jdk instead? And does the blackdown/bin directory contain javac?

- elias

gastar

Hi,

i get the same "...javac could not be found in path" error.
I am using a Gentoo Linux.

ant 1.6.2
Sun-JDK 1.4.2_05
automake 1.8.5-r1

elias

Yes, but does it in fact search the SUN jdk directory or the blackdown jdk dir? And does the jdk bin/ dir contain javac?

- elias

gastar

blackdown is not installed.
The path in the configure output is correct "/opt/sun-jdk-1.4.2.05/bin/javac"

And the Path contains "/opt/sun-jdk-1.4.2.05/bin"

There is no problem with calling javac on a console.

Erestar

I have no problems using javac from the command line, and the path that its saying is not in the path _is_ there.

I'll try using the Sun JDK after I finish my work, pass out, and wake up in 2 days ;)

Ere

AndersD

Gentoo is ****ed up regarding automake + java,
try to "export JAVAC=" (i.e. removing the export of javac that is nicely, ahem, put there for you by helpful gentoonians...) before running your ant make file.

EDIT: rename [config.h].in (in src/native/linux IIRC) to config.h too and it should work :)
/Anders

gastar

Thx for the tip AndersD.

the export JAVAC="" did the job with the javac error.

But i have another problem.

I had to rewrite src/native/build.sh :

strip .libs/liblwjgl.0.0.0
to
strip .libs/liblwjgl.so.0.0.0

the same change (addinge so to liblwjgl) had to be done in build.xml line 206

MCI_Nano

Hi there...

Yes I'm a Gentoo user too. But with your tips(renaming the config.h.in, export an emty $JAVAC and setting the "correct" liblwjgl.so.0.0.0 entry in build.sh and build.xml) it works.

Is this a bug of an old autmake version or what appends?
bash-2.05b# automake --version
automake (GNU automake) 1.8.3


There is a higher version available on gentoos portage tree but it is masked.

thanks for the great help, no I can go on discovering this great library ;)
cya

oak

I use Gentoo too, had to do the following to get "ant compile_native" working:

* export JAVAC=javac
* fix build.xml to look for "lwjgl.so.0.0.0" instead of  "lwjgl.0.0.0"
* and copy/symlink/move "src/native/config.h" to "src/native/[config.h].in"

I use:
* sun-jdk-1.5.0_beta2
* automake-1.8.3
ove Zig !