Building Example from Code with CMakeGUI

Discussion of compiling the SDK and applications.
Post Reply
Athlete
Posts:2
Joined:Thu Apr 12, 2018 5:36 pm
Building Example from Code with CMakeGUI

Post by Athlete » Thu Apr 12, 2018 5:52 pm

Hi there,

I'm trying to build the example into a new VS project using the supplied CMake files and CMakeGUI. However, CMake is giving me trouble with SDL2. I have downloaded the SDL2 libs and include files, however I'm not sure where I need to put them so CMake can find them.

Please advise.

The error from CMake 3.11.0 is:

Code: Select all

CMake Error at CMakeLists.txt:49 (find_package):
  By not providing "FindSDL2.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "SDL2", but
  CMake did not find one.

  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.
Thanks!

Steefen Robit
Posts:4
Joined:Sat Sep 12, 2020 7:17 am

Re: Building Example from Code with CMakeGUI

Post by Steefen Robit » Sat Sep 12, 2020 7:19 am

My Online Shop kfirtager On So You Can Buy This Wall Art To Follow May Shop Link FRUIT NINJA GANG Art And Buy This Product Amazing Products On My Shop. Tropical Wall Art, Graffiti Wall Hanging, Modern Wall Décor, Large Pop Art, Restaurant Decor, Original Painting Office Artwork, Graffiti Art Original

Post Reply