Superbuild on Windows: Difference between revisions

→‎Troubleshootings: FIX: Visual C++ compilers are removed when you upgrade Visual Studio 2010
(Reference added about the CMake 3.0 possible issue.)
(→‎Troubleshootings: FIX: Visual C++ compilers are removed when you upgrade Visual Studio 2010)
Line 95: Line 95:
* Some people experience problem with CMake >= 3.0, so if you get the following error when the solution is building, switch to CMake 2.8.12<ref>[http://forum.flightgear.org/viewtopic.php?f=45&t=23381 A post in the compiling support forum]</ref>:
* Some people experience problem with CMake >= 3.0, so if you get the following error when the solution is building, switch to CMake 2.8.12<ref>[http://forum.flightgear.org/viewtopic.php?f=45&t=23381 A post in the compiling support forum]</ref>:
   error MSB6006: "cmd.exe" exited with code 1
   error MSB6006: "cmd.exe" exited with code 1
* It is possible you get an error such as "Failed to open font file" although the font exist at the location specified. In this case, this is due to the missing OSG plugin <tt></tt>osgdb_freetype.dll in <tt></tt>D:\Projets\fginstall\msvc110-64\OpenSceneGraph\bin for example. Personally, I did dot start thinking about the problem. Sorry...
* It is possible you get an error such as "Failed to open font file" although the font exist at the location specified. In this case, this is due to the missing OSG plugin <tt></tt>osgdb_freetype.dll in <tt></tt>D:\Projets\fginstall\msvc110-64\OpenSceneGraph\bin for example. Personally, I did dot start thinking about the problem. Sorry...
* If Visual Studio 2010 Express is upgraded with SP1, then the x64-based compilers, IA-64-based compilers, and any associated Visual C++ library files are removed, therefore CMake will be unable to find the needed compilers when attempting a x64-based build, producing the errors:
<pre>-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:47 (PROJECT):
  No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:47 (PROJECT):
  No CMAKE_CXX_COMPILER could be found.
-- Configuring incomplete, errors occurred!</pre>
to resolve this, apply the following patch from the Microsoft Download Center.<ref>https://support.microsoft.com/en-us/kb/2519277 FIX: Visual C++ compilers are removed when you upgrade Visual Studio 2010 Professional or Visual Studio 2010 Express to Visual Studio 2010 SP1 if Windows SDK v7.1 is installed</ref>




272

edits