I try to build the OsmAnd native rendering library following this guide: Compile Native rendering library for OsmAndMapCreator.
However, I get an error in step #3 of the guide, when I execute amd64-windows-vc12.cmd. That's the complete message:
Project "D:\Documents\02 Projekte\OsmAnd ORM\DevEnvironment\core-legacy\targets\amd64-windows-vc12.baked\CMakeFiles\3.29.3\VCTargetsPath.vcxproj" on node 1 (default targets).
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(839,5): error : The BaseOutputPath/OutputPath property is not set for project 'VCTargetsPath.vcxproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='x64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [D:\Documents\02 Projekte\OsmAnd ORM\DevEnvironment\core-legacy\targets\amd64-windows-vc12.baked\CMakeFiles\3.29.3\VCTargetsPath.vcxproj]
As the vctargetspath.vcxproj
is automatically created during the build process, the actual problem must be located some step earlier.
I can't figure out why the build configuration won't fit. Is it an issue of my system setup?
It really was the version issue of visual studio named in the comment;
-G "Visual Studio 17 2022" -A x64
returned:
CMake Error at CMakeLists.txt:2 (project):
Generator Visual Studio 17 2022
could not find any instance of Visual Studio.
which could be resolved by adding the "Desktop development with C++" to Visual Studio, as described in this tip here: CMake: Visual Studio 15 2017 could not find any instance of Visual Studio.