Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

I tried to compile on MacOS (Sonoma, Intel Mac)

I get the following error on the first cmake command:

CMake Error at CMakeLists.txt:6 (find_package):

  By not providing "FindSFML.cmake" in CMAKE_MODULE_PATH this project has

  asked CMake to find a package configuration file provided by "SFML", but

  CMake did not find one.

  Could not find a package configuration file provided by "SFML" with any of

  the following names:

    SFMLConfig.cmake

    sfml-config.cmake

  Add the installation prefix of "SFML" to CMAKE_PREFIX_PATH or set

  "SFML_DIR" to a directory containing one of the above files.  If "SFML"

  provides a separate development package or SDK, be sure it has been

  installed.

I had the same exact thing happen to me. I believe the build instructions are mildly flawed. Here's what worked for me, on Manjaro, assuming you have a toolchain, cmake, and conan installed.

```

# do conany things

conan install . --build=missing --settings=build_type=Release

# generate cmake cache using the conan stuff

cmake --preset conan-release

# build the `run` exe

cmake --build build/Release

# run the exe

build/Release/run

```