Closed Corgile closed 3 years ago
Hey @corgile ,
The ./utility/install-oatpp-modules.sh
script is for Linux/Mac
and it's included for reference only.
I would suggest just running those steps manually on windows. Example for oatpp module (same for other modules):
$ git clone https://github.com/oatpp/oatpp.git
$ cd oatpp\
$ MD build
$ cd build\
$ cmake ..
$ cmake --build . --target INSTALL
Hey @corgile ,
The
./utility/install-oatpp-modules.sh
script is forLinux/Mac
and it's included for reference only.I would suggest just running those steps manually on windows. Example for oatpp module (same for other modules):
$ git clone https://github.com/oatpp/oatpp.git $ cd oatpp\ $ MD build $ cd build\ $ cmake .. $ cmake --build . --target INSTALL
example-crud
project, and I got this:(Homlex) -> cmake ..
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.21390.
-- The C compiler identification is MSVC 19.29.30037.0
-- The CXX compiler identification is MSVC 19.29.30037.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Dev/Microsoft/Visual Studio/2019/Professional
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/Dev/Microsoft/Visual Studio/2019/Profession
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:28 (find_package):
By not providing "Findoatpp.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "oatpp", but
CMake did not find one.
Could not find a package configuration file provided by "oatpp" (requested
version 1.2.5) with any of the following names:
oatppConfig.cmake
oatpp-config.cmake
Add the installation prefix of "oatpp" to CMAKE_PREFIX_PATH or set
"oatpp_DIR" to a directory containing one of the above files. If "oatpp"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "E:/WorkSpace/Repos/example-crud/build/CMakeFiles/CMakeOutput.log".
CMAKE_PREFIX_PATH
or CMAKE_MODULE_PATH
in my environment variables? If so, then what should be the values of them?running oatpp projects on windows
?@corgile ,
Could not find a package configuration file provided by "oatpp" (requested version 1.2.5) with any of the following names:
You don't have oatpp installed. You have to install oatpp on your system.
$ cmake --build . --target INSTALL
Also, make sure to run CMD as Admin
env
after I ran command
./utility/install-oatpp-modules.sh
, here is what it printed in the console, from where you can see somemake: *** No rule to make target 'install'. Stop.
messagesAny helps, Thanks