johnBuffer / AntSimulator

Simple Ants simulator
MIT License
2.25k stars 280 forks source link

CMake fail #43

Open TomasArrinda opened 3 years ago

TomasArrinda commented 3 years ago

Did follow the instructions (they're fairly simple) but CMake doesn't seem to recognize the files.

image

What the terminal says: "Configuring incomplete, errors occurred! See also "C:/Games/AntSimulator-master/build/CMakeFiles/CMakeOutput.log"."

What CMakeOutput.log says: "The system is: Windows - 10.0.19042 - AMD64"

I can't even begin to guess what's happening. Not very familiar with this program.

GuildOfCalamity commented 2 months ago

I have a similar issue, however I did make sure to select x64, but no bueno...

Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
CMake Error at CMakeLists.txt:9 (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" (requested
  version 2) 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.

Configuring incomplete, errors occurred!
johnBuffer commented 2 months ago

I just created a branch named new-cmakelists with a new CMake configuration, could you please try it to see if it's better?

GuildOfCalamity commented 2 months ago

@johnBuffer Thank you! I'll give this a shot and report back.

GuildOfCalamity commented 2 months ago

@johnBuffer That worked, but the app complains that it can't find a config file on startup (I didn't realize you had included a sample config). After adding a config file (based on what the parameters are), it seems like it struggles with the font for some reason... image

I was able to guess what some of the controls are... image

GuildOfCalamity commented 2 months ago

@johnBuffer Also, on a side note, I was trying this same process with your AutoRocket and Smoke repos and I always run into the same CMake errors; what would you recommend as the best way to fix these?

CMake Error at CMakeLists.txt:23 (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" (requested
  version 2) 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'm using CMake v3.30.3 w/Visual Studio 2022