Tremulous Forum
Mods => Modding Center => Topic started by: Risujin on January 28, 2007, 05:38:52 am
-
Follow these steps to compile the Tremulous client on Windows:
1.) Go to http://www.mingw.org/download.shtml
- Download MSys EXE (http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download) under Current
- Download MinGW EXE (http://prdownloads.sf.net/mingw/MinGW-3.1.0-1.exe?download) under Previous
- Download w32api-3.6.tar.gz (http://prdownloads.sf.net/mingw/w32api-3.6.tar.gz?download) under Current
2.) Go to http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91 and
download svn-1.4.2-setup.exe (or the latest *-setup.exe for svn)
3.) If your papers are in order you can get the DirectX SDK from Microsoft (http://www.microsoft.com/downloads/details.aspx?FamilyID=9216652f-51e0-402e-b7b5-feb68d00f298&displaylang=en)
Alternatively, you can grab the two header files you need out of here from my website (http://pub.risujin.org/tremulous/tremulous-dxsdk.zip).
4.) Install subversion, use default paths etc
5.) Install MSys, but NOT to a path with a space in it! That means NO "Program Files", put it in C:\MSys
6.) Install MinGW to your C:\MSys\MinGW (folder should exist already)
7.) Install the MinGW Windows API by extracting it into the C:\MSys\mingw directory. You can do this either with WinRAR (http://www.rarsoft.com/download.htm) or through the MSys terminal using Unix tar commands:
- Move the win32-api tar file to the C:\MSys\mingw directory.
- Open the MSys link on your desktop or start C:\MSys\msys.bat
- Change to the mingw directory ('cd ../../mingw' should do it)
- Untar the tar file ('tar xzf w32api-3.6.tar.gz')
That should work though I personally used WinRAR.
8.) Install the DirectX SDK if you downloaded it and copy dinput.h and dsound.h from either the DirectX SDK include folder or from my archive to MSys\MinGW\include
9.) Download the latest Tremulous SVN code by opening a console, cd'ing to your MinGW home folder ('cd C:\MinGW\home\User'), and typing the SVN command:
svn co -r 895 svn://svn.icculus.org/tremulous/trunk Tremulous
(if you feel confident, you can remove the '-r 895' part to download the latest SVN, but safety is not guaranteed)
If your code is not in a subdirectory of your MinGW home folder you will need to mount it (skip this otherwise):
- Open C:\MSys\etc\fstab.sample
- Comment out (add #s) to the two lines at the bottom
- Add your Tremulous SVN folder and mount point (e.g. 'C:\Tremulous /home/User/Tremulous')
- Open your mount point in the MSys directory tree and create the folder (MSys\home\User\Tremulous)
- Rename fstab.sample to fstab
10.) If you let it, MSys has created a shortcut on your desktop, start it; if not start C:\MSys\msys.bat
11.) cd to your Tremulous mount point ('cd Tremulous')
12.) If you don't want to compile the QVMs create a Makefile.local file that contains 'BUILD_GAME_QVM=0', otherwise add 'INCLUDE=' and 'LIBRARY=' (original fix (http://code3arena.planetquake.gamespy.com/compilers.shtml#stdinerr)). Add 'USE_CURL=1' if you want WWW redirection support.
13.) Run make ('make' NOT 'mingw32-make' which doesn't work for some reason...)
14.) If all went well, your brand new tremulous.x86.exe and/or QVMs are waiting for you in build/release-mingw-x86/
I couldn't compile game QVMs this way as it would hang when running one of the Quake QVM tools. This wasn't a problem for me as I can build the QVMs from Linux.
There are several mysteries about this process. I don't understand why it compiled without the OpenAL or SDL libraries (though they may have defaulted to off). Also, why are two DirectX headers necessary when the game never links to DirectX libraries?
If you also compile on Linux in the same directory, you may receive an error about missing q3asm.exe or the like. The problem is you already have the binaries built so the Makefile doesn't think it needs to remake them (for a different platform!!). You need to 'make clean' under Linux or manually enter each directory and delete the Linux binaries.
-
: ) i need those 2 directx files ..
A bit off topic.. but would you plz take a look and tell me what s wrong, i run "gmake" under freebsd and after compiling some files .. these happens .. the sources file comes from the offical installation. I looked at the qql.h and tr_local.h files and discovered nothing wrong..
src/jpeg-6/../renderer/qgl.h:583: error: syntax error before '*' token
src/jpeg-6/../renderer/qgl.h:584: error: syntax error before '*' token
src/jpeg-6/../renderer/qgl.h:584: warning: function declaration isn't a prototype
src/jpeg-6/../renderer/qgl.h:585: error: syntax error before '*' token
src/jpeg-6/../renderer/qgl.h:585: warning: function declaration isn't a prototype
In file included from src/jpeg-6/jerror.c:22:
src/jpeg-6/../renderer/tr_local.h:98: error: syntax error before "GLuint"
gmake[1]: *** [build/release-freebsd-x86/client/jerror.o] Error 1
gmake[1]: Leaving directory `/usr/local/httpdir/kyoko/tremulous-1.1.0-src'
gmake: *** [build_release] Error 2
If i do a pure "make" , the following comes out
$ make
"Makefile", line 17: Missing dependency operator
"Makefile", line 20: Need an operator
"Makefile", line 22: Need an operator
"Makefile", line 24: Missing dependency operator
"Makefile", line 25: Missing dependency operator
"Makefile", line 27: Need an operator
"Makefile", line 28: Need an operator
"Makefile", line 44: Need an operator
"Makefile", line 46: Need an operator
"Makefile", line 48: Need an operator
-
: ) i need those 2 directx files ..
Link added.
A bit off topic.. but would you plz take a look and tell me what s wrong, i run "gmake" under freebsd and after compiling some files .. these happens .. the sources file comes from the offical installation. I looked at the qql.h and tr_local.h files and discovered nothing wrong..
You need GNU make, I don't have FreeBSD so I can't tell you if gmake or make is it. Try gmake --version or make --version to tell.
As for the headers you need SDL and OpenAL development files, see if you can get those packages. You probably also need OpenGL (Mesa) development headers and libraries too.
-
Don't you want to make the qvm files for your mod so you load the original tremulous and point the game to your own vms.pk3 for the mod. Then when people come and go from your server, they don't have to quit and restart the game?
-
Don't you want to make the qvm files for your mod so you load the original tremulous and point the game to your own vms.pk3 for the mod. Then when people come and go from your server, they don't have to quit and restart the game?
I'm not sure I understand what you're saying. You mean switch the mod back to base after disconnecting from a server?
-
http://svn.icculus.org/*checkout*/quake3/trunk/README
-
Yes, the tjw mod sits in a pk3 file in my base folder containing the three qvm files. When I go to his server, it tells my computer to use tjw.pk3->vms/"qvm files", then when I leave, my computer goes back to using the original qvm files. I dont really know how he pointed his server to use them, but I haven't tried yet.
-
Ty Risujin !
Tried but I got an error about screensaver :*\
http://pastebin.ca/333340
-
Tried but I got an error about screensaver :*\
It looks like a Microsoft API definition, try installing the MinGW Microsoft API package (I forgot to mention it in the instructions!)
-
Tried but I got an error about screensaver :*\
It looks like a Microsoft API definition, try installing the MinGW Microsoft API package (I forgot to mention it in the instructions!)
Nice! It works, just recompiled with QVM and the previous thread about it by Vcxzet :
http://tremulous.net/phpBB2/viewtopic.php?t=2672&start=0&postdays=0&postorder=asc&highlight=mingw
id, put build/.../vm/ and ui/ folders in zip vms-1.1.1.pk3, into base/ ....
I dont understand at all what I am doing but it s worky ;) except no online server with latest svn version (saw tremdev.tjw.org)
-
Tried but I got an error about screensaver :*\
It looks like a Microsoft API definition, try installing the MinGW Microsoft API package (I forgot to mention it in the instructions!)
...some deprecated API def look for ioq3 svn logs
(me pokes yarou ) :D
-
The correct API in this case would be SPI_SETSCREENSAVERRUNNING.
Quick fix:
Edit src/win32/win_wndproc.c and add
#ifndef SPI_SCREENSAVERRUNNING
#define SPI_SCREENSAVERRUNNING SPI_SETSCREENSAVERRUNNING
#endif
towards the beginning of the file.
Alternately, you can manually search and replace all SPI_SCREENSAVERRUNNING with SPI_SETSCREENSAVERRUNNING.
A bit off topic.. but would you plz take a look and tell me what s wrong, i run "gmake" under freebsd and after compiling some files .. these happens .. the sources file comes from the offical installation. I looked at the qql.h and tr_local.h files and discovered nothing wrong..
Simply put, gmake is:
ln -sf /usr/bin/make gmake
As far as I know, Tremulous compiles fine on FreeBSD, using BSD Make...
Try contacting the ports maintainer for make, and query that person on what to do next.
-
the link to ur site 4 the 2 files u need doesnt work it just brings u into some thing that says related links for Missrani.com are
then theres a long list of sites
how do i get these files
-
the link to ur site 4 the 2 files u need doesnt work it just brings u into some thing that says related links for Missrani.com are
I changed domains ... right I forgot just how much stuff I had hosted on that site! Will fix in a minute.
-
When I run make, it all goes well for a while then I get this error:
make[1]: *** [build/release-mingw32-x86/client/win_input.o] Error 1
make[1]: Leaving directory `/mingw/Tremulous'
make: *** [build_release] Error 2
-
When I run make, it all goes well for a while then I get this error:
make[1]: *** [build/release-mingw32-x86/client/win_input.o] Error 1
make[1]: Leaving directory `/mingw/Tremulous'
make: *** [build_release] Error 2
That's not the error. Look above. Did you try to apply a patch?
-
When I run make, it all goes well for a while then I get this error:
make[1]: *** [build/release-mingw32-x86/client/win_input.o] Error 1
make[1]: Leaving directory `/mingw/Tremulous'
make: *** [build_release] Error 2
That's not the error. Look above. Did you try to apply a patch?
Oh :oops:
I figured it out after I looked at the beginning. dinput and dsound extracted to the wrong folder.
EDIT: Now I can't get the .exe to run. It says:
Unknown extension for ui/menus.txt
WARNING: couldn't open music file ui/menus.txt
recursive error after: menu file not found: ui/menus.txt, using default
-
EDIT: Now I can't get the .exe to run. It says:
Unknown extension for ui/menus.txt
WARNING: couldn't open music file ui/menus.txt
recursive error after: menu file not found: ui/menus.txt, using default
If you compiled SVN without the backport patch (http://www.mercenariesguild.net/patches), you will need to use SVN VMs. The 1.1 PK3s in your base (and probably mod) folders are not compatible.
-
EDIT: Now I can't get the .exe to run. It says:
Unknown extension for ui/menus.txt
WARNING: couldn't open music file ui/menus.txt
recursive error after: menu file not found: ui/menus.txt, using default
If you compiled SVN without the backport patch (http://www.mercenariesguild.net/patches), you will need to use SVN VMs. The 1.1 PK3s in your base (and probably mod) folders are not compatible.
Oh ok thanks for the help, I'll add the patch and try again.
-
Follow these steps to compile the Tremulous client on Windows:[list=1]- Go to http://www.mingw.org/download.shtml
- Download MSys EXE (http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download) under Current
- Download MinGW EXE (http://prdownloads.sf.net/mingw/MinGW-3.1.0-1.exe?download) under Previous
- Download w32api-3.6.tar.gz (http://prdownloads.sf.net/mingw/w32api-3.6.tar.gz?download) under Current
- Go to http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
- Download svn-1.4.2-setup.exe (or the latest *-setup.exe for svn)
- If your papers are in order you can get the DirectX SDK from Microsoft (http://www.microsoft.com/downloads/details.aspx?FamilyID=9216652f-51e0-402e-b7b5-feb68d00f298&displaylang=en)
Alternatively, you can grab the two header files you need out of here from my website:
http://risujin.org/pub/tremulous/tremulous-dxsdk.zip
- Install subversion, use default paths etc
- Install MSys, but NOT to a path with a space in it! That means NO "Program Files", put it in C:\MSys
- Install MinGW to your C:\MSys\MinGW (folder should exist already)
- Install the MinGW Windows API by extracting it into the C:\MSys\mingw directory. You can do this either with WinRAR (http://www.rarsoft.com/download.htm) or through the MSys terminal using Unix tar commands:
[list=1] - Move the win32-api tar file to the C:\MSys\mingw directory.
- Open the MSys link on your desktop or start C:\MSys\msys.bat
- Change to the mingw directory ('cd ../../mingw' should do it)
- Untar the tar file ('tar xzf w32api-3.6.tar.gz')
[/list:o]That should work though I personally used WinRAR. :)
- Install the DirectX SDK if you downloaded it
- Copy dinput.h and dsound.h from either the DirectX SDK include folder or from my archive to MSys\MinGW\include
- Download the latest Tremulous SVN code by opening a console, cd'ing to your MinGW home folder ('cd C:\MinGW\home\User'), and typing the SVN command:
svn co -r 895 svn://svn.icculus.org/tremulous/trunk Tremulous
(if you feel confident, you can remove the '-r 895' part to download the latest SVN, but success is not guaranteed :))
If your code is not in a subdirectory of your MinGW home folder you will need to mount it (skip this otherwise):[list=1]- Open C:\MSys\etc\fstab.sample
- Comment out (add #s) to the two lines at the bottom
- Add your Tremulous SVN folder and mount point (e.g. 'C:\Tremulous /home/User/Tremulous')
- Open your mount point in the MSys directory tree and create the folder (MSys\home\User\Tremulous)
- Rename fstab.sample to fstab[/list:o]
- If you let it, MSys has created a shortcut on your desktop, start it; if not start C:\MSys\msys.bat
- cd to your Tremulous mount point ('cd Tremulous')
- Create a Makefile.local
- Edit your Makefile.local to read 'BUILD_GAME_QVM=0' if you don't want to compile the QVMs otherwise add 'INCLUDE=' and 'LIBRARY=' (original fix (http://code3arena.planetquake.gamespy.com/compilers.shtml#stdinerr)). Add 'USE_CURL=1' if you want WWW redirection support.
- Run make ('make' NOT 'mingw32-make' which doesn't work for some reason...)
- If all went well, your brand new tremulous.x86.exe is waiting for you in build/release-mingw-x86/
[/list:o]I couldn't compile game QVMs this way as it would hang when running one of the Quake QVM tools. This wasn't a problem for me as I can build the QVMs from Linux.
There are several mysteries about this process. I don't understand why it compiled without the OpenAL or SDL libraries (though they may have defaulted to off). Further, why are two DirectX headers necessary when the game never links to DirectX libraries?
for step 5) go to http://tortoisesvn.tigris.org/
for step 6) download tortoise svn
for step 7) nothing
for step 8 ) install tortoise svn - you will need to restart
for step 12) nothing - no directx sdk needed
for step 13) Download http://www.libsdl.org/extras/win32/common/directx-devel.tar.gz
and untar it into your MinGW directory (usually C:\MinGW).
for step 14) create a folder for svn download "c:\tremulous_svn" for example
right click the folder and select svn checkout
follow the sub steps 1-5
type svn://svn.icculus.org/tremulous/trunk
as the svn address
for step 16) "cd /c/tremulous_svn" if you used "c:\tremulous_svn"
for step 17) optional
for step 18 ) optional - curl is on by default
you can use -e switch to set compile options for ex:
"make -e BUILD_CLIENT=0 BUILD_CLIENT_SMP=0 BUILD_SERVER=0 BUILD_GAME_SO=0 BUILD_GAME_QVM=1"
no client/smp client/server/game dll but game qvm
-
Hmm... I need help compiling the backport with Mingw32 (gcc 3.4.5)
The last few lines is an curl issue which i get:
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0xd6): undefined reference to `curl_multi_cleanup'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x1b5): undefined reference to `curl_easy_init'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x20b): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x23a): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x258): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x2b7): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x2bc): undefined reference to `curl_version'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x2ed): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x30b): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x329): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x347): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x365): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x382): more undefined references to `curl_easy_setopt' follow
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x3a5): undefined reference to `curl_multi_init'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x3c2): undefined reference to `curl_easy_cleanup'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x3e2): undefined reference to `curl_easy_cleanup'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x420): undefined reference to `curl_multi_remove_handle'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x42d): undefined reference to `curl_multi_cleanup'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x457): undefined reference to `curl_multi_add_handle'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x495): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x4b6): undefined reference to `curl_multi_perform'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x4da): undefined reference to `curl_multi_info_read'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x516): undefined reference to `curl_easy_getinfo'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x521): undefined reference to `curl_easy_strerror'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x582): undefined reference to `curl_multi_cleanup'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x5cb): undefined reference to `curl_multi_perform'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x610): undefined reference to `curl_easy_cleanup'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x628): undefined reference to `curl_multi_remove_handle'
collect2: ld returned 1 exit status
make[1]: *** [build/release-mingw32-x86/tremulous.x86.exe] Error 1
make[1]: Leaving directory `/c/Program Files/Tremulous/tremulous-1.1.0-src'
make: *** [build_release] Error 2
I DO have the mingw32 cURL 7.14 development package.
-
Hmm... I need help compiling the backport with Mingw32 (gcc 3.4.5)
The last few lines is an curl issue which i get:
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0xd6): undefined reference to `curl_multi_cleanup'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x1b5): undefined reference to `curl_easy_init'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x20b): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x23a): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x258): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x2b7): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x2bc): undefined reference to `curl_version'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x2ed): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x30b): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x329): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x347): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x365): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x382): more undefined references to `curl_easy_setopt' follow
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x3a5): undefined reference to `curl_multi_init'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x3c2): undefined reference to `curl_easy_cleanup'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x3e2): undefined reference to `curl_easy_cleanup'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x420): undefined reference to `curl_multi_remove_handle'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x42d): undefined reference to `curl_multi_cleanup'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x457): undefined reference to `curl_multi_add_handle'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x495): undefined reference to `curl_easy_setopt'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x4b6): undefined reference to `curl_multi_perform'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x4da): undefined reference to `curl_multi_info_read'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x516): undefined reference to `curl_easy_getinfo'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x521): undefined reference to `curl_easy_strerror'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x582): undefined reference to `curl_multi_cleanup'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x5cb): undefined reference to `curl_multi_perform'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x610): undefined reference to `curl_easy_cleanup'
build/release-mingw32-x86/client/cl_curl.o:cl_curl.c:(.text+0x628): undefined reference to `curl_multi_remove_handle'
collect2: ld returned 1 exit status
make[1]: *** [build/release-mingw32-x86/tremulous.x86.exe] Error 1
make[1]: Leaving directory `/c/Program Files/Tremulous/tremulous-1.1.0-src'
make: *** [build_release] Error 2
I DO have the mingw32 cURL 7.14 development package.
it looks like it can't find any of the curl headers, so i would make sure that you have them in the right place, or if they are in the right place, you may have to edit the makefile to add -I/path/to/curl. (on a side note, if you have a *nix box, i've always found compiling my windows copy of tremulous on it simpler than setting up mingw on windows)
-
cURL headers? i thought the backport patch created them in the proper folders. well I also have it in the mingw direcctory.
So in my case I use "-I /c/MinGW/include/curl"?
Oh yeah, and since I = n00b
Is it
BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes -I/c/MinGW/include/curl
under mingw?
-
yes, just make sure you edit the right section of the makefile (search for ifeq($(PLATFORM),mingw32) )
-
Oh yeah, since i'm using this patch:
http://trem.tjw.org/backport/tremulous-svn755.patch
Is http://v1.risujin.org/tremulous/#backport a newer version of the backport?
-
http://trem.tjw.org/backport/tremulous-svn755.patch
Is http://v1.risujin.org/tremulous/#backport a newer version of the backport?
On the site it says: SVN931
-
I compiled it no errors, but the executable goes to a gray screen instead of the intro movie and is non functional.
-
I compiled it no errors, but the executable goes to a gray screen instead of the intro movie and is non functional.
if you compile an unpatched client it will just crash due to lack of a proper ui.qvm.
(btw thanks for bumping this, i was looking for it so i could sticky it)
-
I Just want to say "thank you Risujin" :)
The title "sweet guide" is perfectly adequate.
PS : For those like me who have problems with the font displayed by the default MSys console (rxvt.exe), you can follow the indications given in msys.bat and use sh.exe.
If you don't want to use rxvt then rename the file rxvt.exe to something else. Then sh.exe will be used instead.
-
Would cygwin work instead of msys?
Oh and i get error 2?
-
Would cygwin work instead of msys?
CygWin will compile QVMs normally (just type 'make', Unix-style). However, if you try to compile the client or server I believe it will only run out of CygWin.
-
CygWin will compile QVMs normally (just type 'make', Unix-style). However, if you try to compile the client or server I believe it will only run out of CygWin.
It will work as long as it can find cygwin1.dll.
-
CygWin will compile QVMs normally (just type 'make', Unix-style). However, if you try to compile the client or server I believe it will only run out of CygWin.
It will work as long as it can find cygwin1.dll.
I don't know if it works for trem specifically, but generally in cygwin if you add the --mno-cygwin flag when compiling it will static link that dll and work without it.
-
I don't know if it works for trem specifically, but generally in cygwin if you add the --mno-cygwin flag when compiling it will static link that dll and work without it.
Not exactly, -mno-cygwin tells GCC to build native Win32 app which won't use cygwin API. That should work for Tremulous since it is completely ported in the first place. However, the linker will die on pure UNIX code. cygwin1.dll has no statically linked substitute at the moment.
-
I don't know if it works for trem specifically, but generally in cygwin if you add the --mno-cygwin flag when compiling it will static link that dll and work without it.
Not exactly, -mno-cygwin tells GCC to build native Win32 app which won't use cygwin API. That should work for Tremulous since it is completely ported in the first place. However, the linker will die on pure UNIX code. cygwin1.dll has no statically linked substitute at the moment.
Fair enough. Thanks for the correction.
-
...
/bin/sh.exe: svnversion: command not found
make[2]: Entering directory `/development/tremulous'
CC src/client/cl_cgame.c
gcc.exe: no input files
make[2]: *** [build/release-mingw32-x86/client/cl_cgame.o] Error 1
make[2]: Leaving directory `/development/tremulous'
make[1]: *** [targets] Error 2
make[1]: Leaving directory `/development/tremulous'
make: *** [release] Error 2
even when i go directly into the directory and type "gcc cl_cgame.c" it says "gcc.exe: no input files", what is wrong with it?
EDIT: fixed, i messed up with the fstab :oops:
-
Thanks Risujin.
-
Hey, great guide, thanks!
Having a problem, though. I went through your steps precisely, and got it to compile the game.qvm like I was trying to get it to do. However, now I need to be able to run it in a server. I tried running it with the tjw dedicated server, but as expected I got "G_ParseSpawnVars: found when expecting {" I know this means that I have a mismatched game.qvm and server, but how do I get them matched? Can I compile a server to run my game.qvm? I've also heard people referencing patching, but none of them seem to be for SVN 895. Should I even be using SVN 895?
Also... sorry, but how exactly do you apply a patch? I know it's a command (right?), but when and how do you use it? Thanks.
-
Can I compile a server to run my game.qvm?
I'd say something but I don't want to be more rude than usual... :roll:
-
I'd say something but I don't want to be more rude than usual... :roll:
That doesn't sound good... Sorry if my question was overly ignorant hehe. I'm learning.
Go ahead and say whatever rude thing you want, as long as it is reasonably helpful.
-
Can I compile a server to run my game.qvm?
Edit the Makefile or create a Makefile.local in the same directory of the source and change BUILD_SERVER= to BUILD_SERVER=1. You can also create tremded using BUILD_CLIENT=0 BUILD_SERVER=1 BUILD_GAME_SO=0 BUILD_GAME_QVM=(0 or 1, often you want a qvm to accompany tremded) as make parameters at compile time.
I've also heard people referencing patching, but none of them seem to be for SVN 895. Should I even be using SVN 895?
You should base your svn qvm upon the largest patch you want to apply, or if you're starting with a fresh qvm, the latest svn. For example, if you wanted Lakitu's new 5.x release, use svn 966. Svn 966 is also the latest qvm revision, so it's a good choice to use if just starting out. Risujin used 895 presumably because it was a recent release at the time + he has a couple patches based on it. Note that compiling patches from various svn revisions will often cause errors.
Also... sorry, but how exactly do you apply a patch? I know it's a command (right?), but when and how do you use it? Thanks.
patch --help.
Often, applying a patch will look something like
patch -p0 < patchname.patch
-
Can I compile a server to run my game.qvm?
Edit the Makefile or create a Makefile.local in the same directory of the source and change BUILD_SERVER= to BUILD_SERVER=1. You can also create tremded using BUILD_CLIENT=0 BUILD_SERVER=1 BUILD_GAME_SO=0 BUILD_GAME_QVM=(0 or 1, often you want a qvm to accompany tremded) as make parameters at compile time.
The default is build everything supported by target platform. :roll:
-
Can I compile a server to run my game.qvm?
Edit the Makefile or create a Makefile.local in the same directory of the source and change BUILD_SERVER= to BUILD_SERVER=1. You can also create tremded using BUILD_CLIENT=0 BUILD_SERVER=1 BUILD_GAME_SO=0 BUILD_GAME_QVM=(0 or 1, often you want a qvm to accompany tremded) as make parameters at compile time.
Ok, in my defense, I tried that before I posted. However, it doesn't seem to work for me. I assume it's supposed to compile in the /build/release/ded folder, but that folder is empty (I've checked everything else just to be sure).
The code for my makefile is as it should be, I'm pretty sure:
BUILD_CLIENT=0
BUILD_CLIENT_SMP=0
BUILD_SERVER=1
BUILD_GAME_SO=0
BUILD_GAME_QVM=1
Any other ideas on what the problem could be?
EDIT: Just to try to figure it out, I turned off all the options except for BUILD_SERVER. Here's the output:
make -C src/tools/lcc install
make[1]: Entering directory `/c/tremmod/src/tools/lcc'
install -s -m 0755 build-mingw32-x86/q3lcc.exe ../
install -s -m 0755 build-mingw32-x86/q3cpp.exe ../
install -s -m 0755 build-mingw32-x86/q3rcc.exe ../
make[1]: Leaving directory `/c/tremmod/src/tools/lcc'
make -C src/tools/asm install
make[1]: Entering directory `/c/tremmod/src/tools/asm'
install -s -m 0755 q3asm.exe ../
make[1]: Leaving directory `/c/tremmod/src/tools/asm'
make targets B=build/release-mingw32-x86 CFLAGS=" -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes -DUSE_OPENAL=1 -DUSE_OPENAL_DLOPEN=1 -m32 -DUSE_LOCAL_HEADERS=1 -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 `/c/tremmod'
make[1]: Nothing to be done for `targets'.
make[1]: Leaving directory `/c/tremmod'
It created a directory structure but put no files in it. Ideas?
-
Windows don't support TTY terminals in the way required by tremded. Simply compile tremulous.exe, rename it to tremded.exe and run it with +set dedicated 1 or +set dedicated 2. :roll:
-
Windows don't support TTY terminals in the way required by tremded. Simply compile tremulous.exe, rename it to tremded.exe and run it with +set dedicated 1 or +set dedicated 2. :roll:
YESSSSS! IT IS ALIVE!!!
Yeah, that worked. Thanks a bunch!
-
Meh, it doesnt work with cygwin, as it claims that the platform is not supported.
(trying to make a qvm)
-
oh god why do you want to compile it on cygwin
-
oh god why do you want to compile it on cygwin
Perhaps because it's 10-click installation and you're ready to compile?
-
oh god why do you want to compile it on cygwin
Perhaps because it's 10-click installation and you're ready to compile?
eh? mingw is way easier and it generates windows native binary
-
eh? mingw is way easier and it generates windows native binary
MSYS isn't, Cygwin does too.
-
eh? mingw is way easier and it generates windows native binary
MSYS isn't, Cygwin does too.
ok go build us cygwin binaries lol
-
/bin/sh.exe: svnversion: command not found
/bin/sh.exe: svnversion: command not found
make[1]: Entering directory `/c/SVN966'
make -C src/tools/lcc install
make[2]: Entering directory `/c/SVN966/src/tools/lcc'
gcc -O2 -Wall -fno-strict-aliasing -MMD -DTEMPDIR=\"/tmp\" -DSYSTEM=\"\" -c -Isrc -o build-mingw32-x86/etc/lcc.o etc/lcc.c
make[2]: gcc: Command not found
make[2]: *** [build-mingw32-x86/etc/lcc.o] Error 127
make[2]: Leaving directory `/c/SVN966/src/tools/lcc'
make[1]: *** [tools] Error 2
make[1]: Leaving directory `/c/SVN966'
make: *** [release] Error 2
For some reason i cant compile because i get this msg both on MSys and Linux.
BTW, this is using pure SVN966.
-
maybe you didnt set the mingw path :/
-
And exactly where is MinGW suppose to be. I'm confused with the replies. I get C:/MinGW and C:/MSys/MinGW.
(Prepares for flames)
-
http://tremulous.net/phpBB2/viewtopic.php?t=2672&highlight=fstab
-
Thank you for pointing out my mistake.
-
hmmm, i compiled the source code with no errors, but got this error when i moved the executable into /tremulous and clicked on it....
(http://imn2rc.com/sdl.dll.jpg)
any ideas on how to get this file, or why it needs it anywayz?
i know, i probably should get linux, but i wanna play on windows!!
-
you should just use a precompiled binary for playing tremulous, even if you got that client to start (there is another problem after you give it sdl), it won't connect to 1.1 servers.
-
well, if u arent gonna tell me how to fix it, then will u atleast give me the precompiled exe? because i wanted to have it compiled with some patches...
i got it to work with svn 901, but some patches didnt work....
-
If you couldn't manage to get all the patches you wanted to apply correctly, chances are your client is already unplayable, among other reasons (no backporting). I suggest you do a search of the forums for precompiled binaries, you'll be able to find a number of them which are more recent and feature-ladden than TJW's.
-
hmm, ok, ill search around.
but when i did svn 1044, i did backport it with the 1044backport patch (http://www.mercenariesguild.net/patches/?do=details&task_id=2), and i only applied one patch (http://www.mercenariesguild.net/patches/?do=details&task_id=120&histring=framebuffer), and there were no errors watsoever, in patching and compiling.... i guess i should stop obsessing over it.... lol :D
EDIT: wooo, it worked! i found the sdl.dll here (http://www.libsdl.org/release/SDL-1.2.13-win32.zip) and it worked, but just as well as the binary i already have..... the new graphics phailed...
-
Ok i got tortiosesvn and cygwin.
I got it to start the make process.
It goes through it,
$ make
make -C
yadda yadda
errors like these
operating system not supported(im on windows XP)
architecture not supported(what does this mean?)
ID_INLINE not defined
PATH_SEP not defined
DLL_EXT not defined
endianness not defined
PATH_SEP undeclared
then at the end
make: *** [tools] error 2
how do i fix these?
-
a tremulous executable built with cygwin is almost useless.
-
What do you need to do differentially to make an usable executable that you can play using?
-
What do you need to do differentially to make an usable executable that you can play using?
(http://img84.imageshack.us/img84/5259/makefileis4.png)
-
The newest svn from tremulous use Protocol 70.
Why the developer don't use this svn to make for us Tremulous 1.2.
This is Tremulous 1.2. :-\
-
9.) Download the latest Tremulous SVN code by opening a console, cd'ing to your MinGW home folder ('cd C:\MinGW\home\User'), and typing the SVN command:
svn co -r 895 svn://svn.icculus.org/tremulous/trunk Tremulous
(if you feel confident, you can remove the '-r 895' part to download the latest SVN, but safety is not guaranteed)
When you say console I assume you mean msys.bat problem is...when I open it...it closes immediantly.
EDIT: Problem solved cmd prompt :]
EDIT EDIT:
3.) Run make ('make' NOT 'mingw32-make' which doesn't work for some reason...)
I ran make in cmd prmpt (Bin/Make.exe) and it comes with the error:
"AllocationBase 0x0, BaseAddress 0x715B0000, RegionSize 0x150000, State 0x10000
"make.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 6"
-
cygwin won't produce a useful windows executable, you need mingw/msys
-
Wow that's scary because I just noticed yea it said cygwin in the error...but I don't use cygwin I have Msys and MinGW :-\
-
Is it possible to upload a compiled file o.O
I mean its so complicated to compile
I need some help on the Neros crazy mod for my server but cant compile.
-
If I run the tremulous.x86, I only see this on my screen:
(http://img514.imageshack.us/img514/2174/tremulousx86exebd0.jpg)
-
9.) Download the latest Tremulous SVN code by opening a console, cd'ing to your MinGW home folder ('cd C:\MinGW\home\User'), and typing the SVN command:
svn co -r 895 svn://svn.icculus.org/tremulous/trunk Tremulous
(if you feel confident, you can remove the '-r 895' part to download the latest SVN, but safety is not guaranteed)
Isn't it spsed to be C:\msys\home\User ?
For some reason using 'svn co svn://svn.icculus.org/tremulous/trunk Tremulous' worked only once for me, now I get 'svn' is not recognized as an internal or external command, operable program or batch file ???
EDIT: nvm, it's cuz windows sux, a restart fixt it.
But how can I get lakitu's svn/whatever? EDIT: already got that too...
-
quick question, is it possible to keep the sdl and curl stuff client side? like in tjw's backport you are not required to have the sdl.dll to run trem, but when my friend compiles it he has to have either of those for it to work :\ anyway to stop that?
-
quick question, is it possible to keep the sdl and curl stuff client side? like in tjw's backport you are not required to have the sdl.dll to run trem, but when my friend compiles it he has to have either of those for it to work :\ anyway to stop that?
ioq3 has replaced the directinput and directsound code with sdl, no way around it other than using older clients.
-
install -s -m 0755 build-mingw32-x86/q3lcc.exe ../
make[1]: execvp: install: Permission denied
make[1]: *** [install] Error 127
make[1]: Leaving directory `/home/John/Tremulous/src/tools/lcc'
make: *** [tools] Error 2
any ideas?
-
Permission denied
Get permission. Where are you trying to write to? Either you need to be root or you borked your permissions or your doing something stupid.
-
//edit TY risijuin for ur leetness of a guide.
it was a problem with windows vista, and its really un-needed crappy security system that can be easily overrided.
http://downloads.sourceforge.net/mingw/coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2
fixed my problems.
just untar and replaces the bin folder.
-
I've been trying to compile the tremulous client on windows with mingw and after it finishes i run tremulous.x86.exe and the console opens but it is blank and displays only three characters on the first line and after a few seconds it crashes. can anyone help? ???
-
Post your error, since nobody can help you like this.
-
It looks like this:
(http://s3.supload.com/thumbs/default/window.PNG) (http://s3.supload.com/free/window.PNG/view/)
Image Hosting (http://www.supload.com)
-
1.1.0_SVN895 win_mingw-x86 Jun 30 2008
----- FS_Startup -----
Current search path:
C:\Users\Brian\AppData\Roaming\Tremulous/base
C:\MSys\Tremulous\build\release-mingw32-x86/base
----------------------
0 files in pk3 files
Couldn't load default.cfg
What do I do now?
If I have to apply a patch, can you explain.
Also thanks for this. I really want to get involved on some level.
-
1.1.0_SVN895 win_mingw-x86 Jun 30 2008
----- FS_Startup -----
Current search path:
C:\Users\Brian\AppData\Roaming\Tremulous/base
C:\MSys\Tremulous\build\release-mingw32-x86/base
----------------------
0 files in pk3 files
Couldn't load default.cfg
What do I do now?
If I have to apply a patch, can you explain.
Also thanks for this. I really want to get involved on some level.
first you run it from the tremulous install folder, it won't run from the folder you built it in, second you post the actual error that causes problems, not the non-fatal error.
-
edit: I got it to work.
Now what, can I start modifying things?
-
9.) Download the latest Tremulous SVN code by opening a console, cd'ing to your MinGW home folder ('cd C:\MinGW\home\User'), and typing the SVN command:
svn co -r 895 svn://svn.icculus.org/tremulous/trunk Tremulous
(if you feel confident, you can remove the '-r 895' part to download the latest SVN, but safety is not guaranteed)
Isn't it spsed to be C:\msys\home\User ?
::)
-
i followed it with r895, make had no errors
i copied the result on top of the 1.1.0 release, deleted vms-1.1.0.pk3 to resolve a conflict
(all files and folders from
C:\msys\1.0\home\user\Tremulous\build\release-mingw32-x86
to
C:\Program Files\Tremulous
)
tried to create a server from the in game gui, got the following error,
i successfully started a server with
tremulous.x86.exe" +set dedicated 1 +exec server.cfg
when i tried to connect to it i got the same error
Loading vm file vm/ui.qvm...
Failed
...
VM_Create on UI failed
C:\Program Files\Tremulous\base\vm\ui.qvm
and
C:\msys\1.0\home\user\Tremulous\build\release-mingw32-x86\base\vm\ui.qvm
does exist
edit: 5 days later i have my solution:
+set sv_pure 0 +set vm_cgame 0 +set vm_game 0 +set vm_ui 0
-
The SVN people now use MSI installers, so the file you want to download will be named something like: Setup-Subversion-1.5.2.en-us.msi
The exe files mentioned in the OP no longer exist.
-
When I open msys.bat, it opens about 129 empty frozen windows, then they all close - nothing happens (vista 64bit). Help?
EDIT: Never Mind (not interested in modding anything anymore because of the sheer difficulty) but someone answer this anyway if possible in case someone else needs it.
-
I have the same problem. Vista ultimate 64bit, I even tried to run in windows XP Compatible mode - didn't help. But if I run under administrator, console output is:
Cannot find the rxvt.exe or sh.exe binary -- aborting.
So I don't understand what to do now...
-
Please note that this thread (http://forums.mozillazine.org/viewtopic.php?f=42&t=759325)fixes the problem with Windows Vista 64bit. Perhaps an update is needed to the main post?
-
Please also note that this thread (http://www.nabble.com/Using-MSYS-as-administrator-on-Windows-NT6-td22125984.html) fixes another problem with windows vista 64 bit.
-
When I do 'make' this is what I get.
$ make
which: pkg-config: unknown command
which: pkg-config: unknown command
make[1]: Entering directory `/home/User/tremulous'
Building Tremulous in build/release-MCD-x86:
PLATFORM: MCD
ARCH: x86
VERSION: 1.1.0_SVN1213
COMPILE_PLATFORM: mingw32
COMPILE_ARCH: x86
CC: cc
CFLAGS:
-MMD
-DNO_VM_COMPILED
-DUSE_MUMBLE
-DUSE_VOIP
-DFLOATING_POINT
-DUSE_ALLOCA
-Isrc/libspeex/include
-DUSE_LOCAL_HEADERS
-DPRODUCT_VERSION="1.1.0_SVN1213"
-DNDEBUG
-O3
LDFLAGS:
LIBS:
Output:
build/release-MCD-x86/tremded.x86
build/release-MCD-x86/tremulous.x86
build/release-MCD-x86/base/cgamex86.so
build/release-MCD-x86/base/gamex86.so
build/release-MCD-x86/base/uix86.so
which: pkg-config: unknown command
make[2]: Entering directory `/home/User/tremulous'
DED_CC src/server/sv_client.c
./cc: line 1: Creative_Commons: command not found
./cc: line 2: Creative: command not found
./cc: line 3: Attribution-ShareAlike: command not found
./cc: line 4: CREATIVE: command not found
./cc: line 5: SERVICES.: command not found
./cc: line 6: RELATIONSHIP.: command not found
./cc: line 7: CREATIVE: command not found
./cc: line 8: DISCLAIMS: command not found
./cc: line 9: License: command not found
./cc: line 10: syntax error near unexpected token `('
./cc: line 10: `THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS
CREATIVE'
make[2]: *** [build/release-MCD-x86/ded/sv_client.o] Error 2
make[2]: Leaving directory `/home/User/tremulous'
make[1]: *** [targets] Error 2
make[1]: Leaving directory `/home/User/tremulous'
make: *** [release] Error 2
Does anyone know why that happens? Or is that supposed to happen
-
rm CC
-
Your $PATH has . near the start of it.
Remove the . and it should work fine.
-
Where do I go to change the $PATH ?
-
http://tremulous.net/forum/index.php?topic=2672.0
-
Now I get
$ make
make[1]: Entering directory `/home/User/Tremulous'
QVM tools not built when cross-compiling
Building Tremulous in build/release-MCD-x86:
CC: gcc
CFLAGS:
-DNO_VM_COMPILED
-DUSE_LOCAL_HEADERS=1
-MMD
-DSVN_VERSION="85"
-DNDEBUG
-O3
Output:
/bin/sh.exe: -c: line 1: syntax error near unexpected token `;'
/bin/sh.exe: -c: line 1: `for i in ; do echo " $i"; done'
make[1]: *** [targets] Error 2
make[1]: Leaving directory `/home/User/Tremulous'
make: *** [release] Error 2
Could someone help?
-
cross compile?
-
I don't understand what you mean. I just used msys on windows.
-
I'm sure we have people here who can help. But it's sad, that out of all the people here, no one will help me? Real nice. Just shows how great our community is. Or is it because I smell bad?
-
Sorry. I can compile it myself. But I can't tell what you are doing wrong.
-
I followed the instructions exactly how they were, and I keep getting this error
Output:
/bin/sh.exe: -c: line 1: syntax error near unexpected token `;'
/bin/sh.exe: -c: line 1: `for i in ; do echo " $i"; done'
make[1]: *** [targets] Error 2
make[1]: Leaving directory `/home/User/Tremulous'
make: *** [release] Error 2
I just want to compile this, I've been wanting to for a very long time now :(
-
The line in the original Makefile is for i in $(TARGETS); do echo " $$i"; done, so apparently your $(TARGETS) is empty. This means you have to specify something to build, either by modifying the Makefile, or by passing it on the commandline, e.g. make BUILD_GAME_QVM=1.
Possible flags are: BUILD_MASTER_SERVER, BUILD_CLIENT, BUILD_SERVER, BUILD_GAME_SO and BUILD_GAME_QVM.
-
In the Makefile, there's a part that has "TARGETS =" and the rest is empty. Is that what I would have to modify or am I looking at the wrong part? and if it is the right part, what would I put in after the equals sign?
-
No, the TARGETS var is built dynamically in the Makefile, there are vars called USE_xxx that you have to set to 1. If you want to build the qvms, you need only USE_GAME_QVM=1.
-
I don't see a USE_GAME_QVM var, but I tryed 'make BUILD_GAME_QVM=1' and I got the same error. I still don't understand what I'm doing wrong. ???
-
Yes, sorry, BUILD_GAME_QVM was correct. Now there is still the problem that MitSugna mentioned: The Makefile thinks you are cross-compiling and thus the QVM build is disabled. Make sure you don't have the environment variables $PLATFORM or $ARCH defined before you call make, or call make with the parameters PLATFORM=mingw32 ARCH=x86.
-
I did 'make PLATFORM=mingw32 ARCH=x86' and this time I got a different error.
$ make PLATFORM=mingw32 ARCH=x86
make[1]: Entering directory `/home/User/Tremulous'
make -C src/tools/lcc install
make[2]: Entering directory `/home/User/Tremulous/src/tools/lcc'
gcc -O2 -Wall -fno-strict-aliasing -MMD -DTEMPDIR=\"/tmp\" -DSYSTEM=\"\" -c -Isrc -o build-mingw32-x86/etc/lcc.o etc/lcc.c
make[2]: gcc: Command not found
make[2]: *** [build-mingw32-x86/etc/lcc.o] Error 127
make[2]: Leaving directory `/home/User/Tremulous/src/tools/lcc'
make[1]: *** [tools] Error 2
make[1]: Leaving directory `/home/User/Tremulous'
make: *** [release] Error 2
-
There is a problem with your msys setup
With a proper MSYS setup you have access to everything(including gcc) in MinGW/bin (i.e. it is in PATH).
-
I installed MSYS-1.0.10.exe to C:\MSys, and then I installed MinGW-5.1.6.exe to C:\MSys\mingw and I extracted w32api-3.11.tar.gz to C:\MSys\mingw. Is there anything wrong with that? And I just want to say that I really appreciate the help I'm getting, thank you.
-
you need to install mingw first, then msys.
-
Order and Naming is not important but it helps a lot. ...
-
It works! What made it work was installing MinGW first, thank you all so much! You're all awesome. :D
-
can somebody plz help me i am stuck at: 9.) Download the latest Tremulous SVN code by opening a console, cd'ing to your MinGW home folder ('cd C:\MinGW\home\User'), and typing the SVN command:
svn co -r 895 svn://svn.icculus.org/tremulous/trunk Tremulous
i do not have the directory 'cd C;\MinGW\home\User'
-
9.) Download the latest Tremulous SVN code by opening a console, cd'ing to your MinGW home folder ('cd C:\MinGW\home\User'), and typing the SVN command:
svn co -r 895 svn://svn.icculus.org/tremulous/trunk Tremulous
(if you feel confident, you can remove the '-r 895' part to download the latest SVN, but safety is not guaranteed)
Isn't it spsed to be C:\msys\home\User ?
::)
^ that was almost 2 years ago :<
-
well got any up to date tutorials im running win 7
-
Hardy short and sweet considering half the files you need to download are missing.
-
Hardy short and sweet considering half the files you need to download are missing.
agreed
-
Problem: SVN 895 is REALLY OLD. I used to use 933 ( i think?) back 3 years ago or so. 2053 is latest. Do not try 895 please. :)
-
ok. :-\
now i'm relly confused on what to do now ???
-
sorry for the double post, but if i didn't then ill never get any help.
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.
-
,
-
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 (http://tremulous.net/forum/index.php?topic=14726.0).
-
my problem
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
-
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.