Building on Windows
Saturday, July 21, 2012 - 12:19
Wanted to try building Flare on Windows so I installed MinGW. That seems to be working OK, but I'm not sure how to install the SDL development libraries. I downloaded a tarball from the SDL site specifically for MinGW but don't know where to go with it from here. Do I just untar it and "configure; make; make install" or is there a special program that comes with MinGW for handling it? I realize this isn't a Flare question, but I've already spent more than an hour trying to find some details on MinGW's site and have had no luck; I figured this would take just a quick answer from whoever makes the official Windows build. Thanks.
Those SDL_devel downloads (for SDL, SDL_image, SDL_mixer, SDL_ttf) should come with .lib and .a files (probably inside a lib folder). Those should be placed in MinGW's lib folder so that you can compile SDL programs.
Also on Windows I make sure C:\MinGW\bin is in my Path.
Once that's done, I run this command in the folder with Flare's src files:
g++ -I C:\MinGW\include\SDL src\*.cpp src\*.c -o flare.exe -lmingw32 -lSDLmain -lSDL -lSDL_image -lSDL_mixer -lSDL_ttf
This should create a flare.exe file.
Thanks very much. And thanks to you and the other developers for such a great game.
--- Black George