i am currently trying to build FG from source code according to the documentation at wiki (gui compilation):
http://wiki.flightgear.org/Building_using_CMake_-_Windows
The installation (Visual Studio 2017 with MSVC 1911 and Platform toolset version 141) of SimGear seems to work after adjusting some cmake variables. At least I have no error in both the Cmake configure/generate procedure and the Visual Studio build and install procedure.
But When i do the steps for FlightGear I get an error during the build process in Visual Studio:
- Code: Select all
1>------ Build started: Project: fglauncher_autogen, Configuration: Release x64 ------
1>Automatic MOC for target fglauncher
2>------ Build started: Project: fgcom, Configuration: Release x64 ------
3>------ Build started: Project: fglauncher, Configuration: Release x64 ------
4>------ Build started: Project: fgpanel, Configuration: Release x64 ------
5>------ Skipped Build: Project: Experimental, Configuration: Release x64 ------
5>Project not selected to build for this solution configuration
6>------ Skipped Build: Project: Continuous, Configuration: Release x64 ------
6>Project not selected to build for this solution configuration
2>fgcom.cxx
7>------ Skipped Build: Project: NightlyMemoryCheck, Configuration: Release x64 ------
7>Project not selected to build for this solution configuration
8>------ Skipped Build: Project: Nightly, Configuration: Release x64 ------
8>Project not selected to build for this solution configuration
9>------ Skipped Build: Project: uninstall, Configuration: Release x64 ------
9>Project not selected to build for this solution configuration
10>------ Skipped Build: Project: RUN_TESTS, Configuration: Release x64 ------
10>Project not selected to build for this solution configuration
4>FGGLApplication.cxx
3>AddCatalogDialog.cxx
3>AircraftItemDelegate.cxx
3>AircraftSearchFilterModel.cxx
3>CatalogListModel.cxx
4>F:\src\FlightGear\utils\fgpanel\FGGLApplication.cxx(39): fatal error C1083: Cannot open include file: 'GL/freeglut.h': No such file or directory
4>Done building project "fgpanel.vcxproj" -- FAILED.
2>A task was canceled.
2>A task was canceled.
3>A task was canceled.
3>A task was canceled.
Build has been canceled.
Therefore I downloaded freeglut-MSVC-3.0.0-2.mp.zip file form the internet unpack/unzip it and put the freeglut.h, freeglut_std.h and freeglut_ext.h into the directory F:\WorkDirectoryFlightGear\3rdParty.x64\include\GL where the glut.h header file is already located. After doing so I ran into different error messages with respect to SimGear where i don't know what to do. Please help:
- Code: Select all
1>------ Build started: Project: fglauncher_autogen, Configuration: Release x64 ------
2>------ Build started: Project: fgcom, Configuration: Release x64 ------
3>------ Build started: Project: fgpanel, Configuration: Release x64 ------
4>------ Skipped Build: Project: Experimental, Configuration: Release x64 ------
4>Project not selected to build for this solution configuration
5>------ Skipped Build: Project: Continuous, Configuration: Release x64 ------
5>Project not selected to build for this solution configuration
6>------ Skipped Build: Project: NightlyMemoryCheck, Configuration: Release x64 ------
6>Project not selected to build for this solution configuration
7>------ Skipped Build: Project: Nightly, Configuration: Release x64 ------
7>Project not selected to build for this solution configuration
8>------ Skipped Build: Project: uninstall, Configuration: Release x64 ------
8>Project not selected to build for this solution configuration
9>------ Skipped Build: Project: RUN_TESTS, Configuration: Release x64 ------
9>Project not selected to build for this solution configuration
1>Automatic MOC for target fglauncher
10>------ Build started: Project: fglauncher, Configuration: Release x64 ------
2>fgcom.cxx
3>FGGLApplication.cxx
10>AddCatalogDialog.cxx
10>AircraftItemDelegate.cxx
10>AircraftSearchFilterModel.cxx
10>CatalogListModel.cxx
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): error C2027: use of undefined type 'simgear::pkg::Install' (compiling source file F:\src\FlightGear\src\GUI\AircraftSearchFilterModel.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/package/Package.hxx(40): note: see declaration of 'simgear::pkg::Install' (compiling source file F:\src\FlightGear\src\GUI\AircraftSearchFilterModel.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): note: while compiling class template member function 'void SGSharedPtr<simgear::pkg::Install>::reset(void)' (compiling source file F:\src\FlightGear\src\GUI\AircraftSearchFilterModel.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/structure/SGSharedPtr.hxx(66): note: see reference to function template instantiation 'void SGSharedPtr<simgear::pkg::Install>::reset(void)' being compiled (compiling source file F:\src\FlightGear\src\GUI\AircraftSearchFilterModel.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/package/Delegate.hxx(84): note: see reference to class template instantiation 'SGSharedPtr<simgear::pkg::Install>' being compiled (compiling source file F:\src\FlightGear\src\GUI\AircraftSearchFilterModel.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): error C3861: 'put': identifier not found (compiling source file F:\src\FlightGear\src\GUI\AircraftSearchFilterModel.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): warning C4150: deletion of pointer to incomplete type 'simgear::pkg::Install'; no destructor called (compiling source file F:\src\FlightGear\src\GUI\AircraftSearchFilterModel.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/package/Package.hxx(40): note: see declaration of 'simgear::pkg::Install' (compiling source file F:\src\FlightGear\src\GUI\AircraftSearchFilterModel.cxx)
10>PathsDialog.cxx
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): error C2027: use of undefined type 'simgear::pkg::Install' (compiling source file F:\src\FlightGear\src\GUI\AircraftItemDelegate.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/package/Package.hxx(40): note: see declaration of 'simgear::pkg::Install' (compiling source file F:\src\FlightGear\src\GUI\AircraftItemDelegate.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): note: while compiling class template member function 'void SGSharedPtr<simgear::pkg::Install>::reset(void)' (compiling source file F:\src\FlightGear\src\GUI\AircraftItemDelegate.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/structure/SGSharedPtr.hxx(66): note: see reference to function template instantiation 'void SGSharedPtr<simgear::pkg::Install>::reset(void)' being compiled (compiling source file F:\src\FlightGear\src\GUI\AircraftItemDelegate.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/package/Delegate.hxx(84): note: see reference to class template instantiation 'SGSharedPtr<simgear::pkg::Install>' being compiled (compiling source file F:\src\FlightGear\src\GUI\AircraftItemDelegate.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): error C3861: 'put': identifier not found (compiling source file F:\src\FlightGear\src\GUI\AircraftItemDelegate.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): warning C4150: deletion of pointer to incomplete type 'simgear::pkg::Install'; no destructor called (compiling source file F:\src\FlightGear\src\GUI\AircraftItemDelegate.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/package/Package.hxx(40): note: see declaration of 'simgear::pkg::Install' (compiling source file F:\src\FlightGear\src\GUI\AircraftItemDelegate.cxx)
10>mocs_compilation.cpp
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): error C2027: use of undefined type 'simgear::pkg::Install' (compiling source file F:\src\FlightGear\src\GUI\CatalogListModel.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/package/Package.hxx(40): note: see declaration of 'simgear::pkg::Install' (compiling source file F:\src\FlightGear\src\GUI\CatalogListModel.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): note: while compiling class template member function 'void SGSharedPtr<simgear::pkg::Install>::reset(void)' (compiling source file F:\src\FlightGear\src\GUI\CatalogListModel.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/structure/SGSharedPtr.hxx(66): note: see reference to function template instantiation 'void SGSharedPtr<simgear::pkg::Install>::reset(void)' being compiled (compiling source file F:\src\FlightGear\src\GUI\CatalogListModel.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/package/Delegate.hxx(84): note: see reference to class template instantiation 'SGSharedPtr<simgear::pkg::Install>' being compiled (compiling source file F:\src\FlightGear\src\GUI\CatalogListModel.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): error C3861: 'put': identifier not found (compiling source file F:\src\FlightGear\src\GUI\CatalogListModel.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/structure/SGSharedPtr.hxx(90): warning C4150: deletion of pointer to incomplete type 'simgear::pkg::Install'; no destructor called (compiling source file F:\src\FlightGear\src\GUI\CatalogListModel.cxx)
10>F:\WorkDirectoryFlightGear\install\msvc141-64\SimGear\include\simgear/package/Package.hxx(40): note: see declaration of 'simgear::pkg::Install' (compiling source file F:\src\FlightGear\src\GUI\CatalogListModel.cxx)
3>F:\VisualStudioCommunity2017\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(651,5): error MSB6006: "link.exe" exited with code 1.
3>Done building project "fgpanel.vcxproj" -- FAILED.
3>A task was canceled.
3>A task was canceled.
2>A task was canceled.
2>A task was canceled.
10>Done building project "fglauncher.vcxproj" -- FAILED.
10>A task was canceled.
10>A task was canceled.
Build has been canceled.