home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


How to compile with mingw32/Dev-C++?

by Phoenixx on 09/11/2006 21:17, 20 messages, last message: 05/08/2007 01:09, 2412 views, last view: 05/04/2024 10:24

I've searched this forum and nothing works. How do I compile the source code with mingw32 and/or Dev-C++? I get a huge list of errors from Dev-C++ when I try to compile the source code (un-edited).

I've tried make.mingw.bat, putting mingw32-make.exe in the same folder, etc., and that doesn't do anything.

   Board Index   

#1: compile

by maximusDM on 09/12/2006 00:30

That\'s right. I have the same problems.
Can someone give us a real little help because compiling seams to be impossible?

reply to this message

#2: Re: compile

by ethan592 on 09/12/2006 04:59, refers to #1

in the src folder there is a folder called mingw. open that, copy the .bat file and put it in the top level (sauerbraten folder). then move the makefile up a level into the src folder. finally rename the 'lib' folder in the mingw folder to lib.mingw and put it in the src folder. now go back to the top level and run make.mingw. it should compile. now copy the sauerbraten.bat file and edit it to point to sauerbraten-mingw.exe in the bin folder instead of just sauerbraten.exe

reply to this message

#3: ..

by Phoenixx on 09/12/2006 14:56

I can get it to do something through the DOS prompt, but not with the .bat.

When I try it in DOS it tries to compile but can't find the .o output files. But they're not there to begin with. How do I make/generate them?

reply to this message

#4: IT WORKS !!!

by maximusDM on 09/12/2006 22:58, refers to #2

THANKS ALOT ETHAN ! IT REALY WORKS !
I altered some parameters for dmsp and it rocks now!!

I also tried on cube(last version) to make something similar but i failed.

Please explain, if possible, also for Cube.

Thanks again.

reply to this message

#5: Re: IT WORKS !!!

by ethan592 on 09/12/2006 23:26, refers to #4

i have not compiled cube in a LONG time but i dont remember it being as hard as sauer

reply to this message

#6: Re: any ideas on this error?

by ethan592 on 09/13/2006 06:24, refers to #4

merv are you on linux?

reply to this message

#8: It does not work!!!

by gazoo on 04/28/2007 12:32

I tried to compile Sauerbraten with the mingw32. But i when i run make.mingw in the Sauerbraten-folder it writes:

C:\Program Files\Sauerbraten\cd src

C:\Program Files\Sauerbraten\src\ mingw32-make all -fMakefile.mingw "mingw32-make" is not an command, program or batchfile (My Windows is in danish, so i translated it)

C:\Program Files\Sauerbraten\src\PAUSE



I did exactly what the user "ethan592" sad...

Can somebody help me?

reply to this message

#9: Re: It does not work!!!

by ethan592 on 04/28/2007 23:06, refers to #8

did you install mingw properly?

reply to this message

#10: ..

by gazoo on 04/29/2007 20:14

Yes..i think so. I did, like the instructions.

I also tried to compile the sourcecode with Dev-C++ and Microsoft Visual C++, but nothing works.
It allways come out with a lot of errors!

Do you know why? Or do you have another soloution, that works?

reply to this message

#11: Re: ..

by ethan592 on 04/29/2007 21:13, refers to #10

i am compiling with the devcpp files that are included in cvs now

reply to this message

#12: Re: ..

by Drakas on 04/29/2007 21:41, refers to #10

Because you did not do something correctly, you did not enable or you do not have something. Only way we can help is if you give us the list of errors that you received when trying to compile.

reply to this message

#13: Re: compile

by d on 04/29/2007 21:43, refers to #1


ethan592

can you explain me this step by step and after doing this last setp my sauerbraten.exe stoped working
but i don't get any errors when compiling


now copy the sauerbraten.bat file and edit it to point to sauerbraten-mingw.exe in the bin folder instead of just sauerbraten.exe

reply to this

reply to this message

#14: Re: compile

by d on 04/29/2007 22:33, refers to #2

after doing all the steps i get this and what now ???????


ethan592 ??


C:\Documents and Settings\MM\Desktop\Copy of Sauerbraten1>cd src

