Thread: [sdljava-users] help getting space-invaders to run (GNU/Linux, FC4, GCJ)
Status: Beta
Brought to you by:
ivan_ganza
From: John M. G. <joh...@ya...> - 2005-08-17 04:54:59
|
I just installed sdljava on my Fedora Core 4 GNU/Linux system, which uses GNU Java plus the "compatibility package" (so it has links from java --> gij, javac --> gcj, and so on). Anyhow, my notes are here: http://www.simisen.com/jmg/pmwiki/pmwiki.php?n=Main.Sdljava I can run some of the programs in sdljava-0.9.1/bin, but a few are complaining: ******** Reading classes from sdljava.jar Native code library failed to load. java.lang.UnsatisfiedLinkError: libgljava: libGLEW.so.2: cannot open shared object file: No such file or directory This makes no sense to me, since, the install notes: http://sdljava.sourceforge.net/installation.html say to use GLEW 1.3.1 (I installed 1.3.3) -- and there isn't even a GLEW 2.0 out yet. Did I install something incorrectly? I'd really like to see space invaders! :) Thanks, ---John ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs |
From: <ja...@ho...> - 2005-08-17 08:08:42
|
John M. Gabriele wrote: > ******** Reading classes from sdljava.jar > Native code library failed to load. > java.lang.UnsatisfiedLinkError: libgljava: libGLEW.so.2: cannot open shared > object file: No such file or directory > > This makes no sense to me, since, the install notes: > http://sdljava.sourceforge.net/installation.html > say to use GLEW 1.3.1 (I installed 1.3.3) -- and there isn't > even a GLEW 2.0 out yet. I had similar problem (although not on FC - I was using SUN's java on PLD linux ditro) and I really don't know why it is happaning ... but I did a simlink named libGLEW.so.2 and everything started to work ;) I think it should work for you to (... but still it is not a real fix, just a stupid work-around). greetings, -me. -- --==--==------------------- Witold Bołt :: ja...@ho... gg: 1613047 gsm:660316053 www.houp.info |
From: Ivan Z. G. <iva...@ya...> - 2005-08-17 14:02:14
|
This is strange and I wonder why you are getting the error. I noticed you are on linux. If your on linux I would try to build and install everything from scratch starting with GLEW. That _should_ most certainly work. On my system here I have glew 1.3.1 and all the open gl examples are working fine for me. We should try to figure out what is with that error though. -Ivan/ Witold Bo=C5=82t wrote: > John M. Gabriele wrote: > >> ******** Reading classes from sdljava.jar >> Native code library failed to load. >> java.lang.UnsatisfiedLinkError: libgljava: libGLEW.so.2: cannot open >> shared >> object file: No such file or directory >> >> This makes no sense to me, since, the install notes: >> http://sdljava.sourceforge.net/installation.html >> say to use GLEW 1.3.1 (I installed 1.3.3) -- and there isn't >> even a GLEW 2.0 out yet. > > > I had similar problem (although not on FC - I was using SUN's java on > PLD linux ditro) and I really don't know why it is happaning > > ... but I did a simlink named libGLEW.so.2 and everything started to > work ;) I think it should work for you to (... but still it is not a > real fix, just a stupid work-around). > > > greetings, > -me. > |
From: Ivan Z. G. <iva...@ya...> - 2005-08-17 14:19:18
|
One other thing -- I was getting NullPointerExceptions when trying to run space invaders here and the reason was the image files where bmp.=20 I'm not sure why but png works fine so I have converted the images files to png and checked this in. Save invaders is working for me now here... -Ivan/ Ivan Z. Ganza wrote: >This is strange and I wonder why you are getting the error. > >I noticed you are on linux. If your on linux I would try to build and >install everything from scratch starting with GLEW. That _should_ most >certainly work. > >On my system here I have glew 1.3.1 and all the open gl examples are >working fine for me. > >We should try to figure out what is with that error though. > >-Ivan/ > >Witold Bo=C5=82t wrote: > > =20 > >>John M. Gabriele wrote: >> >> =20 >> >>>******** Reading classes from sdljava.jar >>>Native code library failed to load. >>>java.lang.UnsatisfiedLinkError: libgljava: libGLEW.so.2: cannot open >>>shared >>>object file: No such file or directory >>> >>>This makes no sense to me, since, the install notes: >>>http://sdljava.sourceforge.net/installation.html >>>say to use GLEW 1.3.1 (I installed 1.3.3) -- and there isn't >>>even a GLEW 2.0 out yet. >>> =20 >>> >>I had similar problem (although not on FC - I was using SUN's java on >>PLD linux ditro) and I really don't know why it is happaning >> >>... but I did a simlink named libGLEW.so.2 and everything started to >>work ;) I think it should work for you to (... but still it is not a >>real fix, just a stupid work-around). >> >> >>greetings, >>-me. >> >> =20 >> > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practi= ces >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & = QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5s= f >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > =20 > |
From: John M. G. <joh...@ya...> - 2005-08-17 14:36:03
|
Ivan -- why use GLEW at all? Is it simply for platform independence? On GNU/Linux, SDL by itself doesn't require it at all. There's a tool called glxinfo that tells all about what extensions are loaded/available (?), and I'm sure there's gotta be a way to use glx to do whatever GLEW is doing, right? I just took a look at the GLEW mailing list, https://sourceforge.net/mailarchive/forum.php?forum_id=43720 and it looks pretty barren. Ivan -- do you have a GNU/Linux box around for testing sdljava? I'm guessing you're on some version of MS Windows. Thanks, ---John --- "Ivan Z. Ganza" <iva...@ya...> wrote: > This is strange and I wonder why you are getting the error. > > I noticed you are on linux. If your on linux I would try to build and > install everything from scratch starting with GLEW. That _should_ most > certainly work. > > On my system here I have glew 1.3.1 and all the open gl examples are > working fine for me. > > We should try to figure out what is with that error though. > > -Ivan/ > > Witold BoÅt wrote: > > > John M. Gabriele wrote: > > > >> ******** Reading classes from sdljava.jar > >> Native code library failed to load. > >> java.lang.UnsatisfiedLinkError: libgljava: libGLEW.so.2: cannot open > >> shared > >> object file: No such file or directory > >> > >> This makes no sense to me, since, the install notes: > >> http://sdljava.sourceforge.net/installation.html > >> say to use GLEW 1.3.1 (I installed 1.3.3) -- and there isn't > >> even a GLEW 2.0 out yet. > > > > > > I had similar problem (although not on FC - I was using SUN's java on > > PLD linux ditro) and I really don't know why it is happaning > > > > ... but I did a simlink named libGLEW.so.2 and everything started to > > work ;) I think it should work for you to (... but still it is not a > > real fix, just a stupid work-around). > > > > > > greetings, > > -me. > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users > ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs |
From: Ivan Z. G. <iva...@ya...> - 2005-08-17 15:09:36
|
John M. Gabriele wrote: >Ivan -- why use GLEW at all? Is it simply for platform >independence? > =20 > Yes it is so that we can support as many platforms as possible. >On GNU/Linux, SDL by itself doesn't require it at all. >There's a tool called glxinfo that tells all about what >extensions are loaded/available (?), and I'm sure there's >gotta be a way to use glx to do whatever GLEW is doing, >right? > >I just took a look at the GLEW mailing list, >https://sourceforge.net/mailarchive/forum.php?forum_id=3D43720 >and it looks pretty barren. > > =20 > The list isn't actually used -- I should remove it. >Ivan -- do you have a GNU/Linux box around for testing >sdljava? I'm guessing you're on some version of MS Windows. > > =20 > This is all coded from my gento box ... ;) I could really use the help of someone on Windows though -- for testing. -Ivan/ >Thanks, >---John > > >--- "Ivan Z. Ganza" <iva...@ya...> wrote: > > =20 > >>This is strange and I wonder why you are getting the error. >> >>I noticed you are on linux. If your on linux I would try to build and >>install everything from scratch starting with GLEW. That _should_ most >>certainly work. >> >>On my system here I have glew 1.3.1 and all the open gl examples are >>working fine for me. >> >>We should try to figure out what is with that error though. >> >>-Ivan/ >> >>Witold Bo=C5=82t wrote: >> >> =20 >> >>>John M. Gabriele wrote: >>> >>> =20 >>> >>>>******** Reading classes from sdljava.jar >>>>Native code library failed to load. >>>>java.lang.UnsatisfiedLinkError: libgljava: libGLEW.so.2: cannot open >>>>shared >>>>object file: No such file or directory >>>> >>>>This makes no sense to me, since, the install notes: >>>>http://sdljava.sourceforge.net/installation.html >>>>say to use GLEW 1.3.1 (I installed 1.3.3) -- and there isn't >>>>even a GLEW 2.0 out yet. >>>> =20 >>>> >>>I had similar problem (although not on FC - I was using SUN's java on >>>PLD linux ditro) and I really don't know why it is happaning >>> >>>... but I did a simlink named libGLEW.so.2 and everything started to >>>work ;) I think it should work for you to (... but still it is not a >>>real fix, just a stupid work-around). >>> >>> >>>greetings, >>>-me. >>> >>> =20 >>> >> >>------------------------------------------------------- >>SF.Net email is Sponsored by the Better Software Conference & EXPO >>September 19-22, 2005 * San Francisco, CA * Development Lifecycle Pract= ices >>Agile & Plan-Driven Development * Managing Projects & Teams * Testing &= QA >>Security * Process Improvement & Measurement * http://www.sqe.com/bsce5= sf >>_______________________________________________ >>sdljava-users mailing list >>sdl...@li... >>https://lists.sourceforge.net/lists/listinfo/sdljava-users >> >> =20 >> > > > > =09 >____________________________________________________ >Start your day with Yahoo! - make it your home page=20 >http://www.yahoo.com/r/hs=20 >=20 > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practi= ces >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & = QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5s= f >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > =20 > |
From: John M. G. <joh...@ya...> - 2005-08-17 17:56:24
|
--- "Ivan Z. Ganza" <iva...@ya...> wrote: > John M. Gabriele wrote: > > [snip] > > > >I just took a look at the GLEW mailing list, > >https://sourceforge.net/mailarchive/forum.php?forum_id=43720 > >and it looks pretty barren. > > > > > The list isn't actually used -- I should remove it. Sorry -- I don't know what you mean. Do you manage that project as well as sdljava (and gljava)? I don't see your name here: https://sourceforge.net/project/memberlist.php?group_id=67586 Is GLEW a subproject of sdljava? > >Ivan -- do you have a GNU/Linux box around for testing > >sdljava? I'm guessing you're on some version of MS Windows. > > > > > This is all coded from my gento box ... ;) Nice. :) ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs |
From: Ivan Z. G. <iva...@ya...> - 2005-08-17 22:48:38
|
John M. Gabriele wrote: >--- "Ivan Z. Ganza" <iva...@ya...> wrote: > > > >>John M. Gabriele wrote: >> >>[snip] >> >> >>>I just took a look at the GLEW mailing list, >>>https://sourceforge.net/mailarchive/forum.php?forum_id=43720 >>>and it looks pretty barren. >>> >>> >>> >>> >>The list isn't actually used -- I should remove it. >> >> > >Sorry -- I don't know what you mean. Do you manage that >project as well as sdljava (and gljava)? > >I don't see your name here: >https://sourceforge.net/project/memberlist.php?group_id=67586 > >Is GLEW a subproject of sdljava? > > Oh...ahhh my mistake. I misunderstood. No I'm not the manager of GLEW. My mind had understood you meant the gljava mailing list and not the glew :-( They seem to be pretty active and keep cranking out the releases. I'm not sure why there is not much mailing list traffic. >>>Ivan -- do you have a GNU/Linux box around for testing >>>sdljava? I'm guessing you're on some version of MS Windows. >>> >>> >>> >>> >>This is all coded from my gento box ... ;) >> >> > >Nice. :) > > > > > >____________________________________________________ >Start your day with Yahoo! - make it your home page >http://www.yahoo.com/r/hs > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > |
From: John M. G. <joh...@ya...> - 2005-08-18 03:38:52
|
--- "Ivan Z. Ganza" <iva...@ya...> wrote: > John M. Gabriele wrote: > > >--- "Ivan Z. Ganza" <iva...@ya...> wrote: > > > > > > > >>John M. Gabriele wrote: > >> > >>[snip] > >> > >> > >>>I just took a look at the GLEW mailing list, > >>>https://sourceforge.net/mailarchive/forum.php?forum_id=43720 > >>>and it looks pretty barren. > >>> > >>> > >>> > >>> > >>The list isn't actually used -- I should remove it. > >> > >> > > > >Sorry -- I don't know what you mean. Do you manage that > >project as well as sdljava (and gljava)? > > > >I don't see your name here: > >https://sourceforge.net/project/memberlist.php?group_id=67586 > > > >Is GLEW a subproject of sdljava? > > > > > Oh...ahhh my mistake. > > I misunderstood. No I'm not the manager of GLEW. My mind had > understood you meant the gljava mailing list and not the glew :-( > I wouldn't remove the gljava ML just yet. After your comment about creating a glut wrapper using SWIG like was done with SDL, that project may yet take on a life of it's own. Did you recently separate gljava off on it's own, or was it that way since you took over the project? Actually, I'm curious about the history of both projects... Could you tell us about it? We could take this offline if you think it's too far off-topic. Thanks, ---John ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs |
From: <iva...@ya...> - 2005-08-18 17:21:35
|
On Wed, Aug 17, 2005 at 04:58:12PM -0700, John M. Gabriele wrote: > > > --- "Ivan Z. Ganza" <iva...@ya...> wrote: > > > John M. Gabriele wrote: > > > > >--- "Ivan Z. Ganza" <iva...@ya...> wrote: > > > > > > > > > > > >>John M. Gabriele wrote: > > >> > > >>[snip] > > >> > > >> > > >>>I just took a look at the GLEW mailing list, > > >>>https://sourceforge.net/mailarchive/forum.php?forum_id=43720 > > >>>and it looks pretty barren. > > >>> > > >>> > > >>> > > >>> > > >>The list isn't actually used -- I should remove it. > > >> > > >> > > > > > >Sorry -- I don't know what you mean. Do you manage that > > >project as well as sdljava (and gljava)? > > > > > >I don't see your name here: > > >https://sourceforge.net/project/memberlist.php?group_id=67586 > > > > > >Is GLEW a subproject of sdljava? > > > > > > > > Oh...ahhh my mistake. > > > > I misunderstood. No I'm not the manager of GLEW. My mind had > > understood you meant the gljava mailing list and not the glew :-( > > > > I wouldn't remove the gljava ML just yet. After your comment > about creating a glut wrapper using SWIG like was done with > SDL, that project may yet take on a life of it's own. > > Did you recently separate gljava off on it's own, or was it > that way since you took over the project? > > Actually, I'm curious about the history of both projects... > Could you tell us about it? We could take this offline if you > think it's too far off-topic. > > Thanks, > ---John Nah its probably good to have in the archive for informational/historic purposes. First there was JSDL which was NOT my project but started by a bunch of people who I have never met or talked with. The original project pages are still up I belive. About one year before I took over the project I had much free time because I was recently laid off and not working so I started coding a java game using JSDL. This resulted in me making many changes to the original API. I tried to submit the changes but the project at that point it didn't seem active anymore so I choose to take it over. Soon I realized that a complete re-write was in order and hence the project was born. While working with sdljava when I started to add the OpenGL code I realized that it could be free of any dependency on sdljava and live on its own. As long as 'something' could initialize the OpenGL context then everything should work. At that point I started the gljava project. For a while I worked on making a GLUT binding with SWIG however I had some problems that I was never able to fix (probably due to my misunderstanding of something) so I had to leave it to collect dust until the problems could be fixed. FreeGLUT might be the answer and I'm wonder if the problem I had would go away. So there is the history of the two projects ;-) -Ivan/ > > > > > ____________________________________________________ > Start your day with Yahoo! - make it your home page > http://www.yahoo.com/r/hs > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users |