Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Telemachos on October 01, 2006, 07:53:25 am

Title: Compile problems with VS2003 - Missing files? bad includes?
Post by: Telemachos on October 01, 2006, 07:53:25 am
Hello,

I just pulled down the source from CVS and am trying to compile it using MS Visual Studio 2003.  I seem to be getting stuck on a couple of things.

It doesn't like the includes for the lua stuff.  I'm getting the following error:
Code: [Select]
c:\Development\fs2_open\code\parse\lua.h(5): fatal error C1083: Cannot open include file: 'lauxlib.h': No such file or directory

Now I've been able to fix that by prepending ../../lua/ to the include but I know thats not the "Right Way" to fix it.  I tried adding ../../lua to the Additional Include Directories but it doesn't seem to want to work.  Any idea how to fix that?

Also I seem to be missing a couple of files.  I'm getting the following errors:

Code: [Select]
code fatal error C1083: Cannot open source file: '\Development\fs2_open\code\graphics\GrD3DParticle.cpp': No such file or directory
code fatal error C1083: Cannot open source file: '\Development\fs2_open\code\graphics\grd3dbatch.cpp': No such file or directory

I checked and it looks like the files are not there....

Any idea what I need to do?
Title: Re: Compile problems with VS2003 - Missing files? bad includes?
Post by: Telemachos on October 01, 2006, 09:23:35 am
Ok,  not quite sure what happened but my problem with the includes went away... I exited VS and went back in, then did a build and I no longer get that error.  I do still get the missing file errors though...
Title: Re: Compile problems with VS2003 - Missing files? bad includes?
Post by: karajorma on October 01, 2006, 09:32:07 am
All I can suggest is trying a CVS update. You shouldn't actually have GrD3DParticle.cpp IIRC because it was removed a little while back. You should have the second one though (I do at least) so it doesn't sound like simply using an old project file (which was my first thought) if you're saying that both files are definitely missing.
Title: Re: Compile problems with VS2003 - Missing files? bad includes?
Post by: Telemachos on October 01, 2006, 09:54:34 am
I definitely don't have either file.  I did a dir grd2d* on the graphics folder and here are the results


 Directory of C:\Development\fs2_open\code\graphics

09/30/2006  01:02 PM           103,503 grd3d.cpp
09/30/2006  01:02 PM            12,070 grd3d.h
05/28/2006  02:40 PM            30,265 grd3dbmpman.cpp
05/27/2006  01:07 PM             1,400 grd3dbmpman.h
05/27/2006  01:07 PM            18,926 grd3dcalls.cpp
09/30/2006  01:02 PM            31,366 grd3dinternal.h
06/01/2006  12:44 AM            10,535 grd3dlight.cpp
05/27/2006  01:07 PM               489 grd3dlight.h
09/30/2006  01:02 PM           119,790 grd3drender.cpp
09/11/2006  02:36 AM            49,328 grd3dsetup.cpp
05/27/2006  01:07 PM               156 grd3dsetup.h
09/30/2006  01:02 PM             1,473 GrD3DStateBlock.cpp
09/30/2006  01:02 PM               370 GrD3DStateBlock.h
09/30/2006  01:02 PM            48,340 grd3dtexture.cpp
              14 File(s)        428,011 bytes
               0 Dir(s)  16,903,593,984 bytes free


and if GrD3DParticle.cpp was removed, shouldn't that not cause an error unless something is still referencing it?

I'm also getting another missing file

Code: [Select]
C:\Development\fs2_open\code\freespace2\freespace.rc(412): error RC2135 : file not found: ..\..\code\sound\phrases.cfg

Should I be using other options in CVS to get a certain release?  I've been either not setting anything or selecting "HEAD".  I haven't used CVS is about 3 years and I've forgotten everything I knew about it...

 
Title: Re: Compile problems with VS2003 - Missing files? bad includes?
Post by: karajorma on October 01, 2006, 11:57:33 am
I wouldn't suggest getting the HEAD branch to start with. the 3.6.9 branch is much more stable.

Here (http://www.hard-light.net/forums/index.php/topic,41234.msg842224.html#msg842224)'s a guide on using TortoiseCVS to get it.

Your graphics folder is definitely smaller than it should be. I have 41 files in there plus the gl and CVS folders.
Title: Re: Compile problems with VS2003 - Missing files? bad includes?
Post by: Telemachos on October 01, 2006, 01:29:41 pm
Karajorma,  I figured out my graphics problem.  The VB project was still refering to the files.  Figured that out when you said you have 41 file in the graphics folder.  Thats how many I have, I just did a DIR on the GRD3D files before since I was just looking for the "missing" files. 

I've been using winCVS (it's what I'm familiar with) but I think I'll install tortoise.

Now the only compile error I'm getting is the phrases.cfg one.  It is referenced by freespace.rc.  I searched the folders and I found a phrases.xml but no phrases.cfg.
Title: Re: Compile problems with VS2003 - Missing files? bad includes?
Post by: Goober5000 on October 01, 2006, 01:37:34 pm
Now the only compile error I'm getting is the phrases.cfg one.  It is referenced by freespace.rc.  I searched the folders and I found a phrases.xml but no phrases.cfg.

It's generated from phrases.xml.
Title: Re: Compile problems with VS2003 - Missing files? bad includes?
Post by: Telemachos on October 01, 2006, 02:28:37 pm
Any idea what I've got to do to generate it?
Title: Re: Compile problems with VS2003 - Missing files? bad includes?
Post by: WMCoolmon on October 01, 2006, 07:17:57 pm
Well, I'd suggest using the MSVC_7 project files...those are the ones that I specifically updated within the last month to work properly with everything. You will have to change the outputs from "D:\Freespace2" to your Freespace 2 directory. I'm not sure why we've got two folders for one version of MSVC.

Other than that, here is the build step info for phrases.xml

(http://fs2source.warpcore.org/temp/wmc/phrases.gif)