How do I compile the client on WinXP using MinGW?

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 » Sat Aug 18, 2007 12:28 pm

divVerent wrote:Yes, use c:\progra~1\ which serves as an alias to Program Files. But no idea how you can change that. "make" is known to not work with spaces in directory names.

Didn't you get a warning when installing into this folder?


I replaced all instances of "Program Files" in the path variable with the short version but that didn't help.

No, there were no warnings when I installed minGW or MSYS about the space.
Xeno
peregrinus originis incognitae
 
Posts: 396
Joined: Wed Nov 15, 2006 10:42 pm

Postby divVerent » Sat Aug 18, 2007 12:46 pm

Reinstall it to another directory, apparently nothing else will help.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Blµb » Sat Aug 18, 2007 1:30 pm

i told him that, it must be a bug in mingw when it doesn't like spaces in directory names.
Install it into a directory where you have no single space in the full path ;)

And div, why did your mingw cross compiler come with directx headers and mine didn't? darn :P i copied them later :>
Blµb
Alien trapper
 
Posts: 277
Joined: Thu Mar 29, 2007 1:49 pm

Postby divVerent » Sat Aug 18, 2007 4:24 pm

No idea why. I have two completely different mingw cross environments here (one with gcc3 and one with gcc4) and I have no idea where I got either from. But only the gcc3 one came with the DX headers included.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Xeno » Fri Oct 05, 2007 5:09 pm

Ok, here we go again.

This is what I've done:
I uninstalled MinGW and MSYS from my "Program Files" directory
I installed Cygwin (c:\cygwin) (for something else actually, which gave me the idea to try this again)
I re-installed MinGW (c:\X\mingw) but not MSYS (Cygwin should contain all the MSYS functionality, shouldn't it?).

I've set the environmental path variable to include the following
Code: Select all
c:\X\mingw\bin
C:\cygwin\bin;
C:\cygwin\usr\bin;
C:\cygwin\usr\local\bin;

and in that order.

I have the following files in "C:\cygwin\usr\local\include\darkplaces".
Code: Select all
dinput.h
dsound.h
ddraw.h


I should have everything that I need to compile from source I think. I've tried several permutations of everything listed in this thread. Can someone please tell me what I'm supposed to do. Above all it would be great if someone could give me confirmed instructions but I'm willing to try informed guesses.

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

Postby KadaverJack » Fri Oct 05, 2007 7:01 pm

Xeno The Blind wrote:I have the following files in "C:\cygwin\usr\local\include\darkplaces".

I don't think that's the right path (unless you edited the makefile...)
Put them where your other mingw headers are (and don't create a new directory).

Or install dev c++, put the headers in Dev-Cpp/include, open darkplaces.dev, click "compile" and rename darkplaces.exe to nexuiz.exe afterwards...
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby Xeno » Fri Oct 05, 2007 7:30 pm

KadaverJack wrote:I don't think that's the right path (unless you edited the makefile...)
Put them where your other mingw headers are (and don't create a new directory).

Or install dev c++, put the headers in Dev-Cpp/include, open darkplaces.dev, click "compile" and rename darkplaces.exe to nexuiz.exe afterwards...


Thanks, but there is a command-line argument for make and mingw32-make that enables me to specify additional include directories... I'd prefer to avoid a chaotic include dump directory.
Xeno
peregrinus originis incognitae
 
Posts: 396
Joined: Wed Nov 15, 2006 10:42 pm

No Clue Here Either!

Postby nexbender » Mon Oct 08, 2007 10:48 am

I just found this thread whilst looking up something else. In an ongoing effort to resolve the mystery meat of exploits I built & tested modified builds under Archlinux (can't remember which gcc - whatever's latest in what used to be called their "current" pkg set) - which was quite simple after finding the pkgs containing a few headers I needed (probably for sdl related junk).

When I got around to doing this under WinXP, I ran into the same array of wildly unhelpful errors. As I told John Galt "3 SDKs and 3 hours later it is still a total clusterf*ck" - all this with various versions/combos of MinGW and MSys. Hell, I even tried cygwin after editing the makefiles to specifically build the windoze port - which, funny enough, is as close as I came to getting it right. Somewhere along the way I *did* manage to get the whole shebang built, by accident. But since I had no idea how it happened *and* they got built under my modified copy from svn (God alone knows what state the source was in when it happened), I discarded the binaries as useless.

So, any help here would also be appreciated.
nexbender
Alien
 
Posts: 138
Joined: Tue Jun 26, 2007 12:35 am
Location: Kal E Forn Ya

Postby Xeno » Mon Oct 15, 2007 10:50 pm

*bump*


Don't hate us because we're using windoze. :(
Xeno
peregrinus originis incognitae
 
Posts: 396
Joined: Wed Nov 15, 2006 10:42 pm

Postby divVerent » Mon Oct 15, 2007 10:56 pm

We simply don't have it.

If mingw on Win32 is any similar to mingw on Linux (and it should be), the included Makefile should work out of the box. We also got reports of people building it on Dev-C++, which is an IDE using mingw.

Can you try posting the errors you get? Also, don't use spaces in folder names :P
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

PreviousNext

Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron