Preface
CMake Error: Could not create named generator Visual Studio 16 2019 -A Win64
When using vcpkg to compile OsgEarth, the official compilation method is:
cmake -S osgearth -B build -G “Visual Studio 15 2017 Win64” -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWIN32_USE_MP=ON -DCMAKE_INSTALL_PREFIX=[installroot] -DCMAKE_TOOLCHAIN_FILE=[vcpkgroot]\scripts\buildsystems\vcpkg.cmake
Change the commands below:
cmake -S osgearth -B build -G “Visual Studio 15 2017 Win64” -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWIN32_USE_MP=ON -DCMAKE_INSTALL_PREFIX=[installroot] -DCMAKE_TOOLCHAIN_FILE=[vcpkgroot]\scripts\buildsystems\vcpkg.cmake
to:
cmake -S osgearth -B build -G “Visual Studio 16 2019” -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWIN32_USE_MP=ON -DCMAKE_INSTALL_PREFIX=E:\osgEarth\vcpkg\vcpkg\build -DCMAKE_TOOLCHAIN_FILE=E:\osgEarth\vcpkg\vcpkg\scripts\buildsystems\vcpkg.cmake
That is
(1) Remove Win64
(2) Then change installroot to your OsgEarth generation project path, for example, here is: the path to generate OsgEarth.sln project
(3) Set the path of vcpkg.cmake to
Here:
Read More:
- [Solved] CMake Error: Could not create named generator Visual Studio 16 2019
- [Solved] CMake Error: Error: generator : Unix Makefiles
- [Solved] Win10 Warning: ModuleNotFoundError: No module named ‘win32con‘ and No module named ‘antlr4‘
- .NETproject compilation error. Type or namespace name could not be found. Visual studio automatically introduces dependency package (shortcut key)
- Visual Studio Code Error command ‘markdown.extension.onBackspaceKey’ not found
- [Solved] CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
- [Solved] CUDA fails to compile in visual studio and throws error msb3721 and nvcc fatal
- Error (active) e1696 cannot open source file “errno.H” rpgworld problems encountered in installing visual studio 2017
- [Solved] Unity Error: Visual Studio Editor Package version 2.0.11 is available……..
- [Solved] Android Studio Error: ERROR: Cause: executing external native build for cmake
- Solution for Visual Studio 2012 compilation error [error C4996:’scanf’: This function or variable may be unsafe.]
- visual studio Error D8016 ‘/ZI’ and ‘/Gy-‘ command-line options are incompatible
- [Solved] Visual studio 2022 error LNK2019: unable to resolve external symbol for
- Visual Studio 2012 error C4996: ‘scanf’: This function or variable may be unsafe.
- QT Error: ‘C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe‘ failed
- Visual Studio SignTool Error: No certificates were found that met all the given criteria.
- [Solved] error MSB3073: CMake that the project does not need compatibility with older versions.
- [Solved] flitter Name Route Error: Could not find a generator for route RouteSettings(“XXX”, null) in the _WidgetsAppState
- [Solved] cmake: symbol lookup error: cmake: undefined symbol: _ZN4Json5ValueC1ERKSs
- [Solved] Mac Cmake Complie openmp Error: fatal error: ‘omp.h‘ file not found