How to compile ET with MinGW


(RayBan) #21

thanks for the reply kamikazee,
but it turns out there is some problem… it does compile, now it loads the
mod… but hangs or crashes before the map loads.

although i wanted to go with mingw since ppl have mentioned its better
for efficiency and fps, i have to accept this one tutorial is borked somehow
since Alan even had problems with it.

i will try a different compiler.
thanks anyways.


(SCDS_reyalP) #22

You certainly can compile with mingw, a number of popular mods use it :wink:

If you are using cygwin as the shell you compile from, you have to be sure to actually compile a mingw .dll, by adding -mno-cygwin in the correct places.

As far as the crashing goes, it’s up to you to debug it. I would avoid making any changes to the code (other than as required to get it to compile) before you have things working correctly.


(RayBan) #23

@SCDS_reyalP

well… thats the thing… im not making any changes to the stock source for
a build test, and its crashing.

im using winxp, mingw 3.2.0-rc-3 and msys.
i do also have visual 2005 express and the platform sdk installed for some
other c++ programming i have tried. but for just compiling the et source
the mingw and msys.

i shouldn’t need to debug yet until i can get the stock source to build.
and i know ppl have been working with it and mingw and no problems, but
the main thing is, there is no definative tutorial on how to get it setup proper
with mingw and working. i mean… there are tutorials like this, but following
the tutorial on how to get the dll’s compile, and then reading

“2005/02/06 - The game & ui DLLs work fine but cgame doesn’t run properly.
If you find a solution, please send me an e-mail : header at tiscali dot fr”

doesnt inspire a lot of confidence in the tutorial.

installing and setting up mingw, msys… fine. installing the et_sdk, no
problem.

now… proper makefiles would help. i do understand the need to add some
definitions for mingw… ok. but excluding a .c file because of errors… is that
needed? i mean… the file is part of the src.

jaybird mentioned that he thinks it just works out of the box…

and i know ppl have no problem compiling with mingw.

as i mentioned, a straight forward tutorial would have helped.

i have used vc2003 before to compile the quake3 source, no problems the
1st time, so maybe i’ll try that route. better fps and more efficient from mingw… i would have loved that. but i will do what works for now.

thanks again.


(nUllSkillZ) #24

You could also try to install Linux in a virtual machine under Win.
And then cross-compile the source under Linux for Win.
Advantage would be that you also could compile the source for Linux (other way around is not possible).

I’ve had no problems under Linux to cross-compile for Win and compile for Linux.

Disadvantages:
You would have to install a virtual machine and the Linux OS.
And to make it possible to exchange files between Win host and Linux guest.

There are at least two threads here in the forums dealing with the compile under Linux.
I’ve written a german wiki article based on those two threads.
If there’s interest I could trranslate this article.


(RayBan) #25

thanks again nUllSkillZ but i managed to get it compiled and working
proper with visual 2003.