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
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...
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
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:
Which version of automake to you have? It seems that 1.8.3 is required... I check my version with "rpm -q automake"
- elias
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
Could you try using the SUN jdk instead? And does the blackdown/bin directory contain javac?
- elias
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
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
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.
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
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
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
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
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
I also use Gentoo, and I tried all of the previous poster's suggestions for getting LWJGL to work, to no avail. Here is the output after I've taken all those above steps:
compile_native_linux:
[echo] Compiling Linux LWJGL version
[apply] autoconf: Undefined macros:
[apply] configure.in:70:AC_FUNC_MALLOC
[apply] configure.in:73:AC_CONFIG_FILES([Makefile
[apply] configure.in:7:AC_CONFIG_SRCDIR([autogen.sh])
[apply] configure: error: can not find sources in . or ..
[apply] make: *** No targets specified and no makefile found. Stop.
[apply] strip: '.libs/liblwjgl.0.0.0': No such file
BUILD FAILED
/home/paul/arc/LWJGL/build.xml:118: The following error occurred while executing this line:
/home/paul/arc/LWJGL/build.xml:165: The following error occurred while executing this line:
/home/paul/arc/LWJGL/build.xml:186: Warning: Could not find file /home/paul/arc/LWJGL/src/native/.libs/liblwjgl.0.0.0 to copy.
I've got automake 1.8.5, and I've tried building it with both sun-jdk-1.4.2.05 and blackdown-jdk-1.4.2_rc1, with the same results. Any clue?
What version of autoconf are you running? Try updating it, and see if that helps.
If you think you're already running the latest version, check to see if you have multiple versions of it installed - that's a common problem with Linux systems.
Thanks, that was the problem! In Gentoo, the autoconf-2.59-r4 package installs both autoconf-2.13 and autoconf-2.59. The default version used is autoconf-2.13. To override this, you have to set an environment variable like so:
export WANT_AUTOCONF=2.5
Then autoconf-2.59 will be used.
In my projects, I add a line like AC_PREREQ( 2.52 ) to aclocal.m4 to require version 2.52 of autoconf (for example), and then it seems to choose the right version of autoconf automatically. Is LWJGL supposed to do this?