LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: xeleh on February 25, 2004, 16:17:06

Title: building .so from CVS
Post by: xeleh on February 25, 2004, 16:17:06
hello,

yesterday i checked out your project from sourceforge CVS and tried to build the .so library using the provided build.sh script (btw i'm using gcc 3.2 under debian woody 3.0)... but, oh! poor of me, after several lines i got this:
Quoteconfig.status: creating [config.h]
config.status: error: cannot find input file: [config.h].in
make: *** [stamp-h] Error 1

strip: .libs/liblwjgl.0.0.0: No such file or directory
then, if i renamed config.h.in to [config.h].in and execute build.sh again, i got another bunch of lines and finally this:
Quoteg++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -g -O2 -Wall -pthread -D_X11 -I/usr/X11R6/include -I/usr/local/j2sdk1.4.2_01/bin/include -I/usr/local/j2sdk1.4.2_01/bin/include/linux -c org_lwjgl_opengl_ARBShaderObjects.cpp  -fPIC -DPIC -DPIC -o org_lwjgl_opengl_ARBShaderObjects.o
org_lwjgl_opengl_ARBShaderObjects.cpp:174: variable-size type declared outside
  of any function
org_lwjgl_opengl_ARBShaderObjects.cpp:174: variable-size type declared outside
  of any function
org_lwjgl_opengl_ARBShaderObjects.cpp:175: variable-size type declared outside
  of any function
org_lwjgl_opengl_ARBShaderObjects.cpp:175: variable-size type declared outside
  of any function
make[3]: *** [org_lwjgl_opengl_ARBShaderObjects.lo] Error 1
make[3]: Leaving directory `/usr/local/workspace/LWJGL-HEAD/src/native/common/arb'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/workspace/LWJGL-HEAD/src/native/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/workspace/LWJGL-HEAD/src/native'
make: *** [all-recursive-am] Error 2
strip: .libs/liblwjgl.0.0.0: No such file or directory
please, can you help me? thanks in advance.
Title: building .so from CVS
Post by: elias on February 25, 2004, 16:37:10
Yes, Cas is working on some context stuff and he's not yet done with the linux part. He will eventually though, so you just have to be patient :/

- elias
Title: building .so from CVS
Post by: princec on February 25, 2004, 17:00:01
Soon, soon...

Cas :)
Title: building .so from CVS
Post by: elias on February 25, 2004, 18:05:43
Ok, I did it myself anyway, and it works for me now... Could you try again?

- elias
Title: building .so from CVS
Post by: xeleh on February 26, 2004, 09:43:04
it doesn't work for me...  :(  i got the same problems i posted yesterday...
Quoteautomake: configure.in: installing `./install-sh'
automake: configure.in: installing `./mkinstalldirs'
automake: configure.in: installing `./missing'
configure.in: 1113: installing `./config.guess'
configure.in: 8: required file `./[config.h].in' not found
why [config.h].in not found? ...
btw, can you give me a date for v0.9 release? i'll be patient... :)
Title: building .so from CVS
Post by: princec on February 26, 2004, 10:24:06
0.9 will be released by Easter.
Actually progress is excellent so far. Nearly everything we wanted to do is done AFAIK apart from Mac stuff.

Cas :)
Title: building .so from CVS
Post by: xeleh on February 26, 2004, 10:49:15
excellent news!  :)
Title: building .so from CVS
Post by: princec on February 26, 2004, 11:26:20
More roadmap news if you didn't know:

When 0.9alpha has been determined to more or less work, and not be missing any glaring functionality, it becomes 0.9beta and we will freeze the API.

At that point we will work all-out on Javadoc, tutorials, and the website to release 1.0 for JavaOne amidst a great fanfare :p

Cas :)
Title: building .so from CVS
Post by: elias on February 26, 2004, 14:57:52
Did you try to build it manually? That is:

1. go to src/native
2. run ./autogen.sh
3. run ./configure
4. run make

- elias
Title: building .so from CVS
Post by: xeleh on February 26, 2004, 15:45:05
step 1 ok, step 2 ok, step 3 ok, step 4-crash-  :( i get this:
Quoteg++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -g -O2 -Wall -pthread -D_X11 -I/usr/X11R6/include -I/usr/local/j2sdk1.4.2_01/bin/include -I/usr/local/j2sdk1.4.2_01/bin/include/linux -c org_lwjgl_opengl_ARBShaderObjects.cpp  -fPIC -DPIC -DPIC -o org_lwjgl_opengl_ARBShaderObjects.o
org_lwjgl_opengl_ARBShaderObjects.cpp:174: variable-size type declared outside
  of any function
org_lwjgl_opengl_ARBShaderObjects.cpp:174: variable-size type declared outside
  of any function
org_lwjgl_opengl_ARBShaderObjects.cpp:175: variable-size type declared outside
  of any function
org_lwjgl_opengl_ARBShaderObjects.cpp:175: variable-size type declared outside
  of any function
make[3]: *** [org_lwjgl_opengl_ARBShaderObjects.lo] Error 1
make[3]: Leaving directory `/usr/local/workspace/lwjgl/src/native/common/arb'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/workspace/lwjgl/src/native/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/workspace/lwjgl/src/native'
make: *** [all-recursive-am] Error 2
btw, which compiler are you using??
Title: building .so from CVS
Post by: elias on February 27, 2004, 08:27:04
Ok, I tried to fix the compile error, so try again. Here's my gcc version:

elias@ip173:~/cvs/lwjgl/src/native> g++ -v
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.1/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.1 (SuSE Linux)

(I'm on SUSE 9)

- elias