Tremulous Forum

Mods => Modding Center => Topic started by: vcxzet on November 27, 2006, 01:44:21 pm

Title: Build T R E M U L O U S from svn (win32)
Post 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
Code: [Select]
 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
Code: [Select]
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
Code: [Select]
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
Title: Build T R E M U L O U S from svn (win32)
Post by: Thorn on November 28, 2006, 08:20:45 pm
after step 'run make'

Code: [Select]
*****@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
Title: Build T R E M U L O U S from svn (win32)
Post by: vcxzet on November 28, 2006, 09:00:48 pm
Quote from: "Thorn"
after step 'run make'

Code: [Select]
*****@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
Quote
c:mingw /mingw
c:/mingw /mingw
Title: Build T R E M U L O U S from svn (win32)
Post by: radeone on November 29, 2006, 05:24:11 am
Code: [Select]
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
Title: Build T R E M U L O U S from svn (win32)
Post by: vcxzet on November 29, 2006, 08:51:40 am
you need
win32 api binaries
http://prdownloads.sf.net/mingw/w32api-3.5.tar.gz?download
Title: Build T R E M U L O U S from svn (win32)
Post by: Thorn on November 29, 2006, 04:38:50 pm
I'm not too sure whats wrong with my fstab


Code: [Select]
#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
Title: Build T R E M U L O U S from svn (win32)
Post by: radeone on November 30, 2006, 01:21:41 pm
i have the winapi libs installed... anything else?
Title: Build T R E M U L O U S from svn (win32)
Post by: vcxzet on November 30, 2006, 01:38:37 pm
@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
}
Title: Build T R E M U L O U S from svn (win32)
Post by: radeone on November 30, 2006, 02:45:21 pm
yes i have winuser.h
Title: Build T R E M U L O U S from svn (win32)
Post by: Thorn on November 30, 2006, 05:23:19 pm
Quote from: "vcxzet"

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.
Title: Build T R E M U L O U S from svn (win32)
Post by: vcxzet on November 30, 2006, 05:32:26 pm
Quote from: "Thorn"
Quote from: "vcxzet"

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)
Title: Build T R E M U L O U S from svn (win32)
Post by: rasz_pl on November 30, 2006, 07:10:27 pm
Quote from: "Thorn"
Quote from: "vcxzet"

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
Title: Build T R E M U L O U S from svn (win32)
Post by: radeone on December 02, 2006, 12:38:12 am
yes i have winuser.h in the right directory.
Title: Build T R E M U L O U S from svn (win32)
Post by: vcxzet on December 02, 2006, 08:48:53 pm
Quote from: "radeone"
yes i have winuser.h in the right directory.

sorry no idea I think I need to detail mingw step
Title: Build T R E M U L O U S from svn (win32)
Post by: radeone on December 04, 2006, 01:29:54 am
im building the regular tremulous. its something with the SPI_SCREENSAVER variable and its undeclared somewhere. ill see whats up and report back.
Title: Build T R E M U L O U S from svn (win32)
Post by: Raedwulf on March 11, 2007, 10:09:59 am
Using MSYS/MINGW i encountered a problem compiling tremulous

I was stumped at first when I saw an error:

Code: [Select]
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
Code: [Select]
SET INCLUDE=
SET LIB=


That solved the problem. Q3LCC was trying to parse through headers for MSVC and was getting really confused lol.
Title: Build T R E M U L O U S from svn (win32)
Post by: E-Mxp on March 12, 2007, 09:44:54 am
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
Title: Build T R E M U L O U S from svn (win32)
Post by: Paradox on March 12, 2007, 04:39:20 pm
Thank you!

PS: Tortoise has a merge tool too, so you can patch easily.
Title: Um... Help, please...
Post by: ethana2 on April 23, 2007, 04:03:55 am
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.
Title: Re: Um... Help, please...
Post by: next_ghost on April 23, 2007, 09:27:11 am
Quote from: "ethana2"

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

Quote
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.

Quote
What happened?  Were any executable files created, or...  I can't find any...


It's not unexpected when you get compile error.
Title: Build T R E M U L O U S from svn (win32)
Post by: f0rqu3 on April 23, 2007, 11:49:17 am
see http://tremulous.net/phpBB2/viewtopic.php?t=3408