Well, I pull the spring code from git, I got error messages with msvc compile.
I try to looking for these files in rts folder, but not find anything.
What do i do?
Compile error log:
Error 5 fatal error C1083: Cannot open source file: '..\..\ExternalAI\AILegacySupport.cpp': No such file or directory c1xx rts
Error 37 fatal error C1083: Cannot open source file: '..\..\Game\SelectionWidget.cpp': No such file or directory c1xx rts
Error 38 fatal error C1083: Cannot open source file: '..\..\Game\SelectMenu.cpp': No such file or directory c1xx rts
Error 55 fatal error C1083: Cannot open source file: '..\..\Game\Camera\LuaCameraCtrl.cpp': No such file or directory c1xx rts
Error 56 fatal error C1083: Cannot open source file: '..\..\Game\StartScripts\AirScript.cpp': No such file or directory c1xx rts
Error 57 fatal error C1083: Cannot open source file: '..\..\Game\StartScripts\CommanderScript.cpp': No such file or directory c1xx rts
Error 58 fatal error C1083: Cannot open source file: '..\..\Game\StartScripts\CommanderScript2.cpp': No such file or directory c1xx rts
Error 59 fatal error C1083: Cannot open source file: '..\..\Game\StartScripts\EmptyScript.cpp': No such file or directory c1xx rts
Error 60 fatal error C1083: Cannot open source file: '..\..\Game\StartScripts\LoadScript.cpp': No such file or directory c1xx rts
Error 61 fatal error C1083: Cannot open source file: '..\..\Game\StartScripts\Script.cpp': No such file or directory c1xx rts
Error 62 fatal error C1083: Cannot open source file: '..\..\Game\StartScripts\ScriptHandler.cpp': No such file or directory c1xx rts
Error 63 fatal error C1083: Cannot open source file: '..\..\Game\StartScripts\SkirmishAITestScript.cpp': No such file or directory c1xx rts
Error 64 fatal error C1083: Cannot open source file: '..\..\Game\StartScripts\SpawnScript.cpp': No such file or directory c1xx rts
Error 65 fatal error C1083: Cannot open source file: '..\..\Game\StartScripts\TestScript.cpp': No such file or directory c1xx rts
Error 67 fatal error C1083: Cannot open source file: '..\..\Rendering\FontTexture.cpp': No such file or directory c1xx rts
Error 78 fatal error C1083: Cannot open source file: '..\..\Rendering\UnitModels\3DModel.cpp': No such file or directory c1xx rts
Error 79 fatal error C1083: Cannot open source file: '..\..\Rendering\UnitModels\3DOParser.cpp': No such file or directory c1xx rts
Error 80 fatal error C1083: Cannot open source file: '..\..\Rendering\UnitModels\IModelParser.cpp': No such file or directory c1xx rts
Error 81 fatal error C1083: Cannot open source file: '..\..\Rendering\UnitModels\s3oParser.cpp': No such file or directory c1xx rts
Error 82 fatal error C1083: Cannot open source file: '..\..\Rendering\UnitModels\UnitDrawer.cpp': No such file or directory c1xx rts
Error 106 fatal error C1083: Cannot open source file: '..\..\Sim\Units\UnitTracker.cpp': No such file or directory c1xx rts
Error 107 fatal error C1083: Cannot open source file: '..\..\Sim\Units\Cob\CobEngine.cpp': No such file or directory c1xx rts
Error 108 fatal error C1083: Cannot open source file: '..\..\Sim\Units\Cob\CobFile.cpp': No such file or directory c1xx rts
Error 109 fatal error C1083: Cannot open source file: '..\..\Sim\Units\Cob\CobInstance.cpp': No such file or directory c1xx rts
Error 110 fatal error C1083: Cannot open source file: '..\..\Sim\Units\Cob\CobThread.cpp': No such file or directory c1xx rts
Error 111 fatal error C1083: Cannot open source file: '..\..\Sim\Units\COB\LuaUnitScript.cpp': No such file or directory c1xx rts
Error 112 fatal error C1083: Cannot open source file: '..\..\Sim\Units\COB\NullUnitScript.cpp': No such file or directory c1xx rts
Error 113 fatal error C1083: Cannot open source file: '..\..\Sim\Units\COB\UnitScript.cpp': No such file or directory c1xx rts
Error 114 fatal error C1083: Cannot open source file: '..\..\Sim\Units\COB\UnitScriptEngine.cpp': No such file or directory c1xx rts
Error 115 fatal error C1083: Cannot open source file: '..\..\Sim\Units\COB\UnitScriptFactory.cpp': No such file or directory c1xx rts
Error 116 fatal error C1083: Cannot open source file: '..\..\Sim\Units\COB\UnitScriptNames.cpp': No such file or directory c1xx rts
Error 198 fatal error C1083: Cannot open source file: '..\..\Sim\Path\PathCache.cpp': No such file or directory c1xx rts
Error 199 fatal error C1083: Cannot open source file: '..\..\Sim\Path\PathEstimator.cpp': No such file or directory c1xx rts
Error 200 fatal error C1083: Cannot open source file: '..\..\Sim\Path\PathFinder.cpp': No such file or directory c1xx rts
Error 201 fatal error C1083: Cannot open source file: '..\..\Sim\Path\PathManager.cpp': No such file or directory c1xx rts
Error 214 fatal error C1083: Cannot open source file: '..\..\Sim\Features\FeatureSet.cpp': No such file or directory c1xx rts
Error 215 fatal error C1083: Cannot open source file: '..\..\System\Demo.cpp': No such file or directory c1xx rts
Error 216 fatal error C1083: Cannot open source file: '..\..\System\DemoReader.cpp': No such file or directory c1xx rts
Error 217 fatal error C1083: Cannot open source file: '..\..\System\DemoRecorder.cpp': No such file or directory c1xx rts
Error 220 fatal error C1083: Cannot open source file: '..\..\System\InputHandler.cpp': No such file or directory c1xx rts
Error 221 fatal error C1083: Cannot open source file: '..\..\System\Messages.cpp': No such file or directory c1xx rts
Error 222 fatal error C1083: Cannot open source file: '..\..\System\MouseInput.cpp': No such file or directory c1xx rts
Error 225 fatal error C1083: Cannot open source file: '..\..\System\FileSystem\ArchiveHPI.cpp': No such file or directory c1xx rts
Error 226 fatal error C1083: Cannot open source file: '..\..\lib\hpiutil2\hpientry.cpp': No such file or directory c1xx rts
Error 227 fatal error C1083: Cannot open source file: '..\..\lib\hpiutil2\hpifile.cpp': No such file or directory c1xx rts
Error 228 fatal error C1083: Cannot open source file: '..\..\lib\hpiutil2\hpiutil.cpp': No such file or directory c1xx rts
Error 229 fatal error C1083: Cannot open source file: '..\..\lib\hpiutil2\scrambledfile.cpp': No such file or directory c1xx rts
Error 230 fatal error C1083: Cannot open source file: '..\..\lib\hpiutil2\sqshstream.cpp': No such file or directory c1xx rts
Error 231 fatal error C1083: Cannot open source file: '..\..\lib\hpiutil2\substream.cpp': No such file or directory c1xx rts
Error 237 fatal error C1083: Cannot open source file: '..\..\System\LoadInterface.cpp': No such file or directory c1xx rts
Error 238 fatal error C1083: Cannot open source file: '..\..\System\LoadSaveHandler.cpp': No such file or directory c1xx rts
Error 239 fatal error C1083: Cannot open source file: '..\..\System\LoadSaveInterface.cpp': No such file or directory c1xx rts
Error 240 fatal error C1083: Cannot open source file: '..\..\System\SaveInterface.cpp': No such file or directory c1xx rts
Error 241 fatal error C1083: Cannot open source file: '..\..\System\Sound\AudioChannel.cpp': No such file or directory c1xx rts
Error 242 fatal error C1083: Cannot open source file: '..\..\System\Sound\Music.cpp': No such file or directory c1xx rts
Error 243 fatal error C1083: Cannot open include file: 'efx.h': No such file or directory c:\work\project\spring\rts\system\sound\EFX.h rts 10
Error 244 fatal error C1083: Cannot open include file: 'efx.h': No such file or directory c:\work\project\spring\rts\system\sound\EFX.h rts 10
Some source file is missing?
Moderator: Moderators
Re: Some source file is missing?
Edit:
MSVC isn't maintained (esp. because each MSVC version introduces new incompatibilities). You need to get all dependencies yourself.
There is a totally outdated package in the github download section you can use as starting point.
Or better install mingw.
Edit2:
PS: Also it seems you tried to compile it from the wrong folder. The main cmake file is in ./ and not ./rts/.
MSVC isn't maintained (esp. because each MSVC version introduces new incompatibilities). You need to get all dependencies yourself.
There is a totally outdated package in the github download section you can use as starting point.
Or better install mingw.
Edit2:
PS: Also it seems you tried to compile it from the wrong folder. The main cmake file is in ./ and not ./rts/.
Re: Some source file is missing?
thanks jk!jK wrote:Edit:
MSVC isn't maintained (esp. because each MSVC version introduces new incompatibilities). You need to get all dependencies yourself.
There is a totally outdated package in the github download section you can use as starting point.
Or better install mingw.
i have got the vs2008 dependence vclibs and put it to root folder. it's work.
my problem is the msvc project tree include code file Game\SelectMenu.cpp, but it's not exist. see https://github.com/spring/spring/tree/master/rts/Game.
i pull the code url from git://github.com/spring/spring.git
Re: Some source file is missing?
cmake can generate MSVC projects. Use it.