Author Topic: game compiling  (Read 7474 times)

Kuszja

  • Posts: 72
  • Turrets: +1/-0
game compiling
« on: December 28, 2006, 04:31:37 am »
I hate to start two threads in one day but I am a little out of my area of expertise on this. I have made some minor changes to a copy of the source code provided with tremulous, just variable changes, but I don't know how to compile in the qvm format or what all I need to do to compile a cgame.qvm. Before the C and C++ programmers out there murder me for these next fer questions I know Java, not C.
1.) What files are needed to compile the game?
2.) Do I need a special project or project variable change?
3.) Any command line args?
4.) Anything else that may be helpful.

I have Visual C++ studio supplied bu the University of Akron a few years ago and basic C programming stuff.

Like I said, I program in java and this looks 50% alien to me and yes, I will learn C and C++ eventually. C# sucks.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
game compiling
« Reply #1 on: December 28, 2006, 10:04:54 am »
M$ Visual studio is useless for this kind of development. You'll need 4 programs:
- GCC (the port for Windows is called MinGW)
- Make (included in MinGW)
- Patch (optional)
- Subversion (you'll need it to get the latest source code from Tremulous SVN repository)

Follow installation instructions and then simply run `make` from command line in Tremulous source trunk.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

gareth

  • Posts: 710
  • Turrets: +38/-89
Re: game compiling
« Reply #2 on: December 28, 2006, 10:49:41 am »
your an idiot. learn C before you try using it.

Kuszja

  • Posts: 72
  • Turrets: +1/-0
game compiling
« Reply #3 on: December 28, 2006, 01:00:19 pm »
Thank you next_ghost, I will got those before I do anything else.

Gareth, I's nice to wake up in the morning and find fresh insults to read. I am not programming ignorant and I do know Java quite well. I don't know C very well but I know what I can safely mess with and what not to touch. And there is no better experience than doing something.

vcxzet

  • Guest
game compiling
« Reply #4 on: December 28, 2006, 02:01:22 pm »
Quote from: "Kuszja"
Thank you next_ghost, I will got those before I do anything else.

Gareth, I's nice to wake up in the morning and find fresh insults to read. I am not programming ignorant and I do know Java quite well. I don't know C very well but I know what I can safely mess with and what not to touch. And there is no better experience than doing something.

if you know java you can learn c/c++ relatively easy

Kuszja

  • Posts: 72
  • Turrets: +1/-0
game compiling
« Reply #5 on: December 28, 2006, 02:40:22 pm »
Well, there are probaby a few C books lying around here from when Akron still taught C/C++ and a 1.5 hour cartrip today. I had the fortune of starting there when they switched to Java.

Added:
I guess I have to bite the bullet and download gcc-4.1.1 at home in one run. I'm not sure what all the other files are other than extensions or a single language compiler.

Woot, est time is 204:00

Kuszja

  • Posts: 72
  • Turrets: +1/-0
game compiling
« Reply #6 on: December 28, 2006, 04:18:31 pm »
Ok, I downloaded gcc-objc-3.4.5 from MinGW and you said Make was included in it. I also downloaded the patch and subversion-1.4.2.zip. If these arn't the right files, please let me know. The sites were vague on which files were the ones I wanted.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
game compiling
« Reply #7 on: December 28, 2006, 05:02:02 pm »
you should also get msys (from the same website as mingw), and patch is useful enough that you should get it too. tortoise svn will make working with svn much easier on windows, you can get it here: http://tortoisesvn.net/
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok 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| #
|.@.-##
-----

Risujin

  • Posts: 739
  • Turrets: +33/-13
    • http://risujin.org
game compiling
« Reply #8 on: December 28, 2006, 05:15:09 pm »
Quote from: "vcxzet"
if you know java you can learn c/c++ relatively easy

The skill of programming is finding and assembling bits and pieces from hundreds of pages of language references into a working arrangement. What language those are in doesn't matter. The rest is just optimization.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
game compiling
« Reply #9 on: December 28, 2006, 05:45:33 pm »
Quote from: "Kuszja"
Ok, I downloaded gcc-objc-3.4.5 from MinGW and you said Make was included in it. I also downloaded the patch and subversion-1.4.2.zip. If these arn't the right files, please let me know. The sites were vague on which files were the ones I wanted.


Object C compiler is about as useful as C# interpreter :roll: You need gcc-core, mingw-runtime, w32api and mingw32-make.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

Kuszja

  • Posts: 72
  • Turrets: +1/-0
game compiling
« Reply #10 on: December 31, 2006, 05:02:59 am »
Thanks, I will get those when I can. My holiday break took a major turn for the worse and I am out of state now.

Kuszja

  • Posts: 72
  • Turrets: +1/-0
game compiling
« Reply #11 on: January 03, 2007, 07:28:25 pm »
Ok I have the programs but not sure how to put them together. I also learned some C over the break. The supplied readme's were not of much help or the easiest to find.

Kuszja

  • Posts: 72
  • Turrets: +1/-0
game compiling
« Reply #12 on: January 04, 2007, 02:57:40 pm »
I'm trying to figure these programs out but since I am back in school, 95% of  the internet is blocked. I can't look up much.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
game compiling
« Reply #13 on: January 04, 2007, 09:02:27 pm »
It's pretty simple: Unpack all MinGW files to some directory and then simply add the directory which contains executables to your PATH command line variable. Then you can run mingw32-make, gcc, ld and everything from any directory without typing the full path. That's all you need for successful installation.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

Kuszja

  • Posts: 72
  • Turrets: +1/-0
game compiling
« Reply #14 on: January 06, 2007, 10:21:04 pm »
next_ghost, do you really know what you are doing or are you just tryin gto confuse me? You first said:
Quote
M$ Visual studio is useless for this kind of development. You'll need 4 programs:
- GCC (the port for Windows is called MinGW)
- Make (included in MinGW)
- Patch (optional)
- Subversion (you'll need it to get the latest source code from Tremulous SVN repository)


Then you said:
Quote
You need gcc-core, mingw-runtime, w32api and mingw32-make.


Was I supposed to download GCC the first time? And what about the Patch and Subversion the second time and w32api the first?

Also to quote code3arena:
Quote
Microsoft Visual C++

When Id wrote Q3 they were using Microsoft Visual C++ for Windows to develop and test the Win32 code. If you've got this compiler then you shouldn't have problems getting going. Tutorial#2 by SumFuka should help.
Aparently M$ Visual isn't so usless after all.

Could anyone please direct me to a site with the tools where anyone can find them without swimming through a huge file site and can it be for M$ Visual C++.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
game compiling
« Reply #15 on: January 07, 2007, 10:08:51 am »
Quote from: "Kuszja"
next_ghost, do you really know what you are doing or are you just tryin gto confuse me? You first said:
Quote
M$ Visual studio is useless for this kind of development. You'll need 4 programs:
- GCC (the port for Windows is called MinGW)
- Make (included in MinGW)
- Patch (optional)
- Subversion (you'll need it to get the latest source code from Tremulous SVN repository)


Then you said:
Quote
You need gcc-core, mingw-runtime, w32api and mingw32-make.


Was I supposed to download GCC the first time? And what about the Patch and Subversion the second time and w32api the first?


If you spend a few seconds on the MinGW download page, you'll notice that these are the names of the only packages you really need. GCC itself is a compiler collection for UNIX-like systems and Windows binary download link redirects to MinGW home page. Don't forget that GCC stands for GNU Compiler Collection while gcc-core means GNU C Compiler core.

Quote
Also to quote code3arena:
Quote
Microsoft Visual C++

When Id wrote Q3 they were using Microsoft Visual C++ for Windows to develop and test the Win32 code. If you've got this compiler then you shouldn't have problems getting going. Tutorial#2 by SumFuka should help.
Aparently M$ Visual isn't so usless after all.

Could anyone please direct me to a site with the tools where anyone can find them without swimming through a huge file site and can it be for M$ Visual C++.


That is true about Q3A. However, Tremulous no longer has official M$VC project files. Unless you can make your own or somehow magically make M$VC import MinGW-compatible Makefile, you're stuck with MinGW.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

Baxter

  • Posts: 182
  • Turrets: +1/-2
    • http://z10.invisionfree.com/The_Evil_Empire/index.php?act=idx
Re: game compiling
« Reply #16 on: January 07, 2007, 10:36:51 am »
Quote from: "gareth"
your an idiot. learn C before you try using it.

yes but a lot of C tags are meaningless when coding in C++ I'm learning C++ now.
Sometimes soon,maybe.]

vcxzet

  • Guest
Re: game compiling
« Reply #17 on: January 07, 2007, 10:53:34 am »
Quote from: "Baxter"
Quote from: "gareth"
your an idiot. learn C before you try using it.

yes but a lot of C tags are meaningless when coding in C++ I'm learning C++ now.

eh?

Kuszja

  • Posts: 72
  • Turrets: +1/-0
game compiling
« Reply #18 on: January 07, 2007, 10:30:42 pm »
So basically Angus altered the q3 files so he could compile them in a UNIX compiler, making them playable on the three major OSs?

next_ghost

  • Posts: 892
  • Turrets: +3/-6
game compiling
« Reply #19 on: January 08, 2007, 11:15:36 am »
Quote from: "Kuszja"
So basically Angus altered the q3 files so he could compile them in a UNIX compiler, making them playable on the three major OSs?


No, he just got rid of M$VC project files because he couldn't maintain them and any serious open source development requires using tools not available in M$VC anyway. The UNIX-compatible Makefile was always there.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

Kuszja

  • Posts: 72
  • Turrets: +1/-0
game compiling
« Reply #20 on: January 08, 2007, 06:07:15 pm »
Ok I googled around and followed the instructions on the dumb quick start guide at MinGW. http://www.mingw.org/MinGWiki/index.php/RealDumbQuickstart?PHPSESSID=50d9f8bb305dc06876912efd0da92ca8
I downloaded all the .tar.gz files, including the g++ one in case I ever needed it for anything.

What files do I need to compile and how do I make them .qvm files?

next_ghost

  • Posts: 892
  • Turrets: +3/-6
game compiling
« Reply #21 on: January 08, 2007, 07:19:00 pm »
- Run MSYS
- cd where/ever/tremulous/trunk/is/
- mingw32-make

And when it finishes, QVM files will magically appear in build/release-whatever/base/vm/.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

Kuszja

  • Posts: 72
  • Turrets: +1/-0
game compiling
« Reply #22 on: January 09, 2007, 01:05:27 am »
tremulous trunk?

Added: I ran mingw32-make in the tremulous-1.1.0-src folder as a test. I started with two *.d not found and ended with the line:
Code: [Select]
C:\msys\1.0\mingw\bin\mingw32-make.exe: *** [build_release] Error 258
I downloaded version 3.80.0-3. I'm going to download v 3.8 and try again.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
game compiling
« Reply #23 on: January 09, 2007, 09:36:07 am »
The main Tremulous source directory for SVN code is called trunk. Were there any other errors other than that single line?
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

Kuszja

  • Posts: 72
  • Turrets: +1/-0
game compiling
« Reply #24 on: January 09, 2007, 02:48:00 pm »
Yea, I realized that later. I haven't used or heard that word in over a year. It's all been java packages for me.

It starts out with:
Code: [Select]
File not found - *.d
C:/msys/1.0/mingw/bin/mingw32-make.exe -C src/tools/lcc install
File not found - *.d


Then it goes off and does stuff and ends with:
Code: [Select]
/usr/bin/sh: -c: line 3: syntax error: unexpected end of file
C:\msys\1.0\mingw\bin\mingw32-make.exe: *** [build_release] Error 258

maci

  • Posts: 83
  • Turrets: +6/-7
game compiling
« Reply #25 on: January 11, 2007, 12:31:14 pm »
just read the god-damn mingw/msys manual

Kuszja

  • Posts: 72
  • Turrets: +1/-0
game compiling
« Reply #26 on: January 16, 2007, 02:52:35 pm »
Do you mean the god damn manual that was never included in the download or the god damn manual that was never refered to on the install page when I last visited it?

If you don't have anything helpful to post, don't post it at all, ever.