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 Oat » Tue Jul 29, 2008 4:07 pm

I did the exact process by following Xeno's guide but can't get past this...

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


Response:

Code: Select all
'make' is not recognised as an internal or external command, operable program or batch file.


Any idea?
Oat
Advanced member
 
Posts: 74
Joined: Mon May 12, 2008 3:40 pm

Postby Xeno » Tue Jul 29, 2008 4:50 pm

Oat wrote:Response:

Code: Select all
'make' is not recognised as an internal or external command, operable program or batch file.


Any idea?


It's not on your path (the path is a list of directories that windows looks in to try to find the program). Here are some ideas of what you can do:

1) Double check that you fully installed mingw and msys. There should be instructions including with the downloads (readme, etc) for adding the directories to the path.

2) Make sure that the command is still called "make"... it might be "mingw-make", or some other variant. The easiest way is to open the folder where you installed mingw and do a search for "make" (it should be in one of the "bin" directories").

3) If you find the make program but can't figure out how to add it to your path, go the the control panel, then to system, then on one of the tabs there you can set environment variables (lower tab all the way on the right I think)... choose advanced settings then look for path. Add the path to the folder that contains the make program . Make sure you separate it from the rest of the path line with a semi-colon.


I'm not running windows at the moment so I can't check the exact name of the tab and I haven't updated mingw or msys since I wrote this tutorial. Also, if you're on Vista, I don't know if you have to do this differently.
Xeno
peregrinus originis incognitae
 
Posts: 396
Joined: Wed Nov 15, 2006 10:42 pm

Postby Oat » Tue Jul 29, 2008 7:26 pm

1) Double check that you fully installed mingw and msys. There should be instructions including with the downloads (readme, etc) for adding the directories to the path.


Already installed the full versions

2) Make sure that the command is still called "make"... it might be "mingw-make", or some other variant. The easiest way is to open the folder where you installed mingw and do a search for "make" (it should be in one of the "bin" directories").


make files are currently in the directories and I made sure the paths matched to the bin folders

3) If you find the make program but can't figure out how to add it to your path, go the the control panel, then to system, then on one of the tabs there you can set environment variables (lower tab all the way on the right I think)... choose advanced settings then look for path. Add the path to the folder that contains the make program . Make sure you separate it from the rest of the path line with a semi-colon.


Already done. But still same command output.

I'm currently running Windows XP
Oat
Advanced member
 
Posts: 74
Joined: Mon May 12, 2008 3:40 pm

Postby tZork » Tue Jul 29, 2008 11:38 pm

the "just works way" get code::blocks http://www.codeblocks.org/ (use the nightly's). import the msvc solution and build.
HOF:
<Diablo> the nex is a "game modification"
<Diablo> quake1 never had a weapon like that.
<Vordreller> there was no need for anything over 4GB untill Vista came along
<Samua>]Idea: Fix it? :D
<Samua>Lies, that only applies to other people.
tZork
tZite Admin
 
Posts: 1337
Joined: Tue Feb 28, 2006 6:16 pm
Location: Halfway to somwhere else

Postby Xeno » Wed Jul 30, 2008 12:59 am

If it says that the command make isn't recognized, it absolutely has to be that the program is not on your path (i.e. it's not a compile error). There's a chance that there are several bin directories depending on how you installed everything (mingw has its own, so does msys, etc). CD into each one until you find the make program, try running it in the directory, then make sure that particular bin dir is on your path.

Check the path variable thoroughly too... it's easy to make make a small syntax error when changing it.

Even if you've double-checked, check again. It might seem like I'm just telling you to do the same thing again and you know that you have, but try to forget that you have and approach it as if you'd never tried. It's happened to me so many time that I've been sure I'd done everything correctly only to realize that having gone over it so many times had actually blinded me to it (pun not intended :P ).

I'm about 90% sure that you're going to have one of those "aaaaaaaaah..... fuck, how did I miss that" epiphanies.
Xeno
peregrinus originis incognitae
 
Posts: 396
Joined: Wed Nov 15, 2006 10:42 pm

Postby esteel » Wed Jul 30, 2008 6:42 pm

I used those lines in a cmd shell to make sure i had the right paths..

PATH=c:\msys\1.0\bin;c:\MinGW\bin;c:\MinGW\mingw32\bin;%PATH%

well obviously you might have to change that line if you have them installed in an other path..
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby Oat » Wed Jul 30, 2008 7:30 pm

I decided to uninstall everything and try again in step by step.. somehow it worked :D

Thanks guys
Oat
Advanced member
 
Posts: 74
Joined: Mon May 12, 2008 3:40 pm

Postby MirceaKitsune » Thu Sep 25, 2008 6:00 pm

