HOWTO: Compile Nexuiz on Windows using MinGW and MSYS

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Postby Xeno » Tue Nov 06, 2007 9:49 am

Is there any chance of making this thread sticky? It's just going to get buried otherwise.

EDIT: Thanks.
Xeno
peregrinus originis incognitae
 
Posts: 396
Joined: Wed Nov 15, 2006 10:42 pm

Postby Dokujisan » Mon Dec 17, 2007 6:00 am

Stickies work, but there really should be an official WIKI for stuff like this. I know there is the unofficial Nexuiz WIKI, but that isn't good enough. It should be linked from the alientrap.org menu and a handful of volunteers could be assigned as moderators for it.
Dokujisan
Forum addon
 
Posts: 1199
Joined: Sat Oct 07, 2006 4:31 pm
Location: Louisville, Kentucky

Postby erroneus » Sat Jan 12, 2008 9:05 pm

this is great! thanks, i've been looking all day for this, (in the wrong places)
but this doesn't mention anything about creating an sdl binary, or will i find out how to do that once i get going through the steps?
erroneus
Member
 
Posts: 12
Joined: Tue Jan 08, 2008 1:10 am

Postby Blµb » Sat Jan 12, 2008 10:11 pm

if you got the SDL headers and libs installed for mingw, then you should be able to use the sdl-* targets from the makefile
when you just type "make" instead of "make .... cl-release" then you get a list

for sdl-release:
Code: Select all
make DP_MAKE_TARGET=mingw CC="gcc -I/c/x/MinGW/include/darkplaces" sdl-release


I cannot try it though, would be nice if you report back if it works :)
Blµb
Alien trapper
 
Posts: 277
Joined: Thu Mar 29, 2007 1:49 pm

Postby erroneus » Sat Jan 12, 2008 10:59 pm

thanks for the quick reply,
i followed xeno's instructions exactly... actually he forgot to add what to do with these files
MinGW Runtime (I used mingw-runtime-3.13.tar.gz)
MinGW API for MS-Windows (I used w32api-3.10.tar.gz)
GNU Binutils (I used binutils-2.17.50-20060824-1.tar.gz)

i assumed to extract them and overwrite files in the MinGW directory.

after it failed the first time, i went back and did a full installation of MinGW, (there was no c or c++ options in the MinGW-5.1.3 installation dialoge, but there was g++... regardless, i installed it all to make sure)
i also redid the msys installation to make sure it was set correctly

i think i'm still missing something because when i run
Code: Select all
make DP_MAKE_TARGET=mingw CC="gcc -I/c/x/MinGW/include/darkplaces" cl-release

i get a response of
Code: Select all
make: *** No rule to make target `cl-release'.  Stop.

same with SDL
Code: Select all
make: *** No rule to make target `sdl-release'.  Stop.

so yeah, clearly i'm missing both default and SDL headers and libs installed for mingw, any tips on how to fix that?
thanks!
erroneus
Member
 
Posts: 12
Joined: Tue Jan 08, 2008 1:10 am

Postby KadaverJack » Sat Jan 12, 2008 11:11 pm

erroneus wrote:so yeah, clearly i'm missing both default and SDL headers and libs installed for mingw, any tips on how to fix that?

You're not missing headers, you either don't have the right makefile (or none at all) or you run make in a wrong directory. You have to call make from the darkplaces source directory.
Last edited by KadaverJack on Mon Jan 14, 2008 9:23 am, edited 1 time in total.
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby erroneus » Mon Jan 14, 2008 3:53 am

cool, thanks! i got it the CL version to compile, a couple other things that should be fixed if this is to be made into a wiki.

xeno neglected to say to put the source files in the darkplaces directory that was created in include. (i just had to assume to)
he didn't say what to do with the .tar files that had to be downloaded, (again i assumed they had to be extracted into the WinGW directory, overwriting existing directories)

the path C:\msys\1.0\bin does not exist (specificially, the 1.0 directory)
it is actually C:\msys\bin; (well C:\x\msys\bin;)

and lastly, i really want to create a binary executable of the SDL version, i found what seems to be the libs in an old thread
http://www.libsdl.org/release/SDL-devel ... w32.tar.gz
there are newer versions now, did the same with the rest of the .tar files and extracted it into the mingw directory, i tried the newest one first, got some erros, then i did this one and got different errors.

any ideas to help me out? much appreciated!

(also in the faq that comes with nexuiz, to compile the game, it only says to run fteqcc.exe in the menu and server directories of the gamesource, it spits out 4 files,
menu.dat
menu.lno
progs.dat
progs.lno
needless to say, it isn't very helpfull, espcially since i want to modify bits in the engine, which is why i'm in this thread)
erroneus
Member
 
Posts: 12
Joined: Tue Jan 08, 2008 1:10 am

Postby erroneus » Wed Jan 16, 2008 8:44 pm

double yay, i got sdl to compile, i uninstalled everything and started from scratch,
the sdl libs are located here for any other people who are new to coding like me
http://www.libsdl.org/release/SDL-devel ... w32.tar.gz
all this gets copied to the mingw directory aswell as the other stuff.

the only other thing that i did, i copied the .h files from Nexuiz\Nexuiz-SDL.app\Contents\Frameworks\SDL.framework\Versions\A\Headers (included in the game)
i over wrote the files that i downloaded, i dunno if it was good or bad, but it worked on the first try.

the difference i'm looking at is the way the sdl version handled joystick input. the cvars are totally different compared to the CL version.
erroneus
Member
 
Posts: 12
Joined: Tue Jan 08, 2008 1:10 am

Postby Snow123 » Fri Mar 28, 2008 8:33 am

This is how I finally got it to work on WinXP. Some of this might be superfluous (I installed stuff to be able to compile CPAN modules for Perl at the same time, so the Nexuiz client might not need everything here! :shock:
Snow123
Newbie
 
Posts: 3
Joined: Fri Mar 28, 2008 8:31 am

Postby Xeno » Sat Mar 29, 2008 3:50 am

Updated the original post to include some of the "missing" instructions mentioned by erroneus (is that info not included in the READMEs?), and appended his instructions for compiling the SDL version.

I like Doku's idea of creating an official, moderated wiki for things like this. I don't think that I'll be compiling the client again any time soon so I won't be able to maintain this (not even sure if this still works now... I think the instructions need to be updated to handle qc support).
Xeno
peregrinus originis incognitae
 
Posts: 396
Joined: Wed Nov 15, 2006 10:42 pm

PreviousNext

Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron