UFO:Alien Invasion

Development => Coding => Topic started by: eolmar on April 04, 2006, 09:12:35 pm

Title: Dev-cpp
Post 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
Title: Dev-cpp
Post by: Mattn on April 05, 2006, 08:10:56 am
add them to the feature request tracker on sf.net project site - then i'll add them to svn.

thanks
Title: Re: Dev-cpp
Post by: Hoehrer on April 05, 2006, 08:56:48 am
Quote from: "eolmar"
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
Title: Dev-cpp
Post by: Mattn on April 05, 2006, 11:47:04 am
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
Title: Dev-cpp
Post by: eolmar on April 05, 2006, 12:26:54 pm
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
Title: Dev-cpp
Post by: Hoehrer on April 05, 2006, 01:14:13 pm
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
Title: Dev-cpp
Post by: Mattn on April 05, 2006, 03:25:03 pm
maybe you can add the hole dev-files to tracker? not patches? easier for us - as i can't apply the patch, too
Title: Dev-cpp
Post by: eolmar on April 05, 2006, 04:51:58 pm
Ok, it is done. I posted a rar file to sf for the update.

Eolmar
Title: Dev-cpp
Post by: Hoehrer on April 16, 2006, 10:07:37 pm
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 ;)



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


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



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.

What doesn't work for me yet:
Werner

EDIT: added sound to the not-working list.
EDIT: added sdl_ttf
Title: Dev-cpp
Post by: Mattn on April 19, 2006, 12:13:05 pm
and the sound works for you?
Title: Dev-cpp
Post by: Hoehrer on April 19, 2006, 01:27:44 pm
Quote from: "Mattn"
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.
Title: Dev-cpp
Post by: Mattn on April 26, 2006, 08:42:21 pm
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
Title: Dev-cpp
Post by: Mattn on May 01, 2006, 07:33:01 pm
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.