Author Topic: [SOLVED] how do i compile trem qvm source...  (Read 10979 times)

Le Compilateur

  • Posts: 315
  • Turrets: +14/-19
[SOLVED] how do i compile trem qvm source...
« on: May 25, 2008, 10:21:23 pm »
hello im new to the world of coding. i found source code for a qvm online somewhere and i modified some variables in tremulous.h... now how do i compile it?

ive used Linux before so i know about using make and patch. but it doesn't make anything.

perhaps its because i use Mac and nothing mainstream works on Mac? ???
« Last Edit: June 02, 2008, 08:28:32 pm by Le Compilateur »
I'm a developer! If you'd like to contribute to the Equilibrium QVM project or download the latest version, please visit this thread.

QVMs now compile under Leopard; get the patch here. Requires SVN r1053 or later.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: how do i compile trem qvm source...
« Reply #1 on: May 25, 2008, 10:37:40 pm »
Post up the output of the make and patch.
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.

Le Compilateur

  • Posts: 315
  • Turrets: +14/-19
Re: how do i compile trem qvm source...
« Reply #2 on: May 26, 2008, 12:42:46 am »
uhh i forgot to mention this before but the source only includes the "src" folder. i think thats all thats necessary to make a qvm...am i right?

i got the source premade from Google Code so im assuming its already backported and compilable.

Output of make without running patch:
Code: [Select]
make -C src/tools/lcc install
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -DTEMPDIR=\"/tmp\" -DSYSTEM=\"\" -c -Isrc -o build-darwin-x86/etc/lcc.o etc/lcc.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -DTEMPDIR=\"/tmp\" -DSYSTEM=\"\" -c -Isrc -o build-darwin-x86/etc/bytecode.o etc/bytecode.c
gcc  -o build-darwin-x86/q3lcc build-darwin-x86/etc/lcc.o build-darwin-x86/etc/bytecode.o
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/cpp.o cpp/cpp.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/lex.o cpp/lex.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/nlist.o cpp/nlist.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/tokens.o cpp/tokens.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/macro.o cpp/macro.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/eval.o cpp/eval.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/include.o cpp/include.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/hideset.o cpp/hideset.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/getopt.o cpp/getopt.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/unix.o cpp/unix.c
gcc  -o build-darwin-x86/q3cpp build-darwin-x86/cpp/cpp.o build-darwin-x86/cpp/lex.o build-darwin-x86/cpp/nlist.o build-darwin-x86/cpp/tokens.o build-darwin-x86/cpp/macro.o build-darwin-x86/cpp/eval.o build-darwin-x86/cpp/include.o build-darwin-x86/cpp/hideset.o build-darwin-x86/cpp/getopt.o build-darwin-x86/cpp/unix.o
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/alloc.o src/alloc.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/bind.o src/bind.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/bytecode.o src/bytecode.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/dag.o src/dag.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Ilburg -o build-darwin-x86/lburg/lburg.o lburg/lburg.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Ilburg -o build-darwin-x86/lburg/gram.o lburg/gram.c
gcc  -o build-darwin-x86/lburg/lburg build-darwin-x86/lburg/lburg.o build-darwin-x86/lburg/gram.o
build-darwin-x86/lburg/lburg src/dagcheck.md build-darwin-x86/rcc/dagcheck.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -Wno-unused -c -Isrc -o build-darwin-x86/rcc/dagcheck.o build-darwin-x86/rcc/dagcheck.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/decl.o src/decl.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/enode.o src/enode.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/error.o src/error.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/event.o src/event.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/expr.o src/expr.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/gen.o src/gen.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/init.o src/init.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/inits.o src/inits.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/input.o src/input.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/lex.o src/lex.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/list.o src/list.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/main.o src/main.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/null.o src/null.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/output.o src/output.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/prof.o src/prof.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/profio.o src/profio.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/simp.o src/simp.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/stmt.o src/stmt.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/string.o src/string.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/sym.o src/sym.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/symbolic.o src/symbolic.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/trace.o src/trace.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/tree.o src/tree.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/types.o src/types.c
gcc  -o build-darwin-x86/q3rcc build-darwin-x86/rcc/alloc.o build-darwin-x86/rcc/bind.o build-darwin-x86/rcc/bytecode.o build-darwin-x86/rcc/dag.o build-darwin-x86/rcc/dagcheck.o build-darwin-x86/rcc/decl.o build-darwin-x86/rcc/enode.o build-darwin-x86/rcc/error.o build-darwin-x86/rcc/event.o build-darwin-x86/rcc/expr.o build-darwin-x86/rcc/gen.o build-darwin-x86/rcc/init.o build-darwin-x86/rcc/inits.o build-darwin-x86/rcc/input.o build-darwin-x86/rcc/lex.o build-darwin-x86/rcc/list.o build-darwin-x86/rcc/main.o build-darwin-x86/rcc/null.o build-darwin-x86/rcc/output.o build-darwin-x86/rcc/prof.o build-darwin-x86/rcc/profio.o build-darwin-x86/rcc/simp.o build-darwin-x86/rcc/stmt.o build-darwin-x86/rcc/string.o build-darwin-x86/rcc/sym.o build-darwin-x86/rcc/symbolic.o build-darwin-x86/rcc/trace.o build-darwin-x86/rcc/tree.o build-darwin-x86/rcc/types.o
install -s -m 0755 build-darwin-x86/q3lcc ../
install -s -m 0755 build-darwin-x86/q3cpp ../
install -s -m 0755 build-darwin-x86/q3rcc ../
make -C src/tools/asm install
gcc -O2 -Wall -Werror -fno-strict-aliasing -o q3asm q3asm.c cmdlib.c
install -s -m 0755 q3asm ../

