How to compile darkplaces on windows?

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators


  • Hi, in general, I'm a linux user, but as we make a lan-party here, I thought playing some nexuiz would be nice. Under Linux, I simply do a "make cl-nexuiz", but the same on windows fails:
    Code: Select all
    Z:\stefan\SVN\darkplaces>mingw32-make cl-nexuiz
    mingw32-make bin-release \
                    DP_MAKE_TARGET=mingw DP_SOUND_API=WIN \
                    EXE="nexuiz.exe" LDFLAGS_COMMON="-lws2_32 -Wl,--large-address-aware -mwindows -lwinmm -luser32 -lgdi32 -
    ldxguid -ldinput -lcomctl32"
    mingw32-make[1]: Entering directory `Z:/stefan/SVN/darkplaces'
    ECHO ist ausgeschaltet (OFF).
    "========== nexuiz.exe (release) =========="
    mingw32-make nexuiz.exe \
                    DP_MAKE_TARGET=mingw DP_SOUND_API=WIN \
                    CFLAGS="-MD   -Wall -Wsign-compare -Wdeclaration-after-statement   -O2 -fno-strict-aliasing "\
                    LDFLAGS="-O2 -fno-strict-aliasing  -lws2_32 -Wl,--large-address-aware -mwindows -lwinmm -luser32 -lgdi32
    -ldxguid -ldinput -lcomctl32"
    mingw32-make[2]: Entering directory `Z:/stefan/SVN/darkplaces'
    gcc -MD   -Wall -Wsign-compare -Wdeclaration-after-statement   -O2 -fno-strict-aliasing  -c sys_win.c -o sys_win.o
    sys_win.c:25:20: dsound.h: No such file or directory
    mingw32-make[2]: *** [sys_win.o] Error 1
    mingw32-make[2]: Leaving directory `Z:/stefan/SVN/darkplaces'
    mingw32-make[1]: *** [bin-release] Error 2
    mingw32-make[1]: Leaving directory `Z:/stefan/SVN/darkplaces'
    mingw32-make: *** [cl-nexuiz] Error 2
    i didn't find any howto in the board, what can i do? seems that some devel-libs are missing...
    C167
    Member
     
    Posts: 29
    Joined: Wed Oct 31, 2007 5:24 pm

Thu Feb 07, 2008 2:05 am

Thu Feb 07, 2008 2:45 am

  • Why don't you just use one of the precompiled releases?
    Image
    User avatar
    torus
    Forum addon
     
    Posts: 1341
    Joined: Sun Dec 24, 2006 6:59 am
    Location: USA

Thu Feb 07, 2008 8:50 am

  • torus wrote:Why don't you just use one of the precompiled releases?

    I'm quite sure he knows about that option :P
    -----------

    Well you're missing some headers, dsound.h as it says, I bet you also need dinput.h and ddraw.h, I remember I had to copy them into my crosscompiler's /usr/include
    in Psychcf's link there's a link where you can get it =)
    User avatar
    Blµb
    Alien trapper
     
    Posts: 277
    Joined: Thu Mar 29, 2007 1:49 pm

Thu Feb 07, 2008 9:00 am

Sat Feb 09, 2008 11:47 pm

  • Blµb wrote:
    torus wrote:Why don't you just use one of the precompiled releases?

    I'm quite sure he knows about that option :P

    exactly. as i build nexuiz on linux via cronjob every 4 hours, i wanted to have at least once the newest version on windows ;)
    It's quite funny to see the latest changes, so i'm building several projects by hand directly from SVN (KDE, XMoto, Xaos...) and use optimisation-flags for GCC (some are: -pipe -ffast-math -msse -msse2 -msse3) So i get some higher FPS in Nexuiz

    Thank you all for the tips, I'll try everything when i have some free time (erhm, when i go to a lan) or just build it in my windows-vm from the linux-host and copy it later...

    So far
    C167
    C167
    Member
     
    Posts: 29
    Joined: Wed Oct 31, 2007 5:24 pm

Sat Feb 09, 2008 11:58 pm

  • C167 wrote:Thank you all for the tips, I'll try everything when i have some free time (erhm, when i go to a lan) or just build it in my windows-vm from the linux-host and copy it later...

    Why don't you just cross-compile it using mingw if you're using a linux host? (official builds are also cross-compiled)
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

Mon Jun 30, 2008 10:10 pm

  • KadaverJack wrote:Why don't you just cross-compile it using mingw if you're using a linux host? (official builds are also cross-compiled)


    How do you do that? I'm running Kubuntu 99% of the time, but I do sometimes run Windows 2000. How do I compile from SVN for WIndows on a Linux host?
    Spaceman
    Alien trapper
     
    Posts: 264
    Joined: Tue Aug 28, 2007 10:53 am



Return to Nexuiz - Development




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest