Hi Andrew,

Thanks for you work on this--having a new set of libraries for windows in both MSVC and mingw versions is a welcome update.

I did run into an error building with mingw:

undefined reference to __chkstk_ms

It seems to be coming from the new libraries. I did a quick search, and it seems like it could be caused by using a slightly older version of mingw. I'm going to try updating and will report back.


On Thu, May 10, 2012 at 12:38 PM, Andrew Tribick <ajtribick@googlemail.com> wrote:

I have recently recompiled the Windows libraries from source, both
using MSVC2010 and MinGW.

The versions I used were as follows:

gettext- (from http://www.gnu.org/software/gettext/)
libjpeg-v8d (from http://www.ijg.org/)
libiconv-1.14 (from http://www.gnu.org/software/libiconv/)
libpng-1.5.10 (from http://www.libpng.org/pub/png/libpng.html)
lua-5.1.5 (from http://www.lua.org/ftp/)
zlib-1.2.6 (from http://www.zlib.net/)

For libiconv and libintl, for which compiling using MSVC is not
supported, I created the .lib files by exporting the entry points with
"dumpbin /EXPORTS" to a .def file and creating the .lib using "lib

Updated windows directory is at

The attachment contains the diff to the src directory to enable
building with MinGW. For some reason mingw32-make ignored the -L path
so I just put the paths to the .a files into the LIB variable, if
there is a better way to do this let me know. I also had to update
image.cpp because the printf() function in the BMP loader was causing
problems. I have also removed the duplicate definition of snprintf on
Windows which is no longer needed.

Example command line for MinGW compilation:

qmake -spec win32-g++ celestia.pro
mingw32-make release

Example command line for MSVC 2010:

qmake -spec win32-msvc2010 celestia.pro
nmake release

(On my system the default spec is win32-msvc2010 so I can omit the
specification and just use "qmake celestia.pro")


Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Celestia-developers mailing list