I can’t compile any project using VS2017 if using Windows 7.1 SDK, it gives me this error:
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(57,5): error : Required file “” is missing.
I tried searching all over the internet and the only solution found is installing VS2010, but the main tutorial of panda3d don’t uses this version of VS, so I suppose there is another solution?
Please help.
Which version of Panda3D are you using? Did you grab 1.9.4 or a development build?
Either way, it may be worth trying to grab a recent development build of Panda3D, since the development builds are built against the v140_xp toolset, which may be more accessible/reliable than the Windows7.1SDK toolset.
Could you post a zip archive containing your project so that we can try and see if we also get the same error?
By the way, when I Google the error, I do get suggestions on instalilng the Visual C++ 2010 Redistributable. I do suggest trying this if you have not already; the Redistributable is a small download containing runtime libraries and does not contain the VC++ 2010 compilers or IDE.
The project has no source files added to it? That might explain the error message. Perhaps the guide is not clear about it, but you should try adding the source file from the Hello World tutorial.
Then I opened your solution and built it. To be able to build it I had to add the C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE directory to my Path (in my system environment variable settings, not in VS) and reboot, and I also had to change the “Include Directories” and “Library Directories” settings in the “VC++ Directories” tab in the project settings to tick the “Inherit from parent or project defaults” checkbox in the “Edit” dialog (not the same-named option in the dropdown).
Then, it built and ran just fine. If after all these steps you cannot build the project, it must be some problem with your compiler, Windows SDK or Visual Studio set-up.
I do really recommend you use a development build of Panda3D, by the way. You no longer need to use the ancient Windows 7.1 SDK with that. You can still target Windows XP if needed by selecting the v14*_xp toolsets.