Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Using CMake to build my project  (Read 2439 times)

0 Members and 1 Guest are viewing this topic.

Munchor

  • Newbie
  • *
  • Posts: 16
    • View Profile
Using CMake to build my project
« on: July 18, 2013, 05:13:32 pm »
So I have this[1] project and it always built just fine but now I decide to try and rebuild it and it doesn't work any more. I get the following error:

Code: [Select]
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.0) 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!

I am using Ubuntu 13.04 and I'm thinking this could be happening because I have a new CMake version and that's why it doesn't work any more. My CMake version is 2.8.10.1, any ideas on what I need to fix?

Thank you in advance.

[1]: https://github.com/davidgomes/2dplatformer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: Using CMake to build my project
« Reply #1 on: July 18, 2013, 05:39:39 pm »
The error just means, that CMake couldn't find SFML, which is needed by your project.
Where are your SFML libraries located can they be found by ld?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Munchor

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: AW: Using CMake to build my project
« Reply #2 on: July 20, 2013, 01:03:32 pm »
The error just means, that CMake couldn't find SFML, which is needed by your project.
Where are your SFML libraries located can they be found by ld?

It seems I upgraded my operating system and it uninstalled SFML so I had to reinstall, thank you :)