[sdljava-users] Re: Problems with SDLJava_Image.dll and jpeg.dll
Status: Beta
Brought to you by:
ivan_ganza
From: Patric <pa...@ma...> - 2005-08-13 17:07:01
|
Hi list, I finally figured out the problem: It is a dll collision with the jpeg.dll from SDL and the one at the JRE/bin folder. My solution was renaming the SDL jpeg.dll and patching the SDL_Image.dll import table that it points to the new name. Maybe we should consider contact the SDL_Image team that they think about renaming of the jpeg library. Best regards Patric Patric schrieb: > Hello List, > > I have the same problem using JDK 1.4.2 and the newest SDLJava/SDL > libraries > > Interestingly, displaying an image with SDL/SDL_image works perfectly if > I use C++ and using the same SDL.dll/SDL_Image.dll without an additional > wrapper. > > So I think that the problem is located at SDLJava_image.dll. > > BTW: I had a look on my jpeg.dll, ordinal 50 (jpeg_finish_decompress) > does exist. Very strange. > > Maybe UPX (why did you use a beta version of UPX?) causes the problem > (Ok, I decompressed the dlls, it didn't work either). > > Did somebody solve our problem already? > > I think all problems will be gone if I compile SDL/SDLJava for myself > (but I had some problems compiling SDL with MinGW in the past...) > > Patric > > > >> This is strange. I"m assuming this is with the binary release? I did >> test the binary release on a windows machine and this part was >> working well. I wonder if it is the version of the jpeg.dll or >> something along those lines. >> >> Try to download: >> >> http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.4-win32.zip >> >> >> and use the image dlls from this. I"m not sure if that is what you >> are currently using? I tested it against the image handling >> libraries provided in that download. >> >> Let me know how it goes... >> >> -Ivan/ >> >> luis.montes@co... wrote: >> >> >Same here with PNG"s too. >> >I don"t think your jpeg.dll is corrupted. >> > >> > >> > >> > > >> >>From: "David Felkel" <fe...@in...> >> >>Date: 2005/05/16 Mon AM 07:34:47 EDT >> >>To: <sdljava-users@li...> >> >>Subject: [sdljava-users] Problems with SDLJava_Image.dll and jpeg.dll >> >> >> >>Hi! >> >>I recently installed SDLJava on a Win32-Systerm and everything >> seemed ok, until I tried >> to load an image with SDLImage..load(".../test.bmp"). I get the >> following error messages: >> >> >> >>1. The ordinal 50 could not be found in jpeg.dll (in a MessageBox) >> >>2. Native code library failed to load. >> >> java.lang.UnsatisfiedLinkError: >> C:\WINNT\system32\SDLJava_image.dll: The operating >> system cannot run %1 >> (on the console) >> >> >> >>It seems that somehow my jpeg.dll is corrupted. I already tried to >> use the dlls that come >> with SDL_Image 1.2.4 instead of 1.2.3 but it still does not work. >> Maybe someone can expain >> me how to fix that error, or send me a working SDLJava_Image.dll and >> jpeg.dll. >> >> >> >>Thanks in advance, >> >>D. Felkel >> >> >> >> >> >> >> >> > >> > >> > >> >------------------------------------------------------- >> >This SF.Net email is sponsored by Oracle Space Sweepstakes >> >Want to be the first software developer in space? >> >Enter now for the Oracle Space Sweepstakes! >> >http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click >> >_______________________________________________ >> >sdljava-users mailing list >> >sdljava-users@li... >> >https://lists.sourceforge.net/lists/listinfo/sdljava-users >> > > > > > > |