UFO:Alien Invasion
Development => Coding => Topic started by: eolmar on April 04, 2006, 09:12:35 pm
-
Hi,
i have been working on the .dev file and finally got dev-cpp to compile the svn sources. I will be glad to put this on the svn server and start working on some coding.
But I still have a problem with the compile from dev-cpp, there is no sound (but at least there is now a free compiler to work with)
See you
Eolmar
-
add them to the feature request tracker on sf.net project site - then i'll add them to svn.
thanks
-
Hi,
i have been working on the .dev file and finally got dev-cpp to compile the svn sources. I will be glad to put this on the svn server and start working on some coding.
But I still have a problem with the compile from dev-cpp, there is no sound (but at least there is now a free compiler to work with)
I'm just curious: Is the .dev file that is already in svn [1] from you and/or did you take it as a template?
Werner
[1] http://svn.sourceforge.net/viewcvs.cgi/ufoai/ufoai/trunk/src/ufo.dev?view=log
-
the dev file in svn was made by me - but it does not work.
if you find the time hoerher - please apply the patch and commit the stuff.
great to have this - so no need for vc anymore.
thanks
-
Hi,
the file are uplaoded in the parch section.
I used the dev file as template and then tweaked the option (mainly for the dll building). You need to install other package via the package manager (vorbis, vorbisenc, ogg, SDL i think). There was one code change in an include file as well (protected by a #ifdef DEVCPP) so it should not conflict with other build system.
However i don't have sound with my version so i will be intersted in you success with the sound on different machine.
Eolmar
-
i'll apply the patch as soon as i can make it work with the patch-command... and it seems to multiple diffs of the same file in the patch.
Werner
-
maybe you can add the hole dev-files to tracker? not patches? easier for us - as i can't apply the patch, too
-
Ok, it is done. I posted a rar file to sf for the update.
Eolmar
-
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=17
For 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=97 (http://devpaks.org/details.php?devpak=97)
For: ufo
Package: SDL_ttf
Download: http://devpaks.org/details.php?devpak=7 (http://devpaks.org/details.php?devpak=7)
For: ref_gl
Package: Ogg Vorbis SDK
Download: http://old.devpaks.org/show.php?devpak=141 (http://old.devpaks.org/show.php?devpak=141)
For: ufo
Package: libjpeg 6b-4
Download: http://old.devpaks.org/show.php?devpak=114 (http://old.devpaks.org/show.php?devpak=114)
For: 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 (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
-
and the sound works for you?
-
and the sound works for you?
To be honest, i don't remember if i had sound, and i can't check it since this was on the computer of my mother 50km from here. ;)
But i think it didn't work. Will add it to the list above.
I didn't have music for sure since i didn't download the music data (ISDN).
Werner
PS: I i often turn of the music while developing (even under Linux where it all works). If i do not do that i get all the same music over and over again when restarting the game while testing. Quite annoying sometimes ... not the music itself, but the looping.
-
in order to install with directX sound you need to install the directX sdk.
otherwise you can use the sdl-sound but then you have to go to project options->compiler options and add -DUSE_SDL_SOUND
-
had some trouble compiling with an older dev-cpp installation.
had some UINT32 definition errors
fixed this in reinstalling the libjpeg 6b-4 dev-pak
maybe this will help someone else, too.