Tremulous Forum
Mods => Modding Center => Topic started by: vcxzet on November 27, 2006, 01:44:21 pm
-
first: get svn
download TortoiseSVN (http://tortoisesvn.net/downloads)
create a new folder
right click to it
choose "SVN Checkout..."
type svn://svn.icculus.org/tremulous/trunk to "URL of repository:"
"HEAD Revision" should be checked
click ok
second: get mingw and msys
1. Download and install MinGW and MSys from http://www.mingw.org/.
2. Download http://www.libsdl.org/extras/win32/common/directx-devel.tar.gz
and untar it into your MinGW directory (usually C:\MinGW).
3. Open an MSys terminal
4. Change to the directory containing Makefile ( directory you created ).
5. Run 'make'.
this is from http://svn.icculus.org/*checkout*/quake3/trunk/README
third: minimal test run
.\ is directory you created
go to ".\build\release-mingw32-x86\base"
create a zip file from vm directory
(zip file should contain vm directory and the qvm files in it)
go to ".\" add ui directory to the zip file
rename this zip file to vms-1.1.1.pk3
create a new directory in c: (or wherever you want) rename it to tremtest
create a new directory in tremtest and rename it to base
copy data-1.1.0.pk3, map-atcs-1.1.0.pk3 from your tremulous directory
and copy the vms-1.1.1.pk3 to base directory (the one in tremtest)
copy .\build\release-mingw32-x86\tremulous.x86.exe to tremtest directory
tremtest
|- tremulous.x86.exe
|-vm
__|- data-1.1.0.pk3
__|- map-atcs-1.1.0.pk3
__|- vms-1.1.1.pk3
run the binary
open console
type "\devmap atcs"
notes:
binary wont work with your 1.1.0 tremulous
vms-1.1.0 wont work with your 1.1.0 tremulous binary
you cant connect to servers with it
---below this line is useless---
detail backporting:
https://bugzilla.icculus.org/show_bug.cgi?id=2907
-
after step 'run make'
*****@THORN /e/mod
$ make
make -C src/tools/lcc install
make[1]: Entering directory `/e/mod/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 `/e/mod/src/tools/lcc'
make: *** [tools] Error 2
-
after step 'run make'
*****@THORN /e/mod
$ make
make -C src/tools/lcc install
make[1]: Entering directory `/e/mod/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 `/e/mod/src/tools/lcc'
make: *** [tools] Error 2
you have no gcc
if you installed mingw and msys this means you did not setup msys correctly
my
C:\msys\1.0\etc\fstab
c:mingw /mingw
c:/mingw /mingw
-
gcc -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 -o build/release-mingw32-x86/client/win_wndproc.o -c src/win32/win_wndproc.c
src/win32/win_wndproc.c: In function `WIN_DisableAltTab':
src/win32/win_wndproc.c:59: error: `SPI_SCREENSAVERRUNNING' undeclared (first use in this function)
src/win32/win_wndproc.c:59: error: (Each undeclared identifier is reported only once
src/win32/win_wndproc.c:59: error: for each function it appears in.)
src/win32/win_wndproc.c: In function `WIN_EnableAltTab':
src/win32/win_wndproc.c:76: error: `SPI_SCREENSAVERRUNNING' undeclared (first use in this function)
make[1]: *** [build/release-mingw32-x86/client/win_wndproc.o] Error 1
make[1]: Leaving directory `/home/bone/tremulous-1.1.0-src'
make: *** [build_release] Error 2
this is what i get and i have all the deps installed
-
you need
win32 api binaries
http://prdownloads.sf.net/mingw/w32api-3.5.tar.gz?download
-
I'm not too sure whats wrong with my fstab
#fstab.sample
#This is a sample file for /etc/fstab.
#Currently /etc/fstab is only read during dll initialization.
#I will eventually watch the directory for changes and reread the file.
#The line format is simple in that you give the Win32 path, followed by one or
#more space or tab delimiter, followed by the mount point. Mount points in
#typical UNIX environments must be a physical name on a drive before it can
#actually be used as a mount point. In this implementation the "must exist"
#requirement isn't enforced, however, it will be an aide to such programs as
#find and readline's tab completion if it does exist.
#You can use a # as the first character on the line as a comment indicator.
#Blank lines are ignored.
#Win32_Path Mount_Point
c:/mingw /mingw
c:/ActiveState/perl /perl
-
i have the winapi libs installed... anything else?
-
@radeone so you have
C:\mingw\include\winuser.h
???
@thorn hmmm
try adding
c:mingw /mingw
and the file must be fstab not fstab.sample
you add to fstab
c:mingw /mingw
c:/mingw /mingw
those lines if you have c:/mingw/bin/gcc.exe if you installed elsewhere you need the correct path
{
for example if you have gcc in d:/mingw/bin/gcc.exe you add
d:mingw /mingw
d:/mingw /mingw
}
-
yes i have winuser.h
-
and the file must be fstab not fstab.sample
The file i have is fstab.sample not fstab. I dont have an fstab. Sure you just ain't got file extensions on?
I added that line, didn't help.
-
and the file must be fstab not fstab.sample
The file i have is fstab.sample not fstab. I dont have an fstab. Sure you just ain't got file extensions on?
I added that line, didn't help.
you need fstab
with no extension (fstab.sample is just a sample)
-
and the file must be fstab not fstab.sample
The file i have is fstab.sample not fstab. I dont have an fstab. Sure you just ain't got file extensions on?
copy fstab.sample fstab
-
yes i have winuser.h in the right directory.
-
yes i have winuser.h in the right directory.
sorry no idea I think I need to detail mingw step
-
im building the regular tremulous. its something with the SPI_SCREENSAVER variable and its undeclared somewhere. ill see whats up and report back.
-
Using MSYS/MINGW i encountered a problem compiling tremulous
I was stumped at first when I saw an error:
cpp: Can't open include file Visual
Meaningless....or was there
Actually if you use mingw on windows, q3lcc/q3cpp will use the environment vars of the computer. This happens to be (politely put) a pain in the a***.
Simple fix was, edit MSYS.bat, with just
SET INCLUDE=
SET LIB=
That solved the problem. Q3LCC was trying to parse through headers for MSVC and was getting really confused lol.
-
Just use this:
SVN 895 backport (version 2) (http://tremulous.net/phpBB2/viewtopic.php?t=3401&start=0&postdays=0&postorder=asc&highlight=895+win32) :D
-
Thank you!
PS: Tortoise has a merge tool too, so you can patch easily.
-
I've never been so frigging confused in my life- which is probably my own fault. I'm new at this. Though it may be more of an emotion than a fact. We will see...
My system: WinXP 32bit SP2
I have bloodshed Dev C++ installed. I knew Dev C++ used minGW, so I already had it installed. I finally discovered that C:/Dev-Cpp WAS my MinGW directory (I think... ugh..), but... something didn't seem right... wow. Ok. I finally got everything installed, I think. I'm in the Ming terminal thing. I went to the trem source SVN folder on my machine, and ran make. It's making something.
Three questions:
With Dev C++ installed in C:/Dev-Cpp, where exactly was I supposed to unzip those directx dev files? (Best answered by someone else w/ Dev-Cpp installed.)
What does this mean? <excerpt from ming terminal thingy>
make[1]: *** [build/release-mingw32-x86/client/win_gamma.o] Error 1
make[1]: Leaving directory `/c/Dev-Cpp/My projects/Tremulous SVN'
make: *** [build_release] Error 2
</terminal message>
What happened? Were any executable files created, or... I can't find any...
What I went through in the last 45 mins would give any noob a serious headache. Very steep learning curve. Ugghh... Well, the headaches being merciful- I'm just completely exhausted and somewhat frustrated. Again, no fault of yours. I'll take any help I can get. But first, I'll be taking a nap.
-
Three questions:
With Dev C++ installed in C:/Dev-Cpp, where exactly was I supposed to unzip those directx dev files? (Best answered by someone else w/ Dev-Cpp installed.)
C:/Dev-Cpp/include
What does this mean? <excerpt from ming terminal thingy>
make[1]: *** [build/release-mingw32-x86/client/win_gamma.o] Error 1
make[1]: Leaving directory `/c/Dev-Cpp/My projects/Tremulous SVN'
make: *** [build_release] Error 2
</terminal message>
It means that you have succesfully skipped the most important line of the whole log and posted here just 3 lines of useless junk which comes after it.
What happened? Were any executable files created, or... I can't find any...
It's not unexpected when you get compile error.
-
see http://tremulous.net/phpBB2/viewtopic.php?t=3408