Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: hobbes_dmS on February 23, 2006, 06:12:21 am

Title: Newbie's compiling problems
Post by: hobbes_dmS on February 23, 2006, 06:12:21 am
Hi,
I'm the new guy.
I found Hard Light by surfing the Galactica Btrl-Mod Forums and I'd really love to join the FS2-Mod-community.
So far I downloaded the CVS (using the anonymous login) using this tutorial (http://scp.indiegames.us/e107_plugins/custompages/CVS%20-%20Getting%20Started.php)
and i installed the compilers as stated on this page (http://scp.indiegames.us/e107_plugins/custompages/Compiler.php).

First question: was that the right thing to do?
Second: I'm getting several compiling errors, some regarding missing includes (thoug I'm quite shure I've set the paths in my "vcvars32.bat" right, some about a Syntax-Error in the file
D:\Programme\Microsoft Platform SDK\Include\.\strmif.h(27614)
Something about a missing ';' before 'lpSurf'. I checked the file and the syntax seems fine...

Thanx for your help

hobbes


Title: Re: Newbie's compiling problems
Post by: WMCoolmon on February 23, 2006, 10:59:27 pm
Can you give more of the compile output, it'd be helpful to see which freespace 2 file is having trouble trying to include the file and maybe the exact error itself.

Right now I'm totally lost, as it sounds like it's a compiler error in the default file (which is essentially never the case with big SDKs like this).
Title: Re: Newbie's compiling problems
Post by: hobbes_dmS on February 24, 2006, 05:55:48 am
Hi,
you can find the output here:
http://www.mi-wgnetz.de/wolf/output.txt

I hope it helps, but i doubt it, since I have a german Windows, so all of the error-messages are in german...

some translations: :)
Include-Datei kann nicht geoeffnet werden =>Include-file can not be opened
 Syntaxfehler : Fehlendes ';' vor Bezeichner 'lpSurf'  =>Syntax error: Missing ";" before identifier 'lpSurf'
 Fehlende Speicherklasse oder Typbezeichner => Missing memoryclass (?) or  typeidentifier
Bezeichner => identifier

I guess i will try compiling it with VisualStudio6...
If that doesn't work, I'll try .NET  :ick:
Title: Re: Newbie's compiling problems
Post by: WMCoolmon on February 24, 2006, 10:41:32 am
Looks like you're missing the DirectX SDK, and the Ogg vorbis SDK in the CVS downloaded isn't part of the include path.
Title: Re: Newbie's compiling problems
Post by: karajorma on February 24, 2006, 11:06:10 am
Doesn't help that you've got your compiler on it's highest warning setting. When I did that the warnings jumped from 3 to 1100! :eek:

The current CVS is missing all the D3D8 files though. I had to place them in the D3D8 folder before I could get FS2 to compile myself.
Title: Re: Newbie's compiling problems
Post by: hobbes_dmS on March 21, 2006, 08:55:57 am
Hi there, it's me again.
I finally found some time to try to compile again.
anyway, now the linking-process goes horribly wrong:
http://www.mi-wgnetz.de/wolf/output_2.txt
did anybody have this before?
Title: Re: Newbie's compiling problems
Post by: Mindripper2000 on March 24, 2006, 01:08:25 pm
I'm getting the EXACT same errors as you. Does anyone have a solution to this?

I downloaded everything, including the DirectX 9.0b sdk. Only thing was that I did not install runtime as I already have direct x 9.0c runtime installed. 
Title: Re: Newbie's compiling problems
Post by: WMCoolmon on March 24, 2006, 03:15:12 pm
Looks like it hasn't been updated to include new directories, libjpeg, or lua.
Title: Re: Newbie's compiling problems
Post by: Backslash on March 28, 2006, 05:40:38 am
I'm running into the same problems...

I tried to update it to include the new libjpeg and lua directories, but it is still giving me unresolved external symbol errors, many mentioning lua (as far as I can tell)...
I'm using VisualStudio2003 --

--Edit:  well there's my problem, then.  :p  I took some project files (particularly Lua) from the MSVC_7 folder, added them to the MSVC_2003 folder, and it works after a couple tweaks.  I'll be glad to provide the modified solution/project files if anyone still has trouble.