project-navigation
Personal tools

Author Topic: Dev-cpp  (Read 10168 times)

eolmar

  • Guest
Dev-cpp
« 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

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Dev-cpp
« Reply #1 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

Hoehrer

  • Guest
Re: Dev-cpp
« Reply #2 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

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Dev-cpp
« Reply #3 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

eolmar

  • Guest
Dev-cpp
« Reply #4 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

Hoehrer

  • Guest
Dev-cpp
« Reply #5 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

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Dev-cpp
« Reply #6 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

eolmar

  • Guest
Dev-cpp
« Reply #7 on: April 05, 2006, 04:51:58 pm »
Ok, it is done. I posted a rar file to sf for the update.

Eolmar

Hoehrer

  • Guest
Dev-cpp
« Reply #8 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.

  • Checkout trunk from SVN.

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
For:      ufo

Package:   SDL_ttf
Download:   http://devpaks.org/details.php?devpak=7
For:      ref_gl


Package:   Ogg Vorbis SDK
Download:   http://old.devpaks.org/show.php?devpak=141
For:      ufo   

Package:   libjpeg 6b-4
Download:   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 ->  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

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Dev-cpp
« Reply #9 on: April 19, 2006, 12:13:05 pm »
and the sound works for you?

Hoehrer

  • Guest
Dev-cpp
« Reply #10 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.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Dev-cpp
« Reply #11 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

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Dev-cpp
« Reply #12 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.