I got this Error
note8g2018 opened this issue · 7 comments
6> CMake generation started for configuration: 'x64-Debug'.
6> Command line: "cmd.exe" /c ""C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\ENTERPRISE\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_INSTALL_PREFIX:PATH="C:\Users\GL553VD\Source\Repos\example-websocket\server\out\install\x64-Debug" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX64/x64/cl.exe" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX64/x64/cl.exe" -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\ENTERPRISE\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "C:\Users\GL553VD\Source\Repos\example-websocket\server" 2>&1"
6> Working directory: C:\Users\GL553VD\Source\Repos\example-websocket\server\out\build\x64-Debug
6> [CMake] -- The C compiler identification is MSVC 19.24.28316.0
6> [CMake] -- The CXX compiler identification is MSVC 19.24.28316.0
6> [CMake] -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX64/x64/cl.exe
6> [CMake] -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX64/x64/cl.exe -- works
6> [CMake] -- Detecting C compiler ABI info
6> [CMake] -- Detecting C compiler ABI info - done
6> [CMake] -- Detecting C compile features
6> [CMake] -- Detecting C compile features - done
6> [CMake] -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX64/x64/cl.exe
6> [CMake] -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX64/x64/cl.exe -- works
6> [CMake] -- Detecting CXX compiler ABI info
6> [CMake] -- Detecting CXX compiler ABI info - done
6> [CMake] -- Detecting CXX compile features
6> [CMake] -- Detecting CXX compile features - done
6> [CMake] CMake Error at C:\Users\GL553VD\Source\Repos\example-websocket\server\CMakeLists.txt:20 (find_package):
6> [CMake] By not providing "Findoatpp.cmake" in CMAKE_MODULE_PATH this project has
6> [CMake] asked CMake to find a package configuration file provided by "oatpp", but
6> [CMake] CMake did not find one.
6> [CMake]
6> [CMake] Could not find a package configuration file provided by "oatpp" (requested
6> [CMake] version 1.0.0) with any of the following names:
6> [CMake]
6> [CMake] oatppConfig.cmake
6> [CMake] oatpp-config.cmake
6> [CMake]
6> [CMake] Add the installation prefix of "oatpp" to CMAKE_PREFIX_PATH or set
6> [CMake] "oatpp_DIR" to a directory containing one of the above files. If "oatpp"
6> [CMake] provides a separate development package or SDK, be sure it has been
6> [CMake] installed.
6> [CMake]
6> [CMake]
6> [CMake] -- Configuring incomplete, errors occurred!
6> [CMake] See also "C:/Users/GL553VD/source/repos/example-websocket/server/out/build/x64-Debug/CMakeFiles/CMakeOutput.log".
6> [CMake]
6> cmd.exe /c ""C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\ENTERPRISE\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_INSTALL_PREFIX:PATH="C:\Users\GL553VD\Source\Repos\example-websocket\server\out\install\x64-Debug" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX64/x64/cl.exe" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/HostX64/x64/cl.exe" -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\ENTERPRISE\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "C:\Users\GL553VD\Source\Repos\example-websocket\server" 2>&1" returned with exit code: 1
Hello @note8g2018 ,
It looks like you are missing the main oatpp module.
You have to install required oatpp modules, then build the example.
Please see how to install oatpp on Windows - https://oatpp.io/docs/installation/windows/
Regards,
Leonid
I go to this https://github.com/oatpp/oatpp and then open in Visual Studio then Clone then Build then Install. and work fine. is that not enough.
Hm, so you have successfully installed the main oatpp
module and
when you are trying to build the example project cmake can't find the oatpp
module?
yes
Ok, thanks for the issue.
I'll take a look at this.
When I open C:\Users\GL553VD\source\repos\oatpp\cmake
I found 2 files
module-config.cmake.in
module-install.cmake
I do not know if this help
Hey @note8g2018 ,
It looks like a problem with cmake config on windows.
Please double-check the cmake installation and package search paths.
Regards,
Leonid