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
Missing files while Compiling in Visual Studio 2008
Moderator: Moderators
Re: Missing files while Compiling in Visual Studio 2008
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.
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.
Re: Missing files while Compiling in Visual Studio 2008
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.
>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.
Re: Missing files while Compiling in Visual Studio 2008
You have to do a clean and rebuild if you remove files from project.
Re: Missing files while Compiling in Visual Studio 2008
Did it did not help.
Re: Missing files while Compiling in Visual Studio 2008
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.
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.
Re: Missing files while Compiling in Visual Studio 2008
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.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.
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.
- BrainDamage
- Lobby Developer
- Posts: 1164
- Joined: 25 Sep 2006, 13:56
Re: Missing files while Compiling in Visual Studio 2008
try to generate a project using cmake ( http://cmake.org )
Re: Missing files while Compiling in Visual Studio 2008
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.
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.
Re: Missing files while Compiling in Visual Studio 2008
Thanks swiching to vs2005 helped. The code compiled.
But what is zlibwapi.dll?(the code does not want to run without it)
But what is zlibwapi.dll?(the code does not want to run without it)
Re: Missing files while Compiling in Visual Studio 2008
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
also, dont forget BASE content. you can get latest base from buildbot in the #buildserv channel