Hope it's OK to make a later revive of this topic. I have also been trying to compile the SVN under Windows XP SP3 but the tutorial in the first post here was way too complicated so I asked on IRC if any easier method existed. Someone there showed me an easy way to compile the Nexuiz SVN and to get it working under Windows without needing MinGW and MSYS at all (credits go to esteel for this tutorial).

Please note however that this is not a complete SVN building tutorial. I for one could startup the client but got an error when trying to startup a server so I cannot really use this (client dropped crash in the console). Sadly, so far this method is best for those who want to do menu updates and other things without entering the map with. fteqcc.exe (a file which will be used in compiling below) only compiles the half of SVN necessary for the game to run, but not the game engine. As I was explained, if any engine changes are made in SVN they cannot be compiled using this method. So for the other half (engine) to compile and work, you need to use the method in the first post here or another way. Try to see if you can get engine parts from another install or something to get that one working. Please feel free to complete this tutorial if anyone can get everything fully working however. Anyway these are the steps I followed in order to get what I have to work;

1 - Download Tortoise SVN and install it.

2 - Make a new folder where you want the SVN installed at, right click it and select SVN Checkout. Enter the "URL of repository" svn://svn.icculus.org/nexuiz/trunk/ click OK and wait for the SVN to finish downloading (around 600 MB).

3 - Once the SVN is downloaded get fteqcc. fteqcc.exe is a small cmd application which is used to compile the necessary parts in the SVN.

4 - In the SVN installation of Nexuiz, go in the folder data\qcsrc. There are 4 other folders there: client, common, menu and server. The folders client, menu and server each contain a file called progs.src, the file which fteqcc.exe is meant to compile. Go in each of these free folders, copy fteqcc.exe there and open it up. You can check if the compiling was successful in the fteqcc text document that gets generated in that folder. Once you compiled the progs.src file in all 3 folders, return to the main Nexuiz SVN folder.

5 - For the last step you need to already have a Nexuiz prebuild installed. I recommend the NEWEST one from the precompiled builds list. What you need to do is to take all the files in the the nexuiz root folder from a normal Nexuiz installation (where nexuiz.exe is found) but without any folders, then put them in main folder of where you installed the SVN . Then just startup nexuiz.exe there and that's it, the game runs from that SVN.*

*(the point above goes away, read my post below)

So yeah... apart from the incompleteness issue the menu and system changes should compile correctly using this method. Have fun :)
MirceaKitsune
Keyboard killer
 
Posts: 593
Joined: Thu Aug 14, 2008 6:48 am
Location: Romania - Bucharest

Postby MirceaKitsune » Thu Oct 02, 2008 6:45 pm

Ok, I looked into this a little more and apparently the first tutorial that Xeno made is itself the engine-only compiling tutorial... at first I thought that MinGW and msys compiled both the engine and the game code. So what I posted above is actually the second compiling tutorial (the game code part) so in order to compile the SVN fully both things need to be done.

Either way I have one question about the mingw and msys method Xeno posted; I managed to get that working and yes I compiled the darkplaces engine with mingw + msys. However, where do I put the engine in the nexuiz SVN once it compiles to run the game? The compiled darkplaces engine is full of .d , .o and .h files but i dont know where to put them all.

I tried putting everything there in the Nexuiz root folder as it seemes best there (I used "make DP_MAKE_TARGET=mingw CC="gcc -I/c/x/MinGW/include/darkplaces" cl-nexuiz" to make sure the generated file was nexuiz.exe) but if I try to start it up I can enter the game menus but no music loads and all map preview textures are missing (skin and menu background images appear well though) and if I try to startup a map I get the error "...: most likely cause: outdated engine build" in the console.

What did I do wrong? Also, the enginesourceXXXXXXXX file i used is the one with the latest precompiled build as the SVN version does not seem to come with its own enginesource.zip. The SVN is the one im trying to compile and get running under XP, so what's wrong with what I did? What must I do and what enginesource must I use with SVN to run it?
MirceaKitsune
Keyboard killer
 
Posts: 593
Joined: Thu Aug 14, 2008 6:48 am
Location: Romania - Bucharest

hmmmm...

Postby icedece » Wed Oct 29, 2008 7:05 am

i tried compiling it this way and it worked really good :D
except...

I moved the new nexuiz.exe to the nexuiz folder and played it from there, and it played, but everything was stuttery. I can't understand why because the compiled nexuiz.exe and the original are almost exactly the same size and everything... :?

how do i fix this?

oh and i remember compiling the darkplace engine using vc++ and the compiled nexuiz.exe was about twice as big as the original exe and the same wierd stuttery stuff.

why does this happen to me??? :(
icedece
Newbie
 
Posts: 3
Joined: Wed Oct 29, 2008 6:58 am
Location: somewhere

PreviousNext

Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron