My way of using Dev-C++ to compile UFO:AI on Windows. There might be some points that can be done easier or different, but it works for me.... mostly, see the bottom of the post.
See the following thread for more information:
http://ufo.myexp.de/phpBB2/viewtopic.php?t=17For compiling you don't need the data files archive, but for running the game afterwards it's recommended to install them as well
- Redirect the compile output paths to trunk:
Load trunk/src/ufo.dev in Dev-C++
Project options -> Build Options -> Output path for exec. files -> ..\..\trunk
Save all
Load trunk/ref_gl/ref_gl.dev in Dev-C++
Project options -> Build Options -> Output path for exec. files -> ..\..\..\trunk
Mind the third ".."
Save all
- Installation of additional packages if the devcpp-webupdate doesn't work for you (proxy etc...):
Tools -> Package Manager -> Install -> select .DevPak file
http://devpaks.org/ http://old.devpaks.org/Package: SDL Library
Download:
http://devpaks.org/details.php?devpak=97For: ufo
Package: SDL_ttf
Download:
http://devpaks.org/details.php?devpak=7For: ref_gl
Package: Ogg Vorbis SDK
Download:
http://old.devpaks.org/show.php?devpak=141For: ufo
Package: libjpeg 6b-4
Download:
http://old.devpaks.org/show.php?devpak=114For: ref_gl
- Installation of additional libraries (if not found on game-start):
Library: SDL Runtime Libraries
Download:
http://www.libsdl.org/download-1.2.php -> Win32: SDL-1.2.9-win32.zip
Install: Put the SDL.dll in your trunk directory.
Library: JPEG library
Download: No source found .. i've copied mine from the GTK install.
Install: Put the jpeg62.dll in your trunk directory.
- Ctrl+F11 in ref_gl.dev and ufo.dev to compile.
What doesn't work for me yet:
- Getting text output on the commandline like on linux. Removing the -lwinmm from the linker doesn't work for me. Help on this would be welcome.
- Using the debug-mode in Dev-C++. I just get a message that one image was not found ("Couldn't load pics/colormap.pcx") and then exits. I suspect that this is because i use another output directory for the executables.
- Sound
Werner
EDIT: added sound to the not-working list.
EDIT: added sdl_ttf