well, this is intimidating for me as ive only built one LIB before and that was with a Visual Studio Solution file that was click-and-compile and didnt give any errors/warnings
but this has no Visual Studio files! for this i had to also install
CMake, and then also
NASM! as per
https://github.com/libjpeg-turbo/libjpe ... UILDING.md
Here are the results of the compile, lots of warnings and a couple of macro errors but they look minor:
http://pastebin.com/xVgpAxqR
But it did compile! 32bit jpeg-static.lib:
https://www.sendspace.com/file/ml55q0
(604k lib -> 159k zip) but ive got no idea if it still has the same problems as the existing precompiled binaries you refered to in OP. You might want to try the libs from a really old version just to check if the problem you found is related to new builds
This is for v1.4.2 btw, the last non-beta, and i used VC2005
I will try compile a couple other versions now
I had problems compiling the very latest beta, ill try to have another go soon, but I also tried a really early version, v1.2.1 from March 2014, and it compiled in VC2005 really smoothly - no warnings or errors! and it compiled EVERYTHING, whereas my previous compile was incomplete (but at least it didnt fall over until one of the libs was built)
https://www.sendspace.com/file/rla0v4
(442kb zip: jpeg-static.lib, turbojpeg-static.lib, turbojpeg.lib, and turbojpeg.dll)
Anyway hopefully by going back to 1.2.1 it will work and we can then move forward to find optimal version to use that works!
1.4.1 compiled clean too! 533kb, same four files -
https://www.sendspace.com/file/svchez
One thing though is that ive just run cmake/nmake "as is", i havent been able to turn off that Global Optimiztion thing that was necessary in a previous lib (not that i know if thats required for this or not) as that was a Visual Studio setting and im just running this from the commandline as per its build instructions
I retried the very latest beta, as well as 1.4.2 but ive had no luck with those too, so it seems 1.4.1 is the best/latest i can do but at least thats still fairly recent (Sept 2015) and it was an error-free build. But my builds might just be the same as the precompiled binaries that come with it so the problem you mentioned might still be the same, i dont know
anyway fingers crossed there's some good results and i will await your feedback
btw i jst noticed in your source code demo you import a ".a" instead of .lib ... i noticed that in the GCC .exe download the \lib\ dir just has .a files, whereas the VC version just has .lib files. Youre probably already aware of that but just thought it was worth mentioning!
perhaps if none of these work MingW or Cygwin might be worth a try, though i have hardly any experience with those either. Or perhaps it just needs a different VC build like that other person suggested in my quote, but i only have VC 2005/2008/2010, so of course it suggests 2015 lol