Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: markusn82 on December 05, 2006, 12:22:16 am

Title: Project questions
Post by: markusn82 on December 05, 2006, 12:22:16 am
Does the fs2_open HEAD currently build under MSVC_2005?

I'm getting build errors about missing files (I realized some files don't exist so I deleted them from the project) and headers. I've been able to resolve most of them by adding the appropriate include directories for the missing files. However, I haven't been able to find some headers. Are all dependent headers and libraries (except standard win32) included in this module?

Are there makefiles to build from the command line?
Title: Re: Project questions
Post by: Turey on December 05, 2006, 12:38:15 am
I think you need the direct x SDK (which seems stupid to me, but meh.) However, I haven't gotten it to compile either. Help from more experienced coders please?
Title: Re: Project questions
Post by: markusn82 on December 05, 2006, 09:28:46 am
Well looking at the project files, it looks like they included all dx8 libs and headers in the module. It would be strange if they included some dx8 libs and headers and not others. Either this is the case, or i've checked out the wrong build (i've tried the head build and also f2_open_3_6_9).
Title: Re: Project questions
Post by: karajorma on December 05, 2006, 09:41:42 am
What files did it complain about not existing?
Title: Re: Project questions
Post by: Flipside on December 05, 2006, 12:15:12 pm
Might be the OpenAL libraries?
Title: Re: Project questions
Post by: markusn82 on December 05, 2006, 07:01:46 pm
At first I had a lot of missing headers as the project wasn't configured to point to sound/lua/dx8 include paths. After resolving those, I still have the following build errors:

GrZbuffer.cpp
c1xx : fatal error C1083: Cannot open source file: '..\..\code\graphics\GrZbuffer.cpp': No such file or directory
grd3dbatch.cpp
c1xx : fatal error C1083: Cannot open source file: '..\..\code\graphics\grd3dbatch.cpp': No such file or directory
GrD3DParticle.cpp
c1xx : fatal error C1083: Cannot open source file: '..\..\code\graphics\GrD3DParticle.cpp': No such file or directory

Its also complaining about not being able to find ddraw.h, which is not included in fs2_open\dx8sdk. It seems like some Dx8 sdk files are missing. Do I need to have Dx8 SDK installed separately or are all Dx8 dependent libraries & headers included in the module?

Thanks a lot!
Title: Re: Project questions
Post by: taylor on December 05, 2006, 09:47:55 pm
Aside from the MSVC 6 project file, nothing else is really maintained.  Files that get removed or added, or when we add SDK files to the tree, we won't necessarily make those changes to any of the other project files.  You pretty much just have to figure it out for yourself, since I don't think that anyone really keeps up with how many things have changed since various project files have been updated.


EDIT (don't feel like a new post):  The SDKs for DX8, OpenAL, and Ogg Vorbis are included in the source tree.  You simply have to set the directories properly in the project setup to use them.  Other than the platform SDK, the speech SDK, and MSVC, you shouldn't need anything else other than a CVS checkout and a properly setup project file.
Title: Re: Project questions
Post by: neoterran on December 05, 2006, 11:15:24 pm
It's a real ***** to set up. I think i got a working build once through much trial and error and from converting the visualinterdev6 project file, but you'll definately need the windows sdk, directx sdk, and the audio sdk (openal) at the very least.

But, i'm a ruby/C# developer so this project was really pretty much beyond me and my current capabilties. I still enjoy hearing from taylor on how it's going tho :D
Title: Re: Project questions
Post by: Turey on December 06, 2006, 12:52:45 am
/me wishes someone would PM/IM/Email him a link to a download of MSVC 6.
Title: Re: Project questions
Post by: Nuke on December 06, 2006, 02:49:18 am
i remember when i was messing around with compiling it under linux, i had to download alot of stuff to get it to compile. it was a real pita, and im no coder.
Title: Re: Project questions
Post by: Goober5000 on December 06, 2006, 12:09:20 pm
/me wishes someone would PM/IM/Email him a link to a download of MSVC 6.

There are some free compiler alternatives in the sticky threads in this very forum.  MSVC++ Express is worth checking out.
Title: Re: Project questions
Post by: Turey on December 06, 2006, 02:25:25 pm
There are some free compiler alternatives in the sticky threads in this very forum.  MSVC++ Express is worth checking out.

I tried that one, but couldn't get it to work right. I got the DirectX SDK and everything.

What I really want is for it to work in Eclipse, but oddly enough, the Eclipse C/C++ editor doesn't seem to come with its own compiler, and I couldn't get any of the other compilers working right.
Title: Re: Project questions
Post by: neoterran on December 19, 2006, 06:52:33 pm
I've gotten it to build by importing the MSVC6 project file (converting it to VS2005 project) and by sacrificing some virgins to the coder gods. and adding a bunch of references to various SDKs, messing around forever with the build settings, etc. But it DID build in the end.

That's one massively horrible looking project btw.