Author Topic: The short and sweet guide to compiling SVN 895 on Windows  (Read 102079 times)

Rarely

  • Posts: 22
  • Turrets: +1/-0
Re: The short and sweet guide to compiling SVN 895 on Windows
« Reply #120 on: December 04, 2010, 11:56:24 pm »
,
« Last Edit: December 05, 2010, 08:29:26 am by Rarely »

cron

  • Donators
  • *
  • Posts: 197
  • Turrets: +22/-22
    • GrangerHub
Re: The short and sweet guide to compiling SVN 895 on Windows
« Reply #121 on: December 06, 2010, 01:47:51 am »
can someone pls update this so i can do things on my own without haveing to continueously haveing to ask someone else to do it.

Thanks in advance.

Because you asked nice: The NEW shorter and sweeter guide to compiling Tremulous on Windows.


XenoMann

  • Posts: 3
  • Turrets: +0/-0
Re: The short and sweet guide to compiling SVN 895 on Windows
« Reply #122 on: January 08, 2011, 04:51:15 pm »
my problem

Code: [Select]
petrik@pm-dell ~/trems/Tremulous (svn)-[trunk:895] % sh cross-make-mingw.sh
echo QVM tools not built when cross-compiling
QVM tools not built when cross-compiling
make targets B=build/release-mingw32-x86 CFLAGS=" -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes -DUSE_OPENAL=1 -DUSE_OPENAL_DLOPEN=1 -DUSE_CURL=1 -DCURL_STATICLIB -m32 -DUSE_LOCAL_HEADERS=1 -DSVN_VERSION=\\\"1.1.0_SVN895M\\\" -DNDEBUG -O3 -march=i586 -fomit-frame-pointer -ffast-math -falign-loops=2 -funroll-loops -falign-jumps=2 -falign-functions=2 -fstrength-reduce -MMD"
make[1]: Entering directory `/home/mann.sk/petrik/trems/Tremulous'
gcc  -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes -DUSE_OPENAL=1 -DUSE_OPENAL_DLOPEN=1 -DUSE_CURL=1 -DCURL_STATICLIB -m32 -DUSE_LOCAL_HEADERS=1 -DSVN_VERSION=\"1.1.0_SVN895M\" -DNDEBUG -O3 -march=i586 -fomit-frame-pointer -ffast-math -falign-loops=2 -funroll-loops -falign-jumps=2 -falign-functions=2 -fstrength-reduce -MMD -o build/release-mingw32-x86/client/win_gamma.o -c src/win32/win_gamma.c
In file included from src/win32/win_gamma.c:29:
src/win32/glw_win.h:24:4: error: #error You should not be including this file on this platform
In file included from src/win32/win_gamma.c:29:
src/win32/glw_win.h:32: error: expected specifier-qualifier-list before ‘WNDPROC’
In file included from src/win32/win_gamma.c:30:
src/win32/win_local.h:29:21: warning: windows.h: No such file or directory
src/win32/win_local.h:37:20: warning: dinput.h: No such file or directory
src/win32/win_local.h:38:20: warning: dsound.h: No such file or directory
src/win32/win_local.h:39:21: warning: winsock.h: No such file or directory
src/win32/win_local.h:40:19: warning: wsipx.h: No such file or directory
src/win32/win_local.h:41:20: warning: shlobj.h: No such file or directory
In file included from src/win32/win_gamma.c:30:
src/win32/win_local.h:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘MainWndProc’
src/win32/win_local.h:83: error: expected specifier-qualifier-list before ‘HINSTANCE’
src/win32/win_gamma.c: In function ‘WG_CheckHardwareGamma’:
src/win32/win_gamma.c:41: error: ‘HDC’ undeclared (first use in this function)
src/win32/win_gamma.c:41: error: (Each undeclared identifier is reported only once
src/win32/win_gamma.c:41: error: for each function it appears in.)
src/win32/win_gamma.c:41: error: expected ‘;’ before ‘hDC’
src/win32/win_gamma.c:45: error: ‘qwglSetDeviceGammaRamp3DFX’ undeclared (first use in this function)
src/win32/win_gamma.c:49: error: ‘hDC’ undeclared (first use in this function)
src/win32/win_gamma.c:49: warning: implicit declaration of function ‘GetDC’
src/win32/win_gamma.c:49: warning: implicit declaration of function ‘GetDesktopWindow’
src/win32/win_gamma.c:50: warning: implicit declaration of function ‘qwglGetDeviceGammaRamp3DFX’
src/win32/win_gamma.c:51: warning: implicit declaration of function ‘ReleaseDC’
src/win32/win_gamma.c:65: warning: implicit declaration of function ‘GetDeviceGammaRamp’
src/win32/win_gamma.c:73: warning: implicit declaration of function ‘HIBYTE’
src/win32/win_gamma.c: In function ‘GLimp_SetGamma’:
src/win32/win_gamma.c:138: error: ‘OSVERSIONINFO’ undeclared (first use in this function)
src/win32/win_gamma.c:138: error: expected ‘;’ before ‘vinfo’
src/win32/win_gamma.c:140: error: ‘glwstate_t’ has no member named ‘hDC’
src/win32/win_gamma.c:153: error: ‘vinfo’ undeclared (first use in this function)
src/win32/win_gamma.c:154: warning: implicit declaration of function ‘GetVersionEx’
src/win32/win_gamma.c:155: error: ‘VER_PLATFORM_WIN32_NT’ undeclared (first use in this function)
src/win32/win_gamma.c:181: error: ‘qwglSetDeviceGammaRamp3DFX’ undeclared (first use in this function)
src/win32/win_gamma.c:183: warning: implicit declaration of function ‘qwglSetDeviceGammaRamp3DFX’
src/win32/win_gamma.c:183: error: ‘glwstate_t’ has no member named ‘hDC’
src/win32/win_gamma.c:187: warning: implicit declaration of function ‘SetDeviceGammaRamp’
src/win32/win_gamma.c:187: error: ‘glwstate_t’ has no member named ‘hDC’
src/win32/win_gamma.c: In function ‘WG_RestoreGamma’:
src/win32/win_gamma.c:201: error: ‘qwglSetDeviceGammaRamp3DFX’ undeclared (first use in this function)
src/win32/win_gamma.c:203: error: ‘glwstate_t’ has no member named ‘hDC’
src/win32/win_gamma.c:207: error: ‘HDC’ undeclared (first use in this function)
src/win32/win_gamma.c:207: error: expected ‘;’ before ‘hDC’
src/win32/win_gamma.c:209: error: ‘hDC’ undeclared (first use in this function)
make[1]: *** [build/release-mingw32-x86/client/win_gamma.o] Error 1
make[1]: Leaving directory `/home/mann.sk/petrik/trems/Tremulous'
make: *** [build_release] Error 2

gimhael

  • Posts: 546
  • Turrets: +70/-16
Re: The short and sweet guide to compiling SVN 895 on Windows
« Reply #123 on: January 08, 2011, 08:27:30 pm »
Tremulous 895 is 5 years old. If you use a slightly newer version which is based on SDL (anything > 976), cross-compiling should work out of the box.