Advertisement

SDL 1.2 for mingw64

Started by April 28, 2014 12:40 PM
2 comments, last by FGFS 10 years, 7 months ago

Hi

anyone knows of a SDL1.2 and SDL_image 1.2 for mingw64? Or how to build?

Thanks

I haven't built SDL specifically but usually libraries will come either with a CMake configuration (in which case you just generate the desired build system of your choice) or Linux make files (if those don't work right out of the box in a Windows command line, use msys tied to your MinGW).
Advertisement

Hi

anyone knows of a SDL1.2 and SDL_image 1.2 for mingw64? Or how to build?

Thanks

I have TDM64 installed in C:\MinGW. Change as necessary.

For SDL:

1) Get MSYS, unpack it under C:\MinGW, and change the contents of C:\MinGW\msys\etc\fstab to

c:/mingw /mingw

2) Run C:\MinGW\msys\msys.bat, and unpack the SDL sources to your MSYS home folder (C:\MinGW\msys\home\<username>)

3) Build the library the usual way:

./configure

make

make install

4) The library files shoud be ready in C:\MinGW\msys\local

I just built the library and compiled a small test program with it - worked fine.

As for SDL_image, it should be a little more work since it depends on other libraries, but MSYS should enable you to build them all.

Thanks, that seems to be a really neat tool. I only need libtga for sdl_image, but I get errors. Anyone could build those 3 libs for me?

Thanks again

This topic is closed to new replies.

Advertisement