building .so from CVS

Started by xeleh, February 25, 2004, 16:17:06

Previous topic - Next topic

xeleh

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.

elias

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

princec


elias

Ok, I did it myself anyway, and it works for me now... Could you try again?

- elias

xeleh

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... :)

princec

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 :)

xeleh


princec

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 :)

elias

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

xeleh

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??

elias

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