phisko/kengine

cmake configure failed on MSYS2 MINGW64

iahung opened this issue · 3 comments

$ cmake ..
-- Building for: Ninja
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/cc.exe - skipped
-- 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: C:/msys64/mingw64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
CMake Error at putils/CMakeLists.txt:49 (find_package):
  Could not find a package configuration file provided by "scn" with any of
  the following names:

    scnConfig.cmake
    scn-config.cmake

  Add the installation prefix of "scn" to CMAKE_PREFIX_PATH or set "scn_DIR"
  to a directory containing one of the above files.  If "scn" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!

Note: the repo was cloned with --recursive as the guide said.

Hi,

You need to install the scn library, or alternatively use vcpkg to automatically install all dependencies using the provided vcpkg.json.

If you're not familiar with vcpkg, it's a very simple and straightforward package manager. The getting started guide should get you sorted :)

Thanks,
phisko

Yes that's it. As said in my message though, vcpkg will make your life much simpler to manage the dependencies