Missing files while Compiling in Visual Studio 2008

Missing files while Compiling in Visual Studio 2008

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
skzedd
Posts: 10
Joined: 06 Feb 2010, 14:28

Missing files while Compiling in Visual Studio 2008

Post by skzedd »

Hello I am new to the forum. I downloaded the files and folowed the instructions in the wiki. Please help.
Spring version: spring_0.81.1.3/Visual Studio 2008(Enterprise edition)
1>SelectMenu.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\..\Game\SelectMenu.cpp': No such file or directory
1>LuaCameraCtrl.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\..\Game\Camera\LuaCameraCtrl.cpp': No such file or directory
1>CommanderScript2.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\..\Game\StartScripts\CommanderScript2.cpp': No such file or directory
1>UnitSet.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\..\Sim\Units\UnitSet.cpp': No such file or directory
1>UnitScriptNames.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\..\Sim\Units\COB\UnitScriptNames.cpp': No such file or directory
1>FeatureSet.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\..\Sim\Features\FeatureSet.cpp': No such file or directory
1>Generating Code...
1>Build log was saved at "file://c:\Documents and Settings\skz_edd\My Documents\My Music\spring_0.81.1.3\rts\build\vstudio9\Debug\BuildLog.htm"
1>rts - 7 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Missing files while Compiling in Visual Studio 2008

Post by Tobi »

Remove the files from the project and try again.

Possibly you'll then need to add a few files to get it to link, since apparently the project file isn't entire up to date in the release.

Alternatively you could check out the master branch from github and see if there the project file is up to date.
User avatar
skzedd
Posts: 10
Joined: 06 Feb 2010, 14:28

Re: Missing files while Compiling in Visual Studio 2008

Post by skzedd »

Thanks that helped. But now i have a different problem.
>Linking...
1> Creating library ../../../game/spring.lib and object ../../../game/spring.exp
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
>AICallback.obj : error LNK2019: unresolved external symbol "pu
>Building.obj : error LNK2001: unresolved external symbol "public: struct S3DModel
This is a sample of the errors I am getting. there are a lot more but all of them are in that range. Any ideas what I did wrong.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Missing files while Compiling in Visual Studio 2008

Post by Beherith »

You have to do a clean and rebuild if you remove files from project.
User avatar
skzedd
Posts: 10
Joined: 06 Feb 2010, 14:28

Re: Missing files while Compiling in Visual Studio 2008

Post by skzedd »

Did it did not help.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Missing files while Compiling in Visual Studio 2008

Post by zerver »

Your project is missing some files, you need to add them. For example for "S3DModel" you need to add 3DModel.cpp. You can use "Find in Files" to determine where the missing stuff is defined.

Please note, IF 3dmodel.cpp already is in your project then your compiler is bugged. Restart it. If it still does not help, kill any compiler-related processes with task manager or restart your computer.
User avatar
skzedd
Posts: 10
Joined: 06 Feb 2010, 14:28

Re: Missing files while Compiling in Visual Studio 2008

Post by skzedd »

zerver wrote:Your project is missing some files, you need to add them. For example for "S3DModel" you need to add 3DModel.cpp. You can use "Find in Files" to determine where the missing stuff is defined.

Please note, IF 3dmodel.cpp already is in your project then your compiler is bugged. Restart it. If it still does not help, kill any compiler-related processes with task manager or restart your computer.
Well the project is untouched. I just downloaded it from the wiki. It did not compile giving me the first errors. So i deleted the files but then it gave me this http://pastebin.com/m18d994e9 now I am stuck could anybody recommend an easier way to get it running. Maybe a different IDE.
P.S. The files are in the project. And I restarted the pc twice.
Last edited by skzedd on 16 Feb 2010, 00:20, edited 1 time in total.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: Missing files while Compiling in Visual Studio 2008

Post by BrainDamage »

try to generate a project using cmake ( http://cmake.org )
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Missing files while Compiling in Visual Studio 2008

Post by Beherith »

Everything should work if you do the following steps:
Get spring sauce, preferably 81.1.3
Get vclibs v4
Open vcproj file
Remove System/filesystem/ all hpi related stuff ( a directory, a cpp and )
Add vclibs/include to path
Remove dsound.lib from linker inputs.
Compile.

But to be honest, Im using vs 2005, and spring compiles just flawlessly on it.
User avatar
skzedd
Posts: 10
Joined: 06 Feb 2010, 14:28

Re: Missing files while Compiling in Visual Studio 2008

Post by skzedd »

Thanks swiching to vs2005 helped. The code compiled.
But what is zlibwapi.dll?(the code does not want to run without it)
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Missing files while Compiling in Visual Studio 2008

Post by Beherith »

7zip dll. Just copy over all the dll files from your spring install.

also, dont forget BASE content. you can get latest base from buildbot in the #buildserv channel
Post Reply

Return to “Help & Bugs”