Building Tremulous in build/release-darwin-x86:
  CC: cc

  CFLAGS:
    -Wall
    -Wimplicit
    -Wstrict-prototypes
    -mstackrealign
    -fno-strict-aliasing
    -DMACOS_X
    -fno-common
    -pipe
    -gfull
    -DUSE_OPENAL=1
    -DUSE_CURL=1
    -DUSE_CURL_DLOPEN=1
    -DUSE_SDL_VIDEO=1
    -DUSE_SDL_SOUND=1
    -D_THREAD_SAFE=1
    -Isrc/SDL12/include
    -DUSE_LOCAL_HEADERS=1
    -MMD
    -DSVN_VERSION="1.1.0_SVN61M"
    -DNDEBUG
    -march=prescott
    -mfpmath=sse
    -ffast-math
    -falign-loops=16

  Output:
    build/release-darwin-x86/base/vm/game.qvm

Q3LCC src/game/g_main.c
cpp: <cmdarg>:1 Illegal -D or -U argument
make[2]: *** [build/release-darwin-x86/base/game/g_main.asm] Error 1
make[1]: *** [targets] Error 2
make: *** [release] Error 2

umm and one more thing... i use Leopard. ive seen several posts about QVMs not being able to compile on Leopard, so that could be the problem.
I'm a developer! If you'd like to contribute to the Equilibrium QVM project or download the latest version, please visit this thread.

QVMs now compile under Leopard; get the patch here. Requires SVN r1053 or later.

UB|FuN Damcgee

  • Posts: 34
  • Turrets: +0/-1
    • Tremulous Fun Server Official Website
Re: [SOLVED] how do i compile trem qvm source...
« Reply #3 on: November 16, 2011, 08:16:01 pm »
i get this too, and im on lepard, fix anyone? or can someone plz compile for meh? plz? tyvm :)
UB|FuN FTW!!!!!! (with :turret: control...)

:turret::turret::turret::turret::turret::turret::turret::dretch:

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: [SOLVED] how do i compile trem qvm source...
« Reply #4 on: November 17, 2011, 07:17:37 am »

UB|FuN Damcgee

  • Posts: 34
  • Turrets: +0/-1
    • Tremulous Fun Server Official Website
Re: [SOLVED] how do i compile trem qvm source...
« Reply #5 on: November 19, 2011, 01:56:01 am »
your right, i dont.
UB|FuN FTW!!!!!! (with :turret: control...)

:turret::turret::turret::turret::turret::turret::turret::dretch: