Author Topic: QVM, and a few problems...  (Read 3356 times)

Moodleman

  • Posts: 4
  • Turrets: +0/-0
QVM, and a few problems...
« on: June 19, 2008, 05:04:41 pm »
OK, this is a noob question, mainly because I found two guides out there, and didn't understand either of them, mainly because they weren't specific.

I would like to patch a copy of p-g-qvm with the following patches: fast build, voting, and welcome message on connect.

The problem is, I use Windows (and I can't install Linux, for reasons I'm not gonna go into now).

I found two guides, one of which said at the bottom that it doesn't work with game QVMs.

Unfortunately, they were both specific to compiling the Trem SVN, rather than patching game QVMs, so I would be grateful if anyone knew any links to a guide for patching game QVMs in Windows.

Thanks!

jackForward

  • Posts: 100
  • Turrets: +12/-4

Moodleman

  • Posts: 4
  • Turrets: +0/-0
Re: QVM, and a few problems...
« Reply #2 on: June 19, 2008, 06:08:49 pm »
Hi, thanks for your post, but those are the two which I found in other locations.  I'm confused as to the exact steps, as the second tutorial says it doesn't support that method for game QVMs, and I have't really had much experience with compiling and patching etc., so some more help or another link would be appreciated.

Thanks!

Lakitu7

  • Tremulous Developers
  • *
  • Posts: 1002
  • Turrets: +120/-73
Re: QVM, and a few problems...
« Reply #3 on: June 19, 2008, 06:19:13 pm »
The second link does compile qvms. Its author original could not, but step 12 includes a fix (that I found and gave him) that allows this process to do so.

Moodleman

  • Posts: 4
  • Turrets: +0/-0
Re: QVM, and a few problems...
« Reply #4 on: June 20, 2008, 08:53:01 am »
OK, I did eveything, added the fix (I added LIBRARY= and INCLUDE= to the makefile, under all the other bits with WHATEVER=), applied the patches, ran make, and it looked like it was going OK, until this happened:
Code: [Select]
make[1]: Entering directory `/home/tonkster/p-g-qvm-read-only'
make -C src/tools/lcc install
make[2]: Entering directory `/home/tonkster/p-g-qvm-read-only/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
gcc -O2 -Wall -fno-strict-aliasing -MMD -DTEMPDIR=\"/tmp\" -DSYSTEM=\"\" -c -Isrc -o build-mingw32-x86/etc/bytecode.o etc/bytecode.c
gcc  -o build-mingw32-x86/q3lcc.exe build-mingw32-x86/etc/lcc.o build-mingw32-x86/etc/bytecode.o
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Icpp -o build-mingw32-x86/cpp/cpp.o cpp/cpp.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Icpp -o build-mingw32-x86/cpp/lex.o cpp/lex.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Icpp -o build-mingw32-x86/cpp/nlist.o cpp/nlist.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Icpp -o build-mingw32-x86/cpp/tokens.o cpp/tokens.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Icpp -o build-mingw32-x86/cpp/macro.o cpp/macro.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Icpp -o build-mingw32-x86/cpp/eval.o cpp/eval.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Icpp -o build-mingw32-x86/cpp/include.o cpp/include.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Icpp -o build-mingw32-x86/cpp/hideset.o cpp/hideset.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Icpp -o build-mingw32-x86/cpp/getopt.o cpp/getopt.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Icpp -o build-mingw32-x86/cpp/unix.o cpp/unix.c
gcc  -o build-mingw32-x86/q3cpp.exe build-mingw32-x86/cpp/cpp.o build-mingw32-x86/cpp/lex.o build-mingw32-x86/cpp/nlist.o build-mingw32-x86/cpp/tokens.o build-mingw32-x86/cpp/macro.o build-mingw32-x86/cpp/eval.o build-mingw32-x86/cpp/include.o build-mingw32-x86/cpp/hideset.o build-mingw32-x86/cpp/getopt.o build-mingw32-x86/cpp/unix.o
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/alloc.o src/alloc.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/bind.o src/bind.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/bytecode.o src/bytecode.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/dag.o src/dag.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Ilburg -o build-mingw32-x86/lburg/lburg.o lburg/lburg.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Ilburg -o build-mingw32-x86/lburg/gram.o lburg/gram.c
gcc  -o build-mingw32-x86/lburg/lburg.exe build-mingw32-x86/lburg/lburg.o build-mingw32-x86/lburg/gram.o
build-mingw32-x86/lburg/lburg.exe src/dagcheck.md build-mingw32-x86/rcc/dagcheck.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -Wno-unused -c -Isrc -o build-mingw32-x86/rcc/dagcheck.o build-mingw32-x86/rcc/dagcheck.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/decl.o src/decl.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/enode.o src/enode.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/error.o src/error.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/event.o src/event.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/expr.o src/expr.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/gen.o src/gen.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/init.o src/init.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/inits.o src/inits.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/input.o src/input.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/lex.o src/lex.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/list.o src/list.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/main.o src/main.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/null.o src/null.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/output.o src/output.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/prof.o src/prof.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/profio.o src/profio.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/simp.o src/simp.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/stmt.o src/stmt.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/string.o src/string.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/sym.o src/sym.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/symbolic.o src/symbolic.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/trace.o src/trace.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/tree.o src/tree.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-mingw32-x86/rcc/types.o src/types.c
gcc  -o build-mingw32-x86/q3rcc.exe build-mingw32-x86/rcc/alloc.o build-mingw32-x86/rcc/bind.o build-mingw32-x86/rcc/bytecode.o build-mingw32-x86/rcc/dag.o build-mingw32-x86/rcc/dagcheck.o build-mingw32-x86/rcc/decl.o build-mingw32-x86/rcc/enode.o build-mingw32-x86/rcc/error.o build-mingw32-x86/rcc/event.o build-mingw32-x86/rcc/expr.o build-mingw32-x86/rcc/gen.o build-mingw32-x86/rcc/init.o build-mingw32-x86/rcc/inits.o build-mingw32-x86/rcc/input.o build-mingw32-x86/rcc/lex.o build-mingw32-x86/rcc/list.o build-mingw32-x86/rcc/main.o build-mingw32-x86/rcc/null.o build-mingw32-x86/rcc/output.o build-mingw32-x86/rcc/prof.o build-mingw32-x86/rcc/profio.o build-mingw32-x86/rcc/simp.o build-mingw32-x86/rcc/stmt.o build-mingw32-x86/rcc/string.o build-mingw32-x86/rcc/sym.o build-mingw32-x86/rcc/symbolic.o build-mingw32-x86/rcc/trace.o build-mingw32-x86/rcc/tree.o build-mingw32-x86/rcc/types.o
install -s -m 0755 build-mingw32-x86/q3lcc.exe ../
install -s -m 0755 build-mingw32-x86/q3cpp.exe ../
install -s -m 0755 build-mingw32-x86/q3rcc.exe ../
make[2]: Leaving directory `/home/tonkster/p-g-qvm-read-only/src/tools/lcc'
make -C src/tools/asm install
make[2]: Entering directory `/home/tonkster/p-g-qvm-read-only/src/tools/asm'
gcc -O2 -Wall -Werror -fno-strict-aliasing -o q3asm q3asm.c cmdlib.c
install -s -m 0755 q3asm.exe ../
install: strip failed
make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/tonkster/p-g-qvm-read-only/src/tools/asm'
make[1]: *** [tools] Error 2
make[1]: Leaving directory `/home/tonkster/p-g-qvm-read-only'
make: *** [release] Error 2

At the start of the makefile it says that I need GNU Make?  I'm stuck now...

Moodleman

  • Posts: 4
  • Turrets: +0/-0
Re: QVM, and a few problems...
« Reply #5 on: June 20, 2008, 09:42:27 am »
Never mind, it's fine now.

I got it working!!

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Re: QVM, and a few problems...
« Reply #6 on: June 20, 2008, 06:12:14 pm »
Moodleman, i do all the p-g-qvm patching and compiling on a windows box, so it is not impossible.


Edit: good to see you got it working

∧OMG ENTROPY∧