News:

Come Chat with us live! Learn how HERE!

Main Menu

game compiling

Started by Kuszja, December 28, 2006, 04:31:37 AM

Kuszja

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

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

your an idiot. learn C before you try using it.

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.

vcxzet

Quote from: KuszjaThank 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

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

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

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#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| #
|.@.-##
-----

Risujin

Quote from: vcxzetif 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

Quote from: KuszjaOk, 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

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

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

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

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

next_ghost, do you really know what you are doing or are you just tryin gto confuse me? You first said:
QuoteM$ 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:
QuoteYou 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:
QuoteMicrosoft 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

Quote from: Kuszjanext_ghost, do you really know what you are doing or are you just tryin gto confuse me? You first said:
QuoteM$ 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:
QuoteYou 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.

QuoteAlso to quote code3arena:
QuoteMicrosoft 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

Quote from: garethyour 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

Quote from: Baxter
Quote from: garethyour 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

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

Quote from: KuszjaSo 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

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

- 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

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

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

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: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:/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

just read the god-damn mingw/msys manual

Kuszja

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.