News:

Come Chat with us live! Learn how HERE!

Main Menu

The short and sweet guide to compiling SVN 895 on Windows

Started by Risujin, January 28, 2007, 05:38:52 AM

tojimaru

#90
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


David

Your $PATH has . near the start of it.
Remove the . and it should work fine.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.



tojimaru

#95
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?


tojimaru

#97
I don't understand what you mean. I just used msys on windows.

tojimaru

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?

MitSugna

Sorry. I can compile it myself. But I can't tell what you are doing wrong.

tojimaru

#100
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 :(

gimhael

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.

tojimaru

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?

gimhael

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.

tojimaru

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

gimhael

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.

tojimaru

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

MitSugna

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

tojimaru

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.

kevlarman

Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

MitSugna

#110
Order and Naming is not important but it helps a lot. ...




tojimaru

It works! What made it work was installing MinGW first, thank you all so much! You're all awesome.  :D

[ICP]ClownLove

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'

UniqPhoeniX

Quote from: UniqPhoeniX on July 04, 2008, 12:31:09 AM
Quote from: UsaKilleR on June 09, 2008, 05:29:39 PM
Quote from: Risujin on January 28, 2007, 05:38:52 AM
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 :<

[ICP]ClownLove

well got any up to date tutorials im running win 7

Shifty

Hardy short and sweet considering half the files you need to download are missing.

Chomps123

Quote from: Shifty on July 03, 2010, 02:30:01 AM
Hardy short and sweet considering half the files you need to download are missing.
agreed
Don't just live life with work.
Find some time every day to have some fun. ;)

Aelita

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. :)

Chomps123

Don't just live life with work.
Find some time every day to have some fun. ;)

Chomps123

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.
Don't just live life with work.
Find some time every day to have some fun. ;)