gerstrong/Commander-Genius

Errors from CMake with 2.0.6 release

joolswills opened this issue · 2 comments

Tested on RPI3 with Raspbian Stretch and on an Ubuntu PC machine with Ubuntu 17.10 (via retropie-setup script)

Installing these dependencies - build-essential cmake libcurl4-openssl-dev libvorbis-dev libogg-dev libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libboost-dev python-dev

checking out the v206Release release - git clone --recursive --depth 1 --branch v206Release "https://github.com/gerstrong/Commander-Genius.git"

then doing cmake -DUSE_SDL2=yes -DCMAKE_INSTALL_PREFIX="/opt/retropie/ports/cgenius"

cmake output (From the Ubuntu PC)

-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- cotire 1.7.10 loaded.
-- Setting build type to 'Release' as none was specified.
-- Preparing the Build-System for Commander Genius
-- Setting SYSTEM_DATA_DIR to /opt/retropie/ports/cgenius/
CMake Warning at GsKit/CMakeLists.txt:35 (FIND_PACKAGE):
  By not providing "FindFindSDL2.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "FindSDL2",
  but CMake did not find one.

  Could not find a package configuration file provided by "FindSDL2" with any
  of the following names:

    FindSDL2Config.cmake
    findsdl2-config.cmake

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


-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (found version "3.6.3") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found SDL2: /usr/lib/x86_64-linux-gnu/libSDL2main.a;/usr/lib/x86_64-linux-gnu/libSDL2.so;-lpthread  
-- SDLIMAGE INCLUDE DIR /usr/include/SDL2
-- SDLIMAGE_LIBRARY /usr/lib/x86_64-linux-gnu/libSDL2_image.so
-- Using shared SDL Version 2 for Commander Genius
-- CXX target GsKit cotired.
-- Boost version: 1.62.0
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.55.1") 
-- SDLIMAGE INCLUDE DIR /usr/include/SDL2
-- SDLIMAGE_LIBRARY /usr/lib/x86_64-linux-gnu/libSDL2_image.so
-- Using shared SDL Version 2 for Commander Genius
CMake Error at /usr/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find SDL_mixer (missing: SDL_MIXER_LIBRARIES
  SDL_MIXER_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.9/Modules/FindSDL_mixer.cmake:91 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/CMakeLists.txt:179 (find_package)


-- Configuring incomplete, errors occurred!
See also "RetroPie-Setup/tmp/build/cgenius/CMakeFiles/CMakeOutput.log".
See also "RetroPie-Setup/tmp/build/cgenius/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found. Stop.

Yeah, a file for SDL2 was missing. Fixed.

thanks.