C:\Documents and Settings\MM\Desktop\Copy of Sauerbraten1\src>mingw32-make all -
fMakefile.mingw
g++ -O3 -fomit-frame-pointer -Wall -fsigned-char -Ienet/include -Iinclude -Ishar
ed -Iengine -Ifpsgame -o ../bin/sauerbraten-mingw.exe shared/tools.o shared/geom
.o engine/3dgui.o engine/client.o engine/command.o engine/console.o engine/crypt
o.o engine/cubeloader.o engine/grass.o engine/lightmap.o engine/main.o engine/ma
terial.o engine/menus.o engine/normal.o engine/octa.o engine/octaedit.o engine/o
ctarender.o engine/physics.o engine/rendergl.o engine/rendermodel.o engine/rende
rparticles.o engine/rendersky.o engine/rendertext.o engine/renderva.o engine/ser
ver.o engine/serverbrowser.o engine/shader.o engine/spheretree.o engine/sound.o
engine/texture.o engine/water.o engine/world.o engine/worldio.o fpsgame/fps.o rp
ggame/rpg.o -Lenet -Llib.mingw -lstdc++ -lenet -lmingw32 -lSDLmain -lSDL -lSDL_i
mage -lSDL_mixer -mwindows -lfmod -lz -lopengl32 -lglu32 -lws2_32 -lwinmm
strip ../bin/sauerbraten-mingw.exe

C:\Documents and Settings\MM\Desktop\Copy of Sauerbraten1\src>PAUSE
Press any key to continue . . .

reply to this message

#15: ..

by Quin on 04/30/2007 03:34

I put those devcpp project files there, and have since found that the necessary devpak's required to build sauerbraten successfully are no longer available.

I had been using devcpp for many years and had no need to try to update them earlier (as I could already compile cube/sauerbraten successfully).

My suggestion is to do as I did and switch to Code::Blocks (grab the stable 1.0rc2 bundled with MingW). The project file for this is in Sauerbraten's src/mingw/ but is only available in CVS, which you're on your own with :P The beauty of switching to an IDE that properly uses mingw is we can use the includes and libs supplied with Sauerbraten.

Hope that helps a little. But yeah, drop devcpp, it's dying a slow poor death.

reply to this message

#16: Re: compile

by ethan592 on 04/30/2007 05:21, refers to #14

umm that is a succesful build. now just run the file that it built.

quin, i am using the devcpp project with no problems at all...

reply to this message

#17: Re: compile

by d. on 05/01/2007 15:28, refers to #16

Hi ethan592

Thank you for a fast reply

That\'s how my C:\\sauerbraten\\sauerbraten.bat looks like but for some reason when i compile it doesn\'t make any changes to my sauerbraten.exe file??

bin\\sauerbraten-mingw.exe -w1024 -h768 %1 %2 %3 %4 %5

and after compiling i look at the date of sauerbraten.exe that was created or last time modified and it still the old date??

?????

reply to this message

#18: Re: compile

by ethan592 on 05/02/2007 03:39, refers to #17

it should create a new file, sauerbraten-mingw.exe, does that file show up in your bin folder?

reply to this message

#19: Re: compile

by d. on 05/02/2007 04:52, refers to #18

Hi ethan592

Thx ethan592 for trying to help me with my problem.

Yes there is a file sauerbraten-mingw.exe in a bin folder and i also
made a change to to sauerbraten.bat so it can run sauerbraten-mingw.exe from main folder but the problem that when i'm trying to test it by changing some stuff to <h> files in fpsgame folder and i save it I don't see this changes in a game after??

<<<For testing purpuses purposes i've used weapons.h file>>>

Thx again ethan592
Hope to hear from you soon

reply to this message

#20: Re: compile

by ethan592 on 05/07/2007 01:53, refers to #19

header files are not compiled. just save one of the .cpp files that references the header file to trick it into recompiling. this should work

reply to this message

#21: Got it working!

by d,, on 05/08/2007 01:09

Thank you ethan592
I got it working and the biggest help came from you. I hop to see you in one of the servers some day.

Thank you again.

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53869103 visitors requested 71644291 pages
page created in 0.009 seconds using 10 queries
hosted by Boost Digital