dingusdev / dingusppc

An experimental emulator
GNU General Public License v3.0
200 stars 21 forks source link

[BUG] SDL2Config.cmake and sdl2-config.cmake not found by SDL2 during compiling on Linux #82

Closed supervitu64 closed 3 months ago

supervitu64 commented 3 months ago

Describe the bug

CMake Error at CMakeLists.txt:14 (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.

-- Configuring incomplete, errors occurred!

To Reproduce Steps to reproduce the behavior:

  1. Clone DingusPPC
  2. Follow the instructions
  3. Execute "cmake -DCMAKE_BUILD_TYPE=Release .."
  4. See error

Expected behavior The emulator compiles with no issues

Screenshots If applicable, add screenshots to help explain your problem. Device Information (please complete the following information):

dingusdev commented 3 months ago

Run $ sudo apt install libsdl2-dev