Tremulous Forum
Mods => Modding Center => Topic started by: crazywhiteboy9x9 on March 08, 2008, 03:06:09 am
-
Ok so i want to learn how to complie patches will some 1 help me out???
-
You mean patch the source with a downloaded patch?
Or do you mean edit the source and make a patch from your edits?
-
You don't compile a patch, you patch with a patch.
Patch files are applied to existing files and they patch them.
Search these forums, there are plenty of threads that have covered doing it.
Search "compile trem" for the compile info.
-
to make a patch from source code, type
svn diff > patchfile.patch
to apply a patch, type patch -p0 < patchname.patch
-
If you are about to make your own patch, you must also add your own files to the source code before doing svn diff:
svn add file
-
And when i want to patch my Game.qvm?
I want to have a super hyper mega Game.QVM for my server.
With all specials. XD
-
And when i want to patch my Game.qvm?
I want to have a super hyper mega Game.QVM for my server.
With all specials. XD
to apply a patch, type patch -p0 < patchname.patch
-
if that doesn't make sense, then read this (http://tremulous.net/forum/index.php?topic=3408.0) if you are on windows...
-
Okay I tried to compile but it gave me an error.
=(
-
-_-
You expect people to know how to solve your problem, but you don't tell us what the problem is. Post the error.
-
what commands were you thinking of. just wondering?
-
interesting, yesterday it was working...but now i can't seem to get it to work :( it keeps saying file not found [i have to do it in the command prompt because i have a vista :-\]
-
-_-
You expect people to know how to solve your problem, but you don't tell us what the problem is. Post the error.
Let me guess the error, Error 2/ GCC not found.
-
-_-
You expect people to know how to solve your problem, but you don't tell us what the problem is. Post the error.
Let me guess the error, Error 2/ GCC not found.
I just got this error how do you fix it??
exact code here
$ make
make[1]: Entering directory `/c/editable/code'
Building Tremulous in build/release-mingw32-x86:
PLATFORM: mingw32
ARCH: x86
COMPILE_PLATFORM: mingw32
COMPILE_ARCH: x86
CC: gcc
CFLAGS:
-MMD
-Wall
-fno-strict-aliasing
-Wimplicit
-Wstrict-prototypes
-DUSE_ICON
-Isrc/SDL12/include
-DUSE_OPENAL=1
-DUSE_OPENAL_DLOPEN
-DUSE_CURL
-DCURL_STATICLIB
-m32
-DUSE_LOCAL_HEADERS
-DNDEBUG
-O3
-march=i586
-fno-omit-frame-pointer
-ffast-math
-falign-loops=2
-funroll-loops
-falign-jumps=2
-falign-functions=2
-fstrength-reduce
LDFLAGS:
-lwsock32
-lwinmm
-m32
Output:
build/release-mingw32-x86/tremded.x86.exe
build/release-mingw32-x86/tremulous.x86.exe
build/release-mingw32-x86/base/vm/cgame.qvm
build/release-mingw32-x86/base/vm/game.qvm
build/release-mingw32-x86/base/vm/ui.qvm
make[2]: Entering directory `/c/editable/code'
DED_CC src/server/sv_client.c
make[2]: gcc: Command not found
make[2]: *** [build/release-mingw32-x86/ded/sv_client.o] Error 127
make[2]: Leaving directory `/c/editable/code'
make[1]: *** [targets] Error 2
make[1]: Leaving directory `/c/editable/code'
make: *** [release] Error 2
-
You can't compile without a compiler.
Follow one of the tutorials.
-
*smacks head**spoonfeeds some who doesn't use the Search function*
Error :
/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
^Something like that.
Reply :
maybe you didnt set the mingw path :/
Solution :
http://tremulous.net/phpBB2/viewtopic.php?t=2672&highlight=fstab
-
ok, i think i have everything ready, except:
where do you put the .patch file?
and
where do you put the original game.qvm?
also, what i said above, i was getting an error, here it is:
$ make
make -C src/tools/lcc install
make[1]: Entering directory `/mingw/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[1]: gcc: Command not found
make[1]: *** [build-mingw32-x86/etc/lcc.o] Error 127
make[1]: Leaving directory `/mingw/tremulous/src/tools/lcc'
make: *** [tools] Error 2
[i'm probably doing something horribly wrong, but idk what]
-
Read the post above you for the solution for your error.../me is getting pissed off with people WHO CANT FUCKING READ.
-
wow...i finaly got it working, some files were installed in the wrong place =/
i moved:
cc1.exe
gcc.exe
cpp0.exe
to the bin folder in C:\msys\1.0\bin
and i copied mingw directly to C:/
wow, there are a lot of files to be made xD
-
um, i figured out last error, now onto the next one...
$ patch -p0 < NERO_QVM.patch
m.AllocationBase 0x0, m.BaseAddress 0x715B0000, m.RegionSize 0xD0000, m.State 0x10000
C:\msys\1.0\bin\patch.exe: *** Couldn't reserve space for cygwin's heap (0x715B0000 <0x1690000>) in child, Win32 error 0
-
A one second google on that error and the top hit says that your a retard for moving things around and blindly hoping it would work.
Read the docs.
-
The error "Couldn't reserve space for cygwin's heap" is actually due to some
XP/cygwin bug in older versions of the cygwin1 DLL. To fix the problem, go
to http://www.cygwin.com, and then download and install the lastest and
greatest version (r1.3.0). One potential hang up here, is that PDP++
expects to find cygwin1.dll in something like C:\WINDOWS\SYSTEM32, however
the cygwin install program puts it in something like C:\CYGWIN\BIN. So, to
fix this just copy the file over.
The other solution, disable your AV(For stupid people, Anti-Virus).