sdljava-users Mailing List for Java Binding for SDL (Page 4)
Status: Beta
Brought to you by:
ivan_ganza
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(7) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(43) |
Feb
(50) |
Mar
(44) |
Apr
(14) |
May
(18) |
Jun
(7) |
Jul
(26) |
Aug
(29) |
Sep
(28) |
Oct
(10) |
Nov
(5) |
Dec
(7) |
2006 |
Jan
(2) |
Feb
(9) |
Mar
(16) |
Apr
(1) |
May
(11) |
Jun
(8) |
Jul
(8) |
Aug
(5) |
Sep
(15) |
Oct
|
Nov
|
Dec
(2) |
2007 |
Jan
|
Feb
(2) |
Mar
(2) |
Apr
(2) |
May
(2) |
Jun
(4) |
Jul
(1) |
Aug
(14) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
(3) |
Dec
(1) |
2009 |
Jan
(1) |
Feb
(5) |
Mar
|
Apr
|
May
(3) |
Jun
(1) |
Jul
|
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
(1) |
Dec
|
2010 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2013 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(1) |
2016 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Patric <pa...@ma...> - 2006-09-14 10:19:34
|
Hello Ivan, I'm glad you are back. When do you expect a new release for sdljava? And btw, what do you think how many developers are using sdljava? Maybe you should think about making the project more public (using sourceforge newnews, other open source sites) to gain more contributors. Best Regards, Patric The following message was sent by "Ivan Z. Ganza" <iva...@ya...> on Wed, 13 Sep 2006 20:19:23 -0400. > Greetings, > > Sorry for the delay! I finally got off my but and got everything > working on my system so I can develop again. Everything is 64 bit for > > now though as I didn't get a 32 chroot working yet, but alas, that will > > have to wait for another time. > > I have applied the fix below to HEAD. > > Cheers, > -Ivan/ > > Guillaume Legris wrote: > > >Hi, > > > >First thanks for SDLJava. It's a great library ! > > > >There is a bug in the file SDLVideo.i (revision 1.32 from CVS HEAD) inside > > >the method SWIG_SetPixelData32(SDL_Surface *surface, int data[]) : > > > > Uint32 * pixelData = (Uint32*)&data; > > > >has to be replaced by: > > > > Uint32 * pixelData = (Uint32*)data; > > > >(same thing for SWIG_GetPixelData32 method I guess...But not tested) > > > >I need this method because I have to draw an ARGB int array in a SDL > >surface. > > > >At First, I tried createRGBSurfaceFrom(int pixels[], ...). But JNI code > > >seems not working (JVM crash) > >I also tried SDLSurface.getPixelData() which returns a direct byte buffer > . > >It works fine on x86 Sun JVM but not (JVM crashed) with Jamvm + Classpath > > >0.92 on ARM which is my target. > > > >A little suggestion: I think that createRGBSurfaceFrom could be easily > > >implemented in Java only with help of createRGBSurface() and getPixelData() > > >(or SWIG_SetPixelData32) methods. > > > >Regards, > >Guillaume Legris > > > > > > > >------------------------------------------------------------------------- > >Using Tomcat but need to do more? Need to support web services, security? > >Get stuff done quickly with pre-integrated technology to make your job > easier > >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >_______________________________________________ > >sdljava-users mailing list > >sdl...@li... > >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users > > |
From: Ivan Z. G. <iva...@ya...> - 2006-09-14 00:19:28
|
Greetings, Sorry for the delay! I finally got off my but and got everything working on my system so I can develop again. Everything is 64 bit for now though as I didn't get a 32 chroot working yet, but alas, that will have to wait for another time. I have applied the fix below to HEAD. Cheers, -Ivan/ Guillaume Legris wrote: >Hi, > >First thanks for SDLJava. It's a great library ! > >There is a bug in the file SDLVideo.i (revision 1.32 from CVS HEAD) inside >the method SWIG_SetPixelData32(SDL_Surface *surface, int data[]) : > > Uint32 * pixelData = (Uint32*)&data; > >has to be replaced by: > > Uint32 * pixelData = (Uint32*)data; > >(same thing for SWIG_GetPixelData32 method I guess...But not tested) > >I need this method because I have to draw an ARGB int array in a SDL >surface. > >At First, I tried createRGBSurfaceFrom(int pixels[], ...). But JNI code >seems not working (JVM crash) >I also tried SDLSurface.getPixelData() which returns a direct byte buffer . >It works fine on x86 Sun JVM but not (JVM crashed) with Jamvm + Classpath >0.92 on ARM which is my target. > >A little suggestion: I think that createRGBSurfaceFrom could be easily >implemented in Java only with help of createRGBSurface() and getPixelData() >(or SWIG_SetPixelData32) methods. > >Regards, >Guillaume Legris > > > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > |
From: Ivan Z. G. <iva...@ya...> - 2006-09-13 23:10:52
|
Greetings Helge, Currently there isn't anything like this implemented -- I'm not sure if reading audio is really in the scope of what SDL was intended for. SDL_MIxer doesn't seem to have any usefull method for reading from it. I don't see much of use with SDL_Sound either. If there is a method in the C API that will do what you need then it could be added to sdljava. -Ivan/ Helge Fredriksen wrote: > Hello, > > Is there anyway I can either read the byte[] array directly from the > microphone using InputStreams > from this API? I need this to be able to transmit it via UDP packages. > Or do there exists any other > way to grab a sound frame in the form of byte[] without loosing too > much time. > > How much delay should I expect from such a process if it's possible? > > Best regards, > Helge Fredriksen > >------------------------------------------------------------------------ > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >------------------------------------------------------------------------ > >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > |
From: Helge F. <hel...@gm...> - 2006-09-12 11:57:08
|
Hello, Is there anyway I can either read the byte[] array directly from the microphone using InputStreams from this API? I need this to be able to transmit it via UDP packages. Or do there exists any other way to grab a sound frame in the form of byte[] without loosing too much time. How much delay should I expect from such a process if it's possible? Best regards, Helge Fredriksen |
From: Ivan Z. G. <iva...@ya...> - 2006-08-25 03:24:28
|
Greetings, Thanks for the info, I will make the fix -- and think about what you've suggested. Cheers, -Ivan/ Guillaume Legris wrote: >Hi, > >First thanks for SDLJava. It's a great library ! > >There is a bug in the file SDLVideo.i (revision 1.32 from CVS HEAD) inside >the method SWIG_SetPixelData32(SDL_Surface *surface, int data[]) : > > Uint32 * pixelData = (Uint32*)&data; > >has to be replaced by: > > Uint32 * pixelData = (Uint32*)data; > >(same thing for SWIG_GetPixelData32 method I guess...But not tested) > >I need this method because I have to draw an ARGB int array in a SDL >surface. > >At First, I tried createRGBSurfaceFrom(int pixels[], ...). But JNI code >seems not working (JVM crash) >I also tried SDLSurface.getPixelData() which returns a direct byte buffer . >It works fine on x86 Sun JVM but not (JVM crashed) with Jamvm + Classpath >0.92 on ARM which is my target. > >A little suggestion: I think that createRGBSurfaceFrom could be easily >implemented in Java only with help of createRGBSurface() and getPixelData() >(or SWIG_SetPixelData32) methods. > >Regards, >Guillaume Legris > > > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > |
From: Guillaume L. <le...@ho...> - 2006-08-23 20:46:10
|
Hi, First thanks for SDLJava. It's a great library ! There is a bug in the file SDLVideo.i (revision 1.32 from CVS HEAD) inside the method SWIG_SetPixelData32(SDL_Surface *surface, int data[]) : Uint32 * pixelData = (Uint32*)&data; has to be replaced by: Uint32 * pixelData = (Uint32*)data; (same thing for SWIG_GetPixelData32 method I guess...But not tested) I need this method because I have to draw an ARGB int array in a SDL surface. At First, I tried createRGBSurfaceFrom(int pixels[], ...). But JNI code seems not working (JVM crash) I also tried SDLSurface.getPixelData() which returns a direct byte buffer . It works fine on x86 Sun JVM but not (JVM crashed) with Jamvm + Classpath 0.92 on ARM which is my target. A little suggestion: I think that createRGBSurfaceFrom could be easily implemented in Java only with help of createRGBSurface() and getPixelData() (or SWIG_SetPixelData32) methods. Regards, Guillaume Legris |
From: Simon G. <sim...@al...> - 2006-08-14 12:05:53
|
Many thanks Ivan. On 14 Aug 2006, at 14:02, Ivan Z. Ganza wrote: > Hi Simon, > > Glad you find it usefull! I'll link to your project from the sdljava > website. > > Cheers, > -Ivan/ > > Simon Gillespie wrote: > >> Hi all, >> >> I've written a very easy to understand non tile based Isometric >> engine which is using your sdljava library. It was ported from a >> python and then csharp version. You can check out the code on the >> project website: http://www.webalice.it/simon.gillespie/Isotope.html >> >> Its a simple ideal system for putting together a Knightlore or >> Cadaver on a rainy day. There a good user guide and plenty of >> comments (user guide is python centered at the moment, but if there >> is interested I'll do a java one). Theres a full working demo and if >> it doesnt go please send me your comments and I'll see what I can do >> but it works fine for me. >> >> Thanks for your work on the library. Very useful. >> >> Simon. >> >> --------------------------------------------------------------------- >> ---- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> sdljava-users mailing list >> sdl...@li... >> https://lists.sourceforge.net/lists/listinfo/sdljava-users >> >> > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users |
From: Ivan Z. G. <iva...@ya...> - 2006-08-14 12:02:28
|
Hi Simon, Glad you find it usefull! I'll link to your project from the sdljava website. Cheers, -Ivan/ Simon Gillespie wrote: >Hi all, > >I've written a very easy to understand non tile based Isometric >engine which is using your sdljava library. It was ported from a >python and then csharp version. You can check out the code on the >project website: http://www.webalice.it/simon.gillespie/Isotope.html > >Its a simple ideal system for putting together a Knightlore or >Cadaver on a rainy day. There a good user guide and plenty of >comments (user guide is python centered at the moment, but if there >is interested I'll do a java one). Theres a full working demo and if >it doesnt go please send me your comments and I'll see what I can do >but it works fine for me. > >Thanks for your work on the library. Very useful. > >Simon. > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > |
From: Simon G. <sim...@al...> - 2006-08-10 17:11:11
|
Hi all, I've written a very easy to understand non tile based Isometric engine which is using your sdljava library. It was ported from a python and then csharp version. You can check out the code on the project website: http://www.webalice.it/simon.gillespie/Isotope.html Its a simple ideal system for putting together a Knightlore or Cadaver on a rainy day. There a good user guide and plenty of comments (user guide is python centered at the moment, but if there is interested I'll do a java one). Theres a full working demo and if it doesnt go please send me your comments and I'll see what I can do but it works fine for me. Thanks for your work on the library. Very useful. Simon. |
From: <fu...@gm...> - 2006-07-25 13:39:10
|
On 7/25/06, Ivan Z. Ganza <iva...@ya...> wrote: > Yes its normal. If you want to have a color in the background use the > fillRect(...) methods on the SDLSurface. I've tried this: http://pix.aaron-mueller.de/xgl_sdljava.png http://pix.aaron-mueller.de/xgl_c.png This is a Bug, right? Is there a workaround or something to fill the background without transparency? > For sample code have a look at the exampes included with SDLJava Same Problem here ;( Aaron |
From: Ivan Z. G. <iva...@ya...> - 2006-07-25 12:16:10
|
Hi Aaron, Yes its normal. If you want to have a color in the background use the=20 fillRect(...) methods on the SDLSurface. For sample code have a look at the exampes included with SDLJava Cheers, -Ivan/ Aaron M=FCller wrote: >Hello everybody! > >I use Ubuntu with installed XGL/Compiz and all the example-tests have >a transparent background, and also my own small tests. Is this normal? >And what can i do to fill the Background with a color? > >I also search for a small sample code to understand sdljava. > >Thanks, >Aaron > > =20 > |
From: <fu...@gm...> - 2006-07-21 23:11:19
|
Hello everybody! I use Ubuntu with installed XGL/Compiz and all the example-tests have a transparent background, and also my own small tests. Is this normal? And what can i do to fill the Background with a color? I also search for a small sample code to understand sdljava. Thanks, Aaron -- ICQ: 49468869 WEB: http://www.aaron-mueller.de |
From: Steve J. <jo...@gm...> - 2006-07-11 15:17:07
|
I've got it to work, sort of, then I gave up. It'll only work in fullscreen mode and doesn't seem to get any input events. My project does run though, and other than the ungraceful exiting it looks normal. This all with the latest Tiger and an intel iMac. If I have some time I'll try to get more info. Steve On 7/10/06, sdl...@li... <sdl...@li...> wrote: > Send sdljava-users mailing list submissions to > sdl...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/sdljava-users > or, via email, send a message with subject or body 'help' to > sdl...@li... > > You can reach the person managing the list at > sdl...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of sdljava-users digest..." > > > Today's Topics: > > 1. Re: Problems compiling in Mac OSX (Ivan Z. Ganza) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 10 Jul 2006 08:17:55 -0400 > From: "Ivan Z. Ganza" <iva...@ya...> > Subject: Re: [sdljava-users] Problems compiling in Mac OSX > To: Discussion for users of sdljava > <sdl...@li...> > Message-ID: <44B...@ya...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Greetings Nuno, > > SDLJava has not yet officially worked on OSX. However regardless I > think it should work but I don't have an OSX machine to verify this myself. > > The error you are getting, java.lang.UnsatisfiedLinkError, is because > the virtual machine cannot find the library. You need to pass the > location of the SDLJava shared library as a -D switch. > > $ java -Djava.library.path=<SOME_PATH> > > Give that a shot and let me know if it works! > > BTW: Did you ever resolve your earlier problems?? > > -Ivan/ > > Nuno Santos wrote: > > >Hi, > > > >I'm trying to install sdljava in OSX, so i'm trying to compile from > >the scratch. > > > >When doing that i have the following error: > > > >MACKIE:~/Desktop/sdljava-0.9.1/src/sdljava/native lpx$ make > >gcc -o libsdljava.so SDLAudio_wrap.o SDLEvent_wrap.o SDLMain_wrap.o > >SDLVideo_wrap.o SDLJoystick_wrap.o SDLCdrom_wrap.o -lSDL > >/usr/bin/ld: Undefined symbols: > >_main > >collect2: ld returned 1 exit status > >make: *** [libsdljava.so] Error 1 > > > >I also had to take an option -shared because the compiler didnt have it. > > > >I have libsdl installed and the sdl libraries are in the place i > >think they should (it was the gentoo emerge to do it) > > > >--- /usr/lib/ > > >>> /usr/lib/libSDL-1.2.0.11.0.dylib > > >>> /usr/lib/libSDL-1.2.0.dylib -> libSDL-1.2.0.11.0.dylib > > >>> /usr/lib/libSDL.a > > >>> /usr/lib/libSDL.dylib -> libSDL-1.2.0.11.0.dylib > > >>> /usr/lib/libSDL.la > > >>> /usr/lib/libSDLmain.a > > > >I tried to pass a manual path to linker but or i dont know how to do > >it or it doesnt work > > > >MACKIE:~/Desktop/sdljava-0.9.1/src/sdljava/native lpx$ make > >gcc -o libsdljava.so SDLAudio_wrap.o SDLEvent_wrap.o SDLMain_wrap.o > >SDLVideo_wrap.o SDLJoystick_wrap.o SDLCdrom_wrap.o -l /usr/lib/SDL > >/usr/bin/ld: can't locate file for: -l/usr/lib/SDL > >collect2: ld returned 1 exit status > >make: *** [libsdljava.so] Error 1 > > > >The first thing i tried was to run directly and of course i had the > >following result, but i dont know what the message really means, can > >you tell me what it really says? > > > >MACKIE:~/Desktop/IAE/Reactiva lpx$ ./corre > >Native code library failed to load. > >java.lang.UnsatisfiedLinkError: no sdljava in java.library.path > >MACKIE:~/Desktop/IAE/Reactiva lpx$ > > > > > >Best regards, > > > >Nuno Santos > > > > > > > >Using Tomcat but need to do more? Need to support web services, security? > >Get stuff done quickly with pre-integrated technology to make your job easier > >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >_______________________________________________ > >sdljava-users mailing list > >sdl...@li... > >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > > > > > > > > ------------------------------ > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > ------------------------------ > > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users > > > End of sdljava-users Digest, Vol 2, Issue 2 > ******************************************* > |
From: Ivan Z. G. <iva...@ya...> - 2006-07-11 12:14:56
|
Greetings Nuno, Everything will need to be compiled from scratch on OSX. I don't have access to an OSX machine so I can't help out there. If someone does manage to get it working please send me buid scripts, etc... so I could add it to CVS for future users. -Ivan/ Nuno Santos wrote: >Hi, > >I did that. But the binaries i have are compiled for linux. > >I need them compiled for osx (i think) > >What i described was my problems in compiling sdljava for osx > >MACKIE:~/Desktop/sdljava-0.9.1/src/sdljava/native lpx$ make > > >>gcc -o libsdljava.so SDLAudio_wrap.o SDLEvent_wrap.o SDLMain_wrap.o >>SDLVideo_wrap.o SDLJoystick_wrap.o SDLCdrom_wrap.o -lSDL >>/usr/bin/ld: Undefined symbols: >>_main >>collect2: ld returned 1 exit status >>make: *** [libsdljava.so] Error 1 >> >>I also had to take an option -shared because the compiler didnt have it. >> >>I have libsdl installed and the sdl libraries are in the place i >>think they should (it was the gentoo emerge to do it) >> >>--- /usr/lib/ >> >> > > > >>>>>>>>/usr/lib/libSDL-1.2.0.11.0.dylib >>>>>>>>/usr/lib/libSDL-1.2.0.dylib -> libSDL-1.2.0.11.0.dylib >>>>>>>>/usr/lib/libSDL.a >>>>>>>>/usr/lib/libSDL.dylib -> libSDL-1.2.0.11.0.dylib >>>>>>>>/usr/lib/libSDL.la >>>>>>>>/usr/lib/libSDLmain.a >>>>>>>> >>>>>>>> >>>> >>>> >>>> >> >I tried to pass a manual path to linker but or i dont know how to do >> >> > >it or it doesnt work > > >MACKIE:~/Desktop/sdljava-0.9.1/src/sdljava/native lpx$ make >gcc -o >libsdljava.so SDLAudio_wrap.o SDLEvent_wrap.o SDLMain_wrap.o > >SDLVideo_wrap.o SDLJoystick_wrap.o SDLCdrom_wrap.o -l /usr/lib/SDL > >/usr/bin/ld: can't locate file for: -l/usr/lib/SDL >collect2: ld >returned 1 exit status >make: *** [libsdljava.so] Error 1 > >About the other problems. Yes, in part. I finally realized that maybe >some of my problems where in handling SDL. > >I think that part of my problems are derived to Directfb, because it >sometimes hangs when getting resources like keyboard and mouse. > >Is there any other way of putting SDL working without using directfb? > >Many thx > >Nuno Santos > > >Greetings Nuno, > >SDLJava has not yet officially worked on OSX. However regardless I >think it should work but I don't have an OSX machine to verify this myself. > >The error you are getting, java.lang.UnsatisfiedLinkError, is because >the virtual machine cannot find the library. You need to pass the >location of the SDLJava shared library as a -D switch. > >$ java -Djava.library.path=<SOME_PATH> > >Give that a shot and let me know if it works! > >BTW: Did you ever resolve your earlier problems?? > > > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > |
From: Nuno S. <dev...@im...> - 2006-07-10 20:08:24
|
Hi, I did that. But the binaries i have are compiled for linux. I need them compiled for osx (i think) What i described was my problems in compiling sdljava for osx MACKIE:~/Desktop/sdljava-0.9.1/src/sdljava/native lpx$ make >gcc -o libsdljava.so SDLAudio_wrap.o SDLEvent_wrap.o SDLMain_wrap.o >SDLVideo_wrap.o SDLJoystick_wrap.o SDLCdrom_wrap.o -lSDL >/usr/bin/ld: Undefined symbols: >_main >collect2: ld returned 1 exit status >make: *** [libsdljava.so] Error 1 > >I also had to take an option -shared because the compiler didnt have it. > >I have libsdl installed and the sdl libraries are in the place i >think they should (it was the gentoo emerge to do it) > >--- /usr/lib/ >>> > >>> /usr/lib/libSDL-1.2.0.11.0.dylib >>> > >>> /usr/lib/libSDL-1.2.0.dylib -> libSDL-1.2.0.11.0.dylib >>> > >>> /usr/lib/libSDL.a >>> > >>> /usr/lib/libSDL.dylib -> libSDL-1.2.0.11.0.dylib >>> > >>> /usr/lib/libSDL.la >>> > >>> /usr/lib/libSDLmain.a >>> > >I tried to pass a manual path to linker but or i dont know how to do >it or it doesnt work > >MACKIE:~/Desktop/sdljava-0.9.1/src/sdljava/native lpx$ make >gcc -o libsdljava.so SDLAudio_wrap.o SDLEvent_wrap.o SDLMain_wrap.o >SDLVideo_wrap.o SDLJoystick_wrap.o SDLCdrom_wrap.o -l /usr/lib/SDL >/usr/bin/ld: can't locate file for: -l/usr/lib/SDL >collect2: ld returned 1 exit status >make: *** [libsdljava.so] Error 1 About the other problems. Yes, in part. I finally realized that maybe some of my problems where in handling SDL. I think that part of my problems are derived to Directfb, because it sometimes hangs when getting resources like keyboard and mouse. Is there any other way of putting SDL working without using directfb? Many thx Nuno Santos Greetings Nuno, SDLJava has not yet officially worked on OSX. However regardless I think it should work but I don't have an OSX machine to verify this myself. The error you are getting, java.lang.UnsatisfiedLinkError, is because the virtual machine cannot find the library. You need to pass the location of the SDLJava shared library as a -D switch. $ java -Djava.library.path=<SOME_PATH> Give that a shot and let me know if it works! BTW: Did you ever resolve your earlier problems?? |
From: Ivan Z. G. <iva...@ya...> - 2006-07-10 12:18:26
|
Greetings Nuno, SDLJava has not yet officially worked on OSX. However regardless I think it should work but I don't have an OSX machine to verify this myself. The error you are getting, java.lang.UnsatisfiedLinkError, is because the virtual machine cannot find the library. You need to pass the location of the SDLJava shared library as a -D switch. $ java -Djava.library.path=<SOME_PATH> Give that a shot and let me know if it works! BTW: Did you ever resolve your earlier problems?? -Ivan/ Nuno Santos wrote: >Hi, > >I'm trying to install sdljava in OSX, so i'm trying to compile from >the scratch. > >When doing that i have the following error: > >MACKIE:~/Desktop/sdljava-0.9.1/src/sdljava/native lpx$ make >gcc -o libsdljava.so SDLAudio_wrap.o SDLEvent_wrap.o SDLMain_wrap.o >SDLVideo_wrap.o SDLJoystick_wrap.o SDLCdrom_wrap.o -lSDL >/usr/bin/ld: Undefined symbols: >_main >collect2: ld returned 1 exit status >make: *** [libsdljava.so] Error 1 > >I also had to take an option -shared because the compiler didnt have it. > >I have libsdl installed and the sdl libraries are in the place i >think they should (it was the gentoo emerge to do it) > >--- /usr/lib/ > >>> /usr/lib/libSDL-1.2.0.11.0.dylib > >>> /usr/lib/libSDL-1.2.0.dylib -> libSDL-1.2.0.11.0.dylib > >>> /usr/lib/libSDL.a > >>> /usr/lib/libSDL.dylib -> libSDL-1.2.0.11.0.dylib > >>> /usr/lib/libSDL.la > >>> /usr/lib/libSDLmain.a > >I tried to pass a manual path to linker but or i dont know how to do >it or it doesnt work > >MACKIE:~/Desktop/sdljava-0.9.1/src/sdljava/native lpx$ make >gcc -o libsdljava.so SDLAudio_wrap.o SDLEvent_wrap.o SDLMain_wrap.o >SDLVideo_wrap.o SDLJoystick_wrap.o SDLCdrom_wrap.o -l /usr/lib/SDL >/usr/bin/ld: can't locate file for: -l/usr/lib/SDL >collect2: ld returned 1 exit status >make: *** [libsdljava.so] Error 1 > >The first thing i tried was to run directly and of course i had the >following result, but i dont know what the message really means, can >you tell me what it really says? > >MACKIE:~/Desktop/IAE/Reactiva lpx$ ./corre >Native code library failed to load. >java.lang.UnsatisfiedLinkError: no sdljava in java.library.path >MACKIE:~/Desktop/IAE/Reactiva lpx$ > > >Best regards, > >Nuno Santos > > > >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > |
From: Nuno S. <dev...@im...> - 2006-07-08 17:42:54
|
Hi, I'm trying to install sdljava in OSX, so i'm trying to compile from the scratch. When doing that i have the following error: MACKIE:~/Desktop/sdljava-0.9.1/src/sdljava/native lpx$ make gcc -o libsdljava.so SDLAudio_wrap.o SDLEvent_wrap.o SDLMain_wrap.o SDLVideo_wrap.o SDLJoystick_wrap.o SDLCdrom_wrap.o -lSDL /usr/bin/ld: Undefined symbols: _main collect2: ld returned 1 exit status make: *** [libsdljava.so] Error 1 I also had to take an option -shared because the compiler didnt have it. I have libsdl installed and the sdl libraries are in the place i think they should (it was the gentoo emerge to do it) --- /usr/lib/ >>> /usr/lib/libSDL-1.2.0.11.0.dylib >>> /usr/lib/libSDL-1.2.0.dylib -> libSDL-1.2.0.11.0.dylib >>> /usr/lib/libSDL.a >>> /usr/lib/libSDL.dylib -> libSDL-1.2.0.11.0.dylib >>> /usr/lib/libSDL.la >>> /usr/lib/libSDLmain.a I tried to pass a manual path to linker but or i dont know how to do it or it doesnt work MACKIE:~/Desktop/sdljava-0.9.1/src/sdljava/native lpx$ make gcc -o libsdljava.so SDLAudio_wrap.o SDLEvent_wrap.o SDLMain_wrap.o SDLVideo_wrap.o SDLJoystick_wrap.o SDLCdrom_wrap.o -l /usr/lib/SDL /usr/bin/ld: can't locate file for: -l/usr/lib/SDL collect2: ld returned 1 exit status make: *** [libsdljava.so] Error 1 The first thing i tried was to run directly and of course i had the following result, but i dont know what the message really means, can you tell me what it really says? MACKIE:~/Desktop/IAE/Reactiva lpx$ ./corre Native code library failed to load. java.lang.UnsatisfiedLinkError: no sdljava in java.library.path MACKIE:~/Desktop/IAE/Reactiva lpx$ Best regards, Nuno Santos |
From: Ivan Z. G. <iva...@ya...> - 2006-06-20 01:21:46
|
Really sorry this isn't working for you. Unfortunatly I don't have a system up yet where I can develop. I have not been able to compile SDL yet under my 32 bit chroot. Working on it but time is scarce. So I'm not able to test... I noticed in the output your using the framebuffer device. I never tested with this myself. It should work though if SDL supports it, but, I never did try. Searching on Google I found this, maybe it will help you: http://mail.directfb.org/pipermail/directfb-users/2005-April/000121.html When you display the image that has strange colors is this also on the FB device? Perhaps we have a problem there... -Ivan/ dev...@im... wrote: >Hi Ivan, > >I followed your guide line and writed a simple program in C to load a Image. > >In attach goes the program and the output. > >I think i'm having real problems here because it crashes before anything >is done. > >Can you see if this error is known to you? > >Many thx, > >Nuno > > >>Send sdljava-users mailing list submissions to >> sdl...@li... >> >>To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.sourceforge.net/lists/listinfo/sdljava-users >>or, via email, send a message with subject or body 'help' to >> sdl...@li... >> >>You can reach the person managing the list at >> sdl...@li... >> >>When replying, please edit your Subject line so it is more specific >>than "Re: Contents of sdljava-users digest..." >> >> >>Today's Topics: >> >> 1. Re: SDLJava (Ivan Z. Ganza) >> >> >>---------------------------------------------------------------------- >> >>Message: 1 >>Date: Tue, 13 Jun 2006 21:59:54 -0400 >>From: "Ivan Z. Ganza" <iva...@ya...> >>Subject: Re: [sdljava-users] SDLJava >>To: Discussion for users of sdljava >> <sdl...@li...> >>Message-ID: <448...@ya...> >>Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >>Hi Nuno, >> >>Sorry that your having trouble. I don't currently have a dev system >>setup as I just built a 64 AMD box so I will do my best. >> >>First we need to narrow down where the problem is. If you could try to >>load one of the picture using a straight C program that utilizes >>SDL_image we could see how it looks there. If it looks funny in that >>case we know its something that happening with SDL. If not the problem >>must be somewhere between sdljava and the SDL layer. >> >>During my testing I never found that I had any problems when viewing the >>images... >> >>Regarding OpenGL the only way it can be used is if you ask SDL to >>initialize opengl in the setVideoMode(...) call. This will create a new >>GUI window (or fullscreen) -- so you do have to be within a graphical >>env to have opengl. >> >>-Ivan/ >> >>Nuno Santos wrote: >> >> >> >>>Hi Ivan, >>> >>>I really need you help to put the images being displayed with color! >>> >>>I tought they appeared right in your initial examples but they don't >>>too! >>> >>>Wicked!!! >>> >>>I've tried to make them files and read them then! They appear with >>>strange colors as well. >>> >>>And about the OpenGl... Do i need to be within a graphical enviorment >>>to have opengl? >>> >>>I would like to have opengl in the console with framebuffer... It's >>>that possible? >>> >>>If so... can you tell me a opengl sdl java aplication to test it out? >>>or something that can give me sure >>> >>>I really need you help to sort this image color thing >>> >>>I'm working on a project based on this tecnhologie and i have to >>>present it in public and i'd love make a good image >>> >>>Many thx, >>> >>>Nuno >>> >>> >>>_______________________________________________ >>>sdljava-users mailing list >>>sdl...@li... >>>https://lists.sourceforge.net/lists/listinfo/sdljava-users >>> >>> >>> >>> >> >> >>------------------------------ >> >> >> >>------------------------------ >> >>_______________________________________________ >>sdljava-users mailing list >>sdl...@li... >>https://lists.sourceforge.net/lists/listinfo/sdljava-users >> >> >>End of sdljava-users Digest, Vol 1, Issue 161 >>********************************************* >> >> >> >>------------------------------------------------------------------------ >> >>#include <stdlib.h> >>#include "/usr/include/SDL/SDL.h" >> >>SDL_Surface *message = NULL; >>SDL_Surface *background = NULL; >>SDL_Surface *screen = NULL; >> >>SDL_Surface *load_image(char* filename) { >> SDL_Surface* loadedImage = NULL; >> SDL_Surface* optimizedImage = NULL; >> >> loadedImage = SDL_LoadBMP(filename); >> >> if (loadedImage != NULL) { >> optimizedImage = SDL_DisplayFormat(loadedImage); >> SDL_FreeSurface(loadedImage); >> } >> return optimizedImage; >>} >> >>void apply_surface(int x, int y, SDL_Surface* source, SDL_Surface* destination) { >> SDL_Rect offset; >> offset.x = x; >> offset.y = y; >> SDL_BlitSurface(source,NULL,destination,&offset); >> >>} >> >> >>main (int argc, char *argv[]) { >> if (SDL_Init(SDL_INIT_EVERYTHING)<0) { >> fprintf(stderr, "Unable to init SDL: %s\n",SDL_GetError()); >> exit(1); >> } >> screen = SDL_SetVideoMode(800,600,24,SDL_SWSURFACE); >> if (screen==NULL) { >> return 1; >> } >> >> background = load_image("icon.bmp"); >> apply_surface(0,0,background,screen); >> >> if (SDL_Flip(screen)==-1) { >> return 1; >> } >> SDL_Delay(5000); >> >> SDL_FreeSurface(background); >> SDL_Quit(); >> return 0; >> >> atexit(SDL_Quit); >>} >> >>------------------------------------------------------------------------ >> >>_______________________________________________ >>sdljava-users mailing list >>sdl...@li... >>https://lists.sourceforge.net/lists/listinfo/sdljava-users >> >> |
From: <dev...@im...> - 2006-06-16 11:25:34
|
Hi Ivan, I followed your guide line and writed a simple program in C to load a Ima= ge. In attach goes the program and the output. I think i'm having real problems here because it crashes before anything is done. Can you see if this error is known to you? Many thx, Nuno > Send sdljava-users mailing list submissions to > sdl...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/sdljava-users > or, via email, send a message with subject or body 'help' to > sdl...@li... > > You can reach the person managing the list at > sdl...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of sdljava-users digest..." > > > Today's Topics: > > 1. Re: SDLJava (Ivan Z. Ganza) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 13 Jun 2006 21:59:54 -0400 > From: "Ivan Z. Ganza" <iva...@ya...> > Subject: Re: [sdljava-users] SDLJava > To: Discussion for users of sdljava > <sdl...@li...> > Message-ID: <448...@ya...> > Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed > > Hi Nuno, > > Sorry that your having trouble. I don't currently have a dev system > setup as I just built a 64 AMD box so I will do my best. > > First we need to narrow down where the problem is. If you could try to > load one of the picture using a straight C program that utilizes > SDL_image we could see how it looks there. If it looks funny in that > case we know its something that happening with SDL. If not the problem > must be somewhere between sdljava and the SDL layer. > > During my testing I never found that I had any problems when viewing th= e > images... > > Regarding OpenGL the only way it can be used is if you ask SDL to > initialize opengl in the setVideoMode(...) call. This will create a ne= w > GUI window (or fullscreen) -- so you do have to be within a graphical > env to have opengl. > > -Ivan/ > > Nuno Santos wrote: > >>Hi Ivan, >> >>I really need you help to put the images being displayed with color! >> >>I tought they appeared right in your initial examples but they don't >>too! >> >>Wicked!!! >> >>I've tried to make them files and read them then! They appear with >>strange colors as well. >> >>And about the OpenGl... Do i need to be within a graphical enviorment >>to have opengl? >> >>I would like to have opengl in the console with framebuffer... It's >>that possible? >> >>If so... can you tell me a opengl sdl java aplication to test it out? >>or something that can give me sure >> >>I really need you help to sort this image color thing >> >>I'm working on a project based on this tecnhologie and i have to >>present it in public and i'd love make a good image >> >>Many thx, >> >>Nuno >> >> >>_______________________________________________ >>sdljava-users mailing list >>sdl...@li... >>https://lists.sourceforge.net/lists/listinfo/sdljava-users >> >> > > > > > ------------------------------ > > > > ------------------------------ > > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users > > > End of sdljava-users Digest, Vol 1, Issue 161 > ********************************************* > |
From: Ivan Z. G. <iva...@ya...> - 2006-06-14 02:00:00
|
Hi Nuno, Sorry that your having trouble. I don't currently have a dev system setup as I just built a 64 AMD box so I will do my best. First we need to narrow down where the problem is. If you could try to load one of the picture using a straight C program that utilizes SDL_image we could see how it looks there. If it looks funny in that case we know its something that happening with SDL. If not the problem must be somewhere between sdljava and the SDL layer. During my testing I never found that I had any problems when viewing the images... Regarding OpenGL the only way it can be used is if you ask SDL to initialize opengl in the setVideoMode(...) call. This will create a new GUI window (or fullscreen) -- so you do have to be within a graphical env to have opengl. -Ivan/ Nuno Santos wrote: >Hi Ivan, > >I really need you help to put the images being displayed with color! > >I tought they appeared right in your initial examples but they don't >too! > >Wicked!!! > >I've tried to make them files and read them then! They appear with >strange colors as well. > >And about the OpenGl... Do i need to be within a graphical enviorment >to have opengl? > >I would like to have opengl in the console with framebuffer... It's >that possible? > >If so... can you tell me a opengl sdl java aplication to test it out? >or something that can give me sure > >I really need you help to sort this image color thing > >I'm working on a project based on this tecnhologie and i have to >present it in public and i'd love make a good image > >Many thx, > >Nuno > > >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > |
From: Nuno S. <dev...@im...> - 2006-06-12 21:41:28
|
Hi Ivan, I really need you help to put the images being displayed with color! I tought they appeared right in your initial examples but they don't too! Wicked!!! I've tried to make them files and read them then! They appear with strange colors as well. And about the OpenGl... Do i need to be within a graphical enviorment to have opengl? I would like to have opengl in the console with framebuffer... It's that possible? If so... can you tell me a opengl sdl java aplication to test it out? or something that can give me sure I really need you help to sort this image color thing I'm working on a project based on this tecnhologie and i have to present it in public and i'd love make a good image Many thx, Nuno |
From: Nuno S. <dev...@im...> - 2006-06-06 01:33:27
|
Hi, About the locked devices even with event it hangs the devices. Sometimes i dont even need to run the program once. It happens in the first time. About the images... i managed to create the file to the filesystem first and then show it. It keeps the strange colors. How do i make disappear the mouse arrow? Many thx Nuno This is my code, just for you to see the initialization and event handling as well as the image loading (marked in red): import java.awt.*; import java.awt.image.*; import java.io.*; import javax.imageio.*; import com.sun.image.codec.jpeg.JPEGImageDecoder; import com.sun.image.codec.jpeg.JPEGCodec; import java.io.ByteArrayInputStream; import java.net.*; import java.sql.*; import java.util.Timer; import java.util.TimerTask; public class Reactiva { int muppie=1; Timer timer; boolean working; ResultSet result; Database bd; Pacman p; SDLSurface image; static SDLSurface fb; public Reactiva() throws SDLException { SDLMain.init(SDLMain.SDL_INIT_VIDEO); fb = SDLVideo.setVideoMode(800, 600, 32, (long)SDLVideo.SDL_HWSURFACE|SDLVideo.SDL_DOUBLEBUF); // fb = SDLVideo.setVideoMode(800,600,24,(long)SDLVideo.SDL_HWSURFACE| // SDLVideo.SDL_FULLSCREEN| // SDLVideo.SDL_DOUBLEBUF); } public void start() { bd = new Database(); p = new Pacman(); result = bd.runST("select NR, TITULO, CONTENT, DURACAO from ANUNCIO"); timer = new Timer(); timer.schedule(new RemindTask(),0,5*1000); } public void stop() { SDLMain.quit(); } public void changeImage(ResultSet result) throws SDLException { int id=0,duration=0; String title = ""; try { System.out.println("Loading image..."); try { duration = result.getInt("DURACAO"); id = result.getInt("NR"); title = result.getString("TITULO"); System.out.println("Id: " + id + " Title: " + title + " Announce duration: " + duration + " seconds"); Blob blob = result.getBlob("CONTENT"); long blobLength = blob.length(); int pos = 1; int len = (int) blob.length(); byte[] bytes = blob.getBytes(pos, len); ByteArrayInputStream bis = new ByteArrayInputStream (bytes,0,bytes.length); JPEGImageDecoder dec = JPEGCodec.createJPEGDecoder(bis); try { BufferedImage bim = dec.decodeAsBufferedImage(); ImageIO.write(bim, "jpg", new File("actualimage.jpg")); } catch (Exception e) { } System.out.println("Image loaded"); image = SDLImage.load("actualimage.jpg"); image.setAlpha(0,255); fb.fillRect(0x000000); image.blitSurface(null,fb,null); fb.updateRect(); } catch (SDLException e) { System.out.println("Error: Couln't load image"); System.out.println(e.getMessage()); } } catch (Exception e) { e.printStackTrace(); } } class RemindTask extends TimerTask { int duration=0,number=0; ResultSet auxres; public void run() { try { Sensor aux = null; Answer ans = null; ans = p.getAnswer(); aux = p.getSensor(); if (ans!=null) { System.out.println("Request received with value " + ans.getAddid()); auxres = bd.runST("SELECT * FROM ANUNCIO WHERE NR=" + ans.getAddid()); if (auxres.next()) { try { duration = auxres.getInt("DURACAO"); changeImage(auxres); } catch (SDLException e) { System.out.println("Error: Couln't load image"); System.out.println(e.getMessage()); } } else System.out.println("There is no add with the id " + ans.getAddid()); } else { if (aux!=null) { System.out.println("Type of sensor: " + aux.getType()); System.out.println("Value: " + aux.getValue()); System.out.println("Sensor found... sending request with value " + aux.getValue()); File out = new File("/var/blackboard/PEDIDO-" + muppie + "-" + aux.getValue()); try { if (!out.exists()) { FileWriter msg = new FileWriter(out); msg.close(); } } catch (IOException e) { } } else if (result.next()) { try { duration = result.getInt("DURACAO"); changeImage(result); } catch (SDLException e) { System.out.println("Error: Couln't load image"); System.out.println(e.getMessage()); } } else result.beforeFirst(); } } catch (SQLException e) { System.out.println("Error: SQL error"); System.out.println(e); } timer.cancel(); timer = new Timer(); timer.schedule(new RemindTask(),duration*1000,1); } } public static void main(String[] args) { Reactiva r = null; try { r = new Reactiva(); if (r!=null) { r.start(); } while(true) { SDLEvent e = SDLEvent.waitEvent(); if (e instanceof SDLKeyboardEvent) { SDLKeyboardEvent keyboardEvent = (SDLKeyboardEvent) e; if (keyboardEvent.getSym() == SDLKey.SDLK_ESCAPE) { r.stop(); } } } } catch (SDLException e) { e.printStackTrace(); } finally { if (r != null) r.stop(); } } |
From: Ivan Z. G. <iva...@ya...> - 2006-06-04 07:25:46
|
Hi Nuno, Can you paste in some code? How are you calling setVideoMode()? Try to get an pure SDL OpenGL application working first. It seems like OpenGL cannot be found or initialized properly on your system for some reason... -Ivan/ Nuno Santos wrote: >Hi, > >Everytime i try to initialize something with opengl content it gives me >an error: > >sdljava.SDLException: OpenGL not available > at sdljava.video.SDLVideo.setVideoMode(SDLVideo.java:334) > > >I have glew installed and i dont know what to install more to get this >working > >Can anybody give me a tip on this? > >Thx! > >Nuno > > >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > |
From: Nuno S. <dev...@im...> - 2006-06-03 14:01:45
|
Hi, Everytime i try to initialize something with opengl content it gives me an error: sdljava.SDLException: OpenGL not available at sdljava.video.SDLVideo.setVideoMode(SDLVideo.java:334) I have glew installed and i dont know what to install more to get this working Can anybody give me a tip on this? Thx! Nuno |
From: Ivan Z. G. <iva...@ya...> - 2006-06-01 11:59:04
|
Hi Nuno, Looks like SQL_Quit is not getting called. Rather then killing the program in that way its better to look for a specific event (say ESC) and shutdown on that event -- doing cleanup along the way. Let me know if that works... -Ivan/ Nuno Santos wrote: > Hi, > > I'm having a lot of time wasted because of initialization errors. > > When i turn on my machine everything runs fine! > > After running 1 time the program using the sdl technology and then > break it with ctr-C to correct bugs that i found in my program, when > i compile and run it again i have initialization errors like the > following: > > Direct/Thread: Running 'PS/2 Input' (INPUT,6895)... > DirectFB/linux_input: could not grab device --> Device or resource busy > > .. > > And the same happens for PC Speaker and mouse > > What can i do to free this resources? > > What can be wrong to have all this kind of issues? > > Many thx, > > Nuno > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat > certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users |