Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake doesn't find SDL2 #1

Closed
strycore opened this issue Apr 22, 2017 · 3 comments
Closed

CMake doesn't find SDL2 #1

strycore opened this issue Apr 22, 2017 · 3 comments

Comments

@strycore
Copy link

I get the following error when building the project:

CMake Error at GameOS/gameos/CMakeLists.txt:30 (find_package):
  Could not find a package configuration file provided by "SDL2" with any of
  the following names:

    SDL2Config.cmake
    sdl2-config.cmake

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

libsdl2-dev is installed and sdl2-config.cmake is available here: /usr/lib/x86_64-linux-gnu/cmake/SDL2/sdl2-config.cmake.

The build script I use is here: https://github.com/lutris/buildbot/blob/master/games/mechcommander-2/build.sh

@alariq
Copy link
Owner

alariq commented Apr 24, 2017 via email

@alariq
Copy link
Owner

alariq commented May 18, 2017

try with latest code, I've changed CMakeLists.txt

@strycore
Copy link
Author

nice! the project now builds!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants