Jpeg.dll - x64 release?

Hi everyone,
since I’m developing for AMD64 and I couldn’t find any x64 binaries
for SDL on Windows, I have been building my own ones with VC++ 2005.
This went fine for everything but libjpeg - I’m stuck at several
points to build a working JPEG.DLL which is required by sdl_image.

Does anybody have a working x64 version of JPEG.DLL or some
instructions on how to build libjpeg as dll? (I hope this is the
correct mailing list for this kind of question)

Thanks already and regards
Dominik

You can give http://www.williamweilep.com/code/jpeg-x64.zip a try
Inside the zip is a compiled x64 dll and vc8 project files.

To compile yourself, copy the VisualC directory to your jpeg source
directory and rename jconfig.vc to jconfig.h (in the jpeg source directory)
I haven’t directly tested this (I’m not in x64 at the moment)

–William

Dominik K?ser wrote:> Hi everyone,

since I’m developing for AMD64 and I couldn’t find any x64 binaries
for SDL on Windows, I have been building my own ones with VC++ 2005.
This went fine for everything but libjpeg - I’m stuck at several
points to build a working JPEG.DLL which is required by sdl_image.

Does anybody have a working x64 version of JPEG.DLL or some
instructions on how to build libjpeg as dll? (I hope this is the
correct mailing list for this kind of question)

Thanks already and regards
Dominik


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Hi William,
thanks a lot for your suggestion. I’ve carefully looked at it and
tested both versions.

  1. The included x64 dll somehow doesn’t seem to have any exported
    symbols (dumpbin doesn’t list anything) and no version information
    either (well, that’s not an issue, but it’s the only dll file in
    windows/system32 which doesn’t). After copying it into
    windows/system32, a quick test shows me that jpg still isn’t
    supported.

  2. Building using the project file returns somewhat similar. I have
    tried to build with a self-made DEF file, listing all the symbols that
    should be exported. dumpbin now returns a symbol list like:
    1 0 00027560 jcopy_block_row = jcopy_block_row
    2 1 000274A0 jcopy_sample_rows = jcopy_sample_rows

    101 64 000275A0 jzero_far = jzero_far
    But no success either, even djpeg.exe (the one that is building
    together with jpeg.dll) doesn’t get along with it after I rename it to
    libjpeg.dll.

Rather strange. Did they really work for you with sdl_image? Even the
official sdl_image demo project gives me a “jpeg not supported” error
with both versions.

Thanks again and best regards,
DominikOn 10/30/06, William Weilep wrote:

You can give http://www.williamweilep.com/code/jpeg-x64.zip a try
Inside the zip is a compiled x64 dll and vc8 project files.

To compile yourself, copy the VisualC directory to your jpeg source
directory and rename jconfig.vc to jconfig.h (in the jpeg source directory)
I haven’t directly tested this (I’m not in x64 at the moment)

–William

Dominik K?ser wrote:

Hi everyone,
since I’m developing for AMD64 and I couldn’t find any x64 binaries
for SDL on Windows, I have been building my own ones with VC++ 2005.
This went fine for everything but libjpeg - I’m stuck at several
points to build a working JPEG.DLL which is required by sdl_image.

Does anybody have a working x64 version of JPEG.DLL or some
instructions on how to build libjpeg as dll? (I hope this is the
correct mailing list for this kind of question)

Thanks already and regards
Dominik


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

I can’t figure out what I’m not doing right this time, so I’ll at least
attach a dll I compiled in the past (unfortunatly, I didn’t keep the
project files from that compile). There is a chance the dll was
statically compiled, I honestly don’t remember, but it should at least
export properly to test with –
http://www.williamweilep.com/code/jpegdll_x64.zip

I’ll let you know if I figure out the project file mess again.

–William

Dominik K?ser wrote:> Hi William,

thanks a lot for your suggestion. I’ve carefully looked at it and
tested both versions.

  1. The included x64 dll somehow doesn’t seem to have any exported
    symbols (dumpbin doesn’t list anything) and no version information
    either (well, that’s not an issue, but it’s the only dll file in
    windows/system32 which doesn’t). After copying it into
    windows/system32, a quick test shows me that jpg still isn’t
    supported.

  2. Building using the project file returns somewhat similar. I have
    tried to build with a self-made DEF file, listing all the symbols that
    should be exported. dumpbin now returns a symbol list like:
    1 0 00027560 jcopy_block_row = jcopy_block_row
    2 1 000274A0 jcopy_sample_rows = jcopy_sample_rows

    101 64 000275A0 jzero_far = jzero_far
    But no success either, even djpeg.exe (the one that is building
    together with jpeg.dll) doesn’t get along with it after I rename it to
    libjpeg.dll.

Rather strange. Did they really work for you with sdl_image? Even the
official sdl_image demo project gives me a “jpeg not supported” error
with both versions.

Thanks again and best regards,
Dominik

On 10/30/06, William Weilep <@William_Weilep> wrote:

You can give http://www.williamweilep.com/code/jpeg-x64.zip a try
Inside the zip is a compiled x64 dll and vc8 project files.

To compile yourself, copy the VisualC directory to your jpeg source
directory and rename jconfig.vc to jconfig.h (in the jpeg source directory)
I haven’t directly tested this (I’m not in x64 at the moment)

–William

Dominik K?ser wrote:

Hi everyone,
since I’m developing for AMD64 and I couldn’t find any x64 binaries
for SDL on Windows, I have been building my own ones with VC++ 2005.
This went fine for everything but libjpeg - I’m stuck at several
points to build a working JPEG.DLL which is required by sdl_image.

Does anybody have a working x64 version of JPEG.DLL or some
instructions on how to build libjpeg as dll? (I hope this is the
correct mailing list for this kind of question)

Thanks already and regards
Dominik


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Hi William,
thanks for the new archive. Now this dll has all the required exports
(and version information as well), and sdl_image successfully binds
these functions to the ‘lib’ struct. But still, sdl_image gives me a
"JPEG loading error" when simply trying to load a jpeg in a little
program (tried various programs, various files).

The error is detected in img_jpg.c at line 389 (setjmp(jerr.escape))
and the VC++ debugger shows me msg_code=21 which I can’t resolve since
the error numbers are enumerated at runtime and jpeg.dll contains no
debug information.

So I’m now asking myself whether jpeg.dll or sdl_image.dll is the
problem. Actually, sdl_image worked fine with pngs but there is a
small chance that my sdl_image.dll is corrupt - perhaps you could send
me yours as well? (Which has worked together with this jpeg.dll)

Could there be any other problem source? My experience in those things
isn’t that big…

Thanks again for your time,
DominikOn 10/31/06, William Weilep wrote:

I can’t figure out what I’m not doing right this time, so I’ll at least
attach a dll I compiled in the past (unfortunatly, I didn’t keep the
project files from that compile). There is a chance the dll was
statically compiled, I honestly don’t remember, but it should at least
export properly to test with –
http://www.williamweilep.com/code/jpegdll_x64.zip

I’ll let you know if I figure out the project file mess again.

–William

Dominik K?ser wrote:

Hi William,
thanks a lot for your suggestion. I’ve carefully looked at it and
tested both versions.

  1. The included x64 dll somehow doesn’t seem to have any exported
    symbols (dumpbin doesn’t list anything) and no version information
    either (well, that’s not an issue, but it’s the only dll file in
    windows/system32 which doesn’t). After copying it into
    windows/system32, a quick test shows me that jpg still isn’t
    supported.

  2. Building using the project file returns somewhat similar. I have
    tried to build with a self-made DEF file, listing all the symbols that
    should be exported. dumpbin now returns a symbol list like:
    1 0 00027560 jcopy_block_row = jcopy_block_row
    2 1 000274A0 jcopy_sample_rows = jcopy_sample_rows

    101 64 000275A0 jzero_far = jzero_far
    But no success either, even djpeg.exe (the one that is building
    together with jpeg.dll) doesn’t get along with it after I rename it to
    libjpeg.dll.

Rather strange. Did they really work for you with sdl_image? Even the
official sdl_image demo project gives me a “jpeg not supported” error
with both versions.

Thanks again and best regards,
Dominik

On 10/30/06, William Weilep wrote:

You can give http://www.williamweilep.com/code/jpeg-x64.zip a try
Inside the zip is a compiled x64 dll and vc8 project files.

To compile yourself, copy the VisualC directory to your jpeg source
directory and rename jconfig.vc to jconfig.h (in the jpeg source directory)
I haven’t directly tested this (I’m not in x64 at the moment)

–William

Dominik K?ser wrote:

Hi everyone,
since I’m developing for AMD64 and I couldn’t find any x64 binaries
for SDL on Windows, I have been building my own ones with VC++ 2005.
This went fine for everything but libjpeg - I’m stuck at several
points to build a working JPEG.DLL which is required by sdl_image.

Does anybody have a working x64 version of JPEG.DLL or some
instructions on how to build libjpeg as dll? (I hope this is the
correct mailing list for this kind of question)

Thanks already and regards
Dominik


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl