From: Daniel B. <da...@gm...> - 2003-03-14 14:41:11
|
hi, just tried to compile gl4java (in Linux) but i've somewhat big problems. I've read in the archive of some successful compilations, but i can't comprehend, how you did that. Think, the makefile is somewhat ... ahm let us call it - not perfect at all. I am wondering why 'make x11' is trying to write all kinds of files to directories outside the compilation directory. If compiling fails the crap of compilation spreads over my file system, apart from that some rm cmds are not correct too. For example make tries to remove my /usr/local/lib directory ... rm -f /usr/local/lib /libGL4JavaJauGljJNI13tst.* rm: cannot remove `/usr/local/lib': Is a directory make: *** [/usr/local/lib] Error 1 That's not really kewl at all ... So my question is, how did the people, who stated the successfull compilation, accomplish that? Became root and disregard, what the script does? greetz Daniel |
From: Pepijn V. E. <pep...@lu...> - 2003-03-14 15:30:15
Attachments:
symbols.mak
|
I don't know if you've followed the discussion in the development group... One of the things I want to change in GL4Java is the build script. I haven't started on that yet because I'm having some difficulties with my employer related to intellectual property ownership. Anyway personally I got gl4java to compile by tweaking the makefile and the symbols.mak file. You can set the destination directories to some directory under the gl4java build dir, which should solve your problem. I also encountered a problem with running javah. The classpath was not properly set in the makefile causing it to fail. Again modifying the symbols file fixed this. I've attached my local version. It is for windows, but it should give you an idea... Hope this helps. Pepijn Van Eeckhoudt Daniel Brunthaler wrote: > hi, > > just tried to compile gl4java (in Linux) but i've somewhat big problems. I've > read in the archive of some successful compilations, but i can't comprehend, > how you did that. Think, the makefile is somewhat ... ahm let us call it - > not perfect at all. > I am wondering why 'make x11' is trying to write all kinds of files to > directories outside the compilation directory. If compiling fails the crap of > compilation spreads over my file system, apart from that some rm cmds are not > correct too. For example make tries to remove my /usr/local/lib directory ... > > rm -f /usr/local/lib /libGL4JavaJauGljJNI13tst.* > rm: cannot remove `/usr/local/lib': Is a directory > make: *** [/usr/local/lib] Error 1 > > That's not really kewl at all ... > So my question is, how did the people, who stated the successfull compilation, > accomplish that? Became root and disregard, what the script does? > > greetz > Daniel > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > Get cracking and register here for some mind boggling fun and > the chance of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > _______________________________________________ > gl4java-usergroup mailing list > gl4...@li... > https://lists.sourceforge.net/lists/listinfo/gl4java-usergroup > |
From: Daniel B. <da...@gm...> - 2003-03-14 16:35:39
Attachments:
hs_err_pid8263.log
|
Hi, thx for your answer. Shortly after sending my mail i was successfull with changing HOME_LIB_DIR= ./lib DEST_CLASSES_DIR= . JAR_DESTS= /usr/local/src/GL4Java/gl4java in the symbols.mak file. With this settings the make file of gl4java runs fine, all java and c programs were compiled correctly and stored under the /user/local/src/GL4Java directory tree. So i am happy again concerning the compiling :) But my beginning problem, the reason why i wanted to compile gl4java myself is still the same :( When i start any program using gl4java it crashes probably caused by my nvidia driver. The output is the following ... An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x4CE15188 Function=__nvsym17103+0x0 Library=/usr/lib/libGL.so ... I've attached the created error log file, which contains the hole stack trace. I am using the latest nvidia driver for linux 32bit (4191) and my card is a common geforce2. I already sent an email to nvidia but i didn't get response since yet. Did anyone had an related problem and knows how to solve this? Or does anyone have an idea, what i can try else? thx in advance & best regards Daniel |
From: Pepijn V. E. <pep...@lu...> - 2003-03-14 16:57:33
|
I was just looking at the source of the gljMakeCurrentNative method and I encountered this: /** JAU NVidia 2314 Bug workaround .. ctx = disp__glXGetCurrentContext(); */ Maybe that's a starting point? I couldn't find any reference to this on the sourceforge site... I have gl4java up and running here under linux on a TNT2 card using the latest nvidia drivers and that works just fine. I haven't tested with any of the newer nvidia chips yet. Pepijn Daniel Brunthaler wrote: > Hi, > > thx for your answer. > Shortly after sending my mail i was successfull with changing > HOME_LIB_DIR= ./lib > DEST_CLASSES_DIR= . > JAR_DESTS= /usr/local/src/GL4Java/gl4java > in the symbols.mak file. With this settings the make file of gl4java runs > fine, all java and c programs were compiled correctly and stored under the > /user/local/src/GL4Java directory tree. > So i am happy again concerning the compiling :) > But my beginning problem, the reason why i wanted to compile gl4java myself is > still the same :( > When i start any program using gl4java it crashes probably caused by my nvidia > driver. > The output is the following ... > > An unexpected exception has been detected in native code outside the VM. > Unexpected Signal : 11 occurred at PC=0x4CE15188 > Function=__nvsym17103+0x0 > Library=/usr/lib/libGL.so > ... > > I've attached the created error log file, which contains the hole stack trace. > I am using the latest nvidia driver for linux 32bit (4191) and my card is a > common geforce2. > I already sent an email to nvidia but i didn't get response since yet. > Did anyone had an related problem and knows how to solve this? Or does anyone > have an idea, what i can try else? > > thx in advance & best regards > Daniel > > > ------------------------------------------------------------------------ > > > An unexpected exception has been detected in native code outside the VM. > Unexpected Signal : 11 occurred at PC=0x4CE15188 > Function=__nvsym17103+0x0 > Library=/usr/lib/libGL.so > > Current Java thread: > at gl4java.GLContext.gljMakeCurrentNative(Native Method) > at gl4java.GLContext.gljMakeCurrent(GLContext.java:2472) > - locked <0x441348f8> (a gl4java.GLContext) > at gl4java.awt.GLCanvas.display(GLCanvas.java:785) > at gl4java.awt.GLCanvas.sDisplay(GLCanvas.java:715) > at gl4java.awt.GLAnimCanvas.run(GLAnimCanvas.java:466) > at java.lang.Thread.run(Thread.java:536) > > Dynamic libraries: > 08048000-0804e000 r-xp 00000000 03:05 202553 /usr/lib/BlackdownJava2sdk1.4.1-01/bin/java > 0804e000-0804f000 rw-p 00005000 03:05 202553 /usr/lib/BlackdownJava2sdk1.4.1-01/bin/java > 40000000-40012000 r-xp 00000000 03:05 136417 /lib/ld-2.2.5.so > 40012000-40013000 rw-p 00011000 03:05 136417 /lib/ld-2.2.5.so > 40014000-4001e000 r-xp 00000000 03:05 203034 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/native_threads/libhpi.so > 4001e000-4001f000 rw-p 00009000 03:05 203034 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/native_threads/libhpi.so > 4001f000-40026000 r-xp 00000000 03:05 29198 /usr/X11R6/lib/libXp.so.6.2 > 40026000-40027000 rw-p 00006000 03:05 29198 /usr/X11R6/lib/libXp.so.6.2 > 40027000-40035000 r-xp 00000000 03:05 136427 /lib/libpthread.so.0 > 40035000-4003c000 rw-p 0000e000 03:05 136427 /lib/libpthread.so.0 > 4003c000-4003e000 r-xp 00000000 03:05 136421 /lib/libdl.so.2 > 4003e000-4003f000 rw-p 00001000 03:05 136421 /lib/libdl.so.2 > 4003f000-40153000 r-xp 00000000 03:05 136418 /lib/libc.so.6 > 40153000-40159000 rw-p 00113000 03:05 136418 /lib/libc.so.6 > 4015d000-404b9000 r-xp 00000000 03:05 203038 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/client/libjvm.so > 404b9000-404d4000 rw-p 0035b000 03:05 203038 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/client/libjvm.so > 404e5000-404f7000 r-xp 00000000 03:05 136423 /lib/libnsl.so.1 > 404f7000-404f8000 rw-p 00011000 03:05 136423 /lib/libnsl.so.1 > 404fa000-40593000 r-xp 00000000 03:05 28368 /usr/lib/libstdc++.so.5.0.0 > 40593000-405a8000 rw-p 00098000 03:05 28368 /usr/lib/libstdc++.so.5.0.0 > 405ad000-405cf000 r-xp 00000000 03:05 136422 /lib/libm.so.6 > 405cf000-405d0000 rw-p 00021000 03:05 136422 /lib/libm.so.6 > 405d0000-405d7000 r-xp 00000000 03:05 26751 /lib/libgcc_s.so.1 > 405d7000-405d8000 rw-p 00007000 03:05 26751 /lib/libgcc_s.so.1 > 405d8000-405e9000 r-xp 00000000 03:05 203028 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/libverify.so > 405e9000-405ea000 rw-p 00011000 03:05 203028 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/libverify.so > 405ea000-4060a000 r-xp 00000000 03:05 203043 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/libjava.so > 4060a000-4060c000 rw-p 0001f000 03:05 203043 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/libjava.so > 4060c000-4061e000 r-xp 00000000 03:05 203032 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/libzip.so > 4061e000-40620000 rw-p 00011000 03:05 203032 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/libzip.so > 40620000-41cee000 r--s 00000000 03:05 203141 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/rt.jar > 41d31000-41d48000 r--s 00000000 03:05 203099 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/sunrsasign.jar > 41d48000-41db9000 r--s 00000000 03:05 203079 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/jsse.jar > 41db9000-41dcc000 r--s 00000000 03:05 203145 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/jce.jar > 41dcc000-42088000 r--s 00000000 03:05 203138 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/charsets.jar > 4c1b0000-4c3d5000 r-xp 00000000 03:05 203057 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/libawt.so > 4c3d5000-4c3ea000 rw-p 00224000 03:05 203057 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/libawt.so > 4c40f000-4c475000 r-xp 00000000 03:05 203041 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/libmlib_image.so > 4c475000-4c476000 rw-p 00065000 03:05 203041 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/libmlib_image.so > 4c476000-4c479000 r--s 00000000 03:05 203019 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/ext/dnsns.jar > 4c479000-4c487000 r--s 00000000 03:05 203021 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/ext/ldapsec.jar > 4c487000-4c488000 r-xp 00000000 03:05 203044 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/libjawt.so > 4c488000-4c489000 rw-p 00000000 03:05 203044 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/libjawt.so > 4c489000-4c4d7000 r-xp 00000000 03:05 29206 /usr/X11R6/lib/libXt.so.6.0 > 4c4d7000-4c4db000 rw-p 0004d000 03:05 29206 /usr/X11R6/lib/libXt.so.6.0 > 4c4db000-4c4e3000 r-xp 00000000 03:05 29176 /usr/X11R6/lib/libSM.so.6.0 > 4c4e3000-4c4e4000 rw-p 00007000 03:05 29176 /usr/X11R6/lib/libSM.so.6.0 > 4c4e4000-4c4f8000 r-xp 00000000 03:05 29174 /usr/X11R6/lib/libICE.so.6.3 > 4c4f8000-4c4f9000 rw-p 00013000 03:05 29174 /usr/X11R6/lib/libICE.so.6.3 > 4c4fb000-4c508000 r-xp 00000000 03:05 29186 /usr/X11R6/lib/libXext.so.6.4 > 4c508000-4c509000 rw-p 0000c000 03:05 29186 /usr/X11R6/lib/libXext.so.6.4 > 4c509000-4c50d000 r-xp 00000000 03:05 29208 /usr/X11R6/lib/libXtst.so.6.1 > 4c50d000-4c50e000 rw-p 00004000 03:05 29208 /usr/X11R6/lib/libXtst.so.6.1 > 4c50e000-4c602000 r-xp 00000000 03:05 29178 /usr/X11R6/lib/libX11.so.6.2 > 4c602000-4c606000 rw-p 000f4000 03:05 29178 /usr/X11R6/lib/libX11.so.6.2 > 4c606000-4c869000 r--s 00000000 03:05 45353 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/ext/j3dcore.jar > 4c869000-4c998000 r--s 00000000 03:05 45354 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/ext/j3dutils.jar > 4c998000-4caea000 r--s 00000000 03:05 45351 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/ext/j3daudio.jar > 4caea000-4cb07000 r--s 00000000 03:05 203020 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/ext/sunjce_provider.jar > 4cb07000-4cb15000 r--s 00000000 03:05 45348 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/ext/png.jar > 4cb15000-4cbb4000 r--s 00000000 03:05 203022 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/ext/localedata.jar > 4cbb4000-4cbfb000 r--s 00000000 03:05 45355 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/ext/vecmath.jar > 4cbfb000-4ccac000 r-xp 00000000 03:05 203031 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/libfontmanager.so > 4ccac000-4ccbe000 rw-p 000b0000 03:05 203031 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/libfontmanager.so > 4ccbe000-4ccc0000 r-xp 00000000 03:05 29168 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2 > 4ccc0000-4ccc1000 rw-p 00001000 03:05 29168 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2 > 4ccc1000-4ccdd000 r-xp 00000000 03:05 29167 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2 > 4ccdd000-4ccdf000 rw-p 0001b000 03:05 29167 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2 > 4ccdf000-4cce8000 r-xp 00000000 03:05 29172 /usr/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2 > 4cce8000-4cce9000 rw-p 00008000 03:05 29172 /usr/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2 > 4cce9000-4cdd8000 r-xp 00000000 03:05 201042 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/libGL4JavaJauGljJNI14.so > 4cdd8000-4cddc000 rw-p 000ee000 03:05 201042 /usr/lib/BlackdownJava2sdk1.4.1-01/jre/lib/i386/libGL4JavaJauGljJNI14.so > 4cdde000-4cdee000 rw-s ec810000 03:05 37852 /dev/nvidia0 > 4cdee000-4cdef000 rw-s 04fac000 03:05 37852 /dev/nvidia0 > 4cdef000-4cdf0000 rwxp 00000000 03:05 41024 /dev/zero > 4cdf0000-4cdf1000 rwxp 00000000 03:05 41024 /dev/zero > 4cdf1000-4ce3a000 r-xp 00000000 03:05 78112 /usr/lib/libGL.so.1.0.4191 > 4ce3a000-4ce3c000 rw-p 00048000 03:05 78112 /usr/lib/libGL.so.1.0.4191 > 4ce3e000-4d2c2000 r-xp 00000000 03:05 88840 /usr/lib/libGLcore.so.1.0.4191 > 4d2c2000-4d2c6000 rw-p 00483000 03:05 88840 /usr/lib/libGLcore.so.1.0.4191 > 4d368000-4d3ee000 r-xp 00000000 03:05 91084 /usr/lib/libGLU.so.1.3 > 4d3ee000-4d3fa000 rw-p 00085000 03:05 91084 /usr/lib/libGLU.so.1.3 > 4d496000-4d59d000 rw-s 00000000 00:04 0 /SYSV00000000 (deleted) > 4d59d000-5559d000 rw-s e0000000 03:05 37852 /dev/nvidia0 > 55676000-55778000 rw-s e8010000 03:05 37852 /dev/nvidia0 > 5587a000-5588a000 rwxp 00000000 03:05 41024 /dev/zero > 5588a000-5588b000 rwxp 00000000 03:05 41024 /dev/zero > 5588b000-5588c000 rwxp 00000000 03:05 41024 /dev/zero > 5588c000-5588d000 rwxp 00000000 03:05 41024 /dev/zero > 5588d000-5588e000 rwxp 00000000 03:05 41024 /dev/zero > 5588e000-5588f000 rwxp 00000000 03:05 41024 /dev/zero > 5588f000-55890000 rwxp 00000000 03:05 41024 /dev/zero > > Local Time = Fri Mar 14 17:13:26 2003 > Elapsed Time = 3 > # > # The exception above was detected in native code outside the VM > # > # Java VM: Java HotSpot(TM) Client VM (Blackdown-1.4.1-01 mixed mode) > # |