Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Grizzly on March 22, 2007, 12:28:46 pm

Title: QUESTION: How do I build CVS Builds myself?
Post by: Grizzly on March 22, 2007, 12:28:46 pm
Because I am inpatient.
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: karajorma on March 22, 2007, 12:32:36 pm
It's not particularly hard once you have things sorted out. What you need though is a suitable compiler. Do you have one?
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: Grizzly on March 23, 2007, 03:23:26 pm
No.
Next question: where do I get one?

Actually, I do remember we had visual studio laying somewhere around here...
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: Mars on March 23, 2007, 11:11:07 pm
I've been wondering about a good compiler for Windoze myself.
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: WMCoolmon on March 24, 2007, 01:04:52 am
There are two sticky threads about compilers for Windows.
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: Grizzly on March 24, 2007, 05:28:45 am
OK, got one (dev-C++), what do I do now?
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: karajorma on March 24, 2007, 05:50:47 am
Right, first thing you need to do is get hold of the code.

I highly recommend using TortoiseCVS and following the guide I posted here (http://www.hard-light.net/forums/index.php/topic,41234.msg842224.html#msg842224).

Then you need to open the project file (If there is one that Dev-C++ can understand) and compile/link it. Can't really help you there as I've never touched Dev-C++
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: chief1983 on March 24, 2007, 06:02:40 am
If Dev-C++ doesn't work out, I'd recommend Visual Studio 2005 Express or Code::Blocks.  Both are free and can handle visual studio .proj files.  If you need links I can dig them out later but Google should lead you in the right direction.  I used to use Dev-C++, but when I realized it had not been updated for several years, I had to switch to something a little more recent.
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: Grizzly on March 24, 2007, 06:10:21 am
TortioseCVS!! I used to get the latest vegastrike (with the exe already compiled by the way) with SVN.

Thanks for the help people.
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: karajorma on March 24, 2007, 09:45:16 am
Well surely that was TortoiseSVN (http://tortoisesvn.tigris.org/) then? :p But yeah, Tortoise is great.
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: Grizzly on March 25, 2007, 01:53:20 pm
So... What Do I do now? I tried build but I get a lot of fatal error C1083's.

I use Visual C++ Expres edition
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: karajorma on March 25, 2007, 04:57:17 pm
What did it say apart from the number?
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: Grizzly on March 25, 2007, 11:03:14 pm
cannot open file.
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: karajorma on March 26, 2007, 03:00:24 am
You weren't trying to build FS2 or FRED when you had a copy open already?

Cause I've seen that exact error a few times when I've built FRED2_Open while building a mission.

The rest of the time I'd expect a compiler or linker error to be much more esoteric than a simple "Cannot find file"
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: Grizzly on March 26, 2007, 07:19:41 am
d:\downloads\games\freespace2\cores\latest\fs2_open\code\weapon\flak.cpp(70) : fatal error C1083: Cannot open include file: 'weapon/flak.h': No such file or directory
muzzleflash.cpp
d:\downloads\games\freespace2\cores\latest\fs2_open\code\weapon\muzzleflash.cpp(106) : fatal error C1083: Cannot open include file: 'globalincs/systemvars.h': No such file or directory
shockwave.cpp
d:\downloads\games\freespace2\cores\latest\fs2_open\code\weapon\shockwave.cpp(368) : fatal error C1083: Cannot open include file: 'weapon/shockwave.h': No such file or directory
swarm.cpp
d:\downloads\games\freespace2\cores\latest\fs2_open\code\weapon\swarm.cpp(135) : fatal error C1083: Cannot open include file: 'weapon/swarm.h': No such file or directory
trails.cpp

strangely, there is such file or directory
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: karajorma on March 26, 2007, 09:14:57 am
That is odd indeed. What happens if you open say weapon\shockwave.cpp and try to compile it?
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: Grizzly on March 27, 2007, 11:58:46 am
------ Build started: Project: code, Configuration: Debug Win32 ------
Compiling...
shockwave.cpp
d:\downloads\games\freespace2\cores\latest\fs2_open\code\weapon\shockwave.cpp(368) : fatal error C1083: Cannot open include file: 'weapon/shockwave.h': No such file or directory
Build log was saved at "file://d:\Downloads\Games\Freespace2\Cores\Latest\fs2_open\projects\MSVC_2005\Debug\BuildLog.htm"
code - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

including bui... FRED!!! (yeah, thats my new curse word) can't upload HTM Files!
Title: Re: QUESTION: How do I build CVS Builds myself?
Post by: WMCoolmon on March 29, 2007, 04:20:48 am
Does the file exist?

If it does, it sounds to me like the default include directories for MSVC2005 are messed. Try changing the "code" and "freespace2" (and probably "fred2") projects to include
Quote
../../code

Semicolons or commas are used to separate different default include directories. (I don't remember which it is)