Aloshi / EmulationStation

A flexible emulator front-end supporting keyboardless navigation and custom system themes.
MIT License
2.06k stars 905 forks source link

Can't compile on RPi2 #472

Open wally777 opened 9 years ago

wally777 commented 9 years ago

Hi, I have problem during compiling ES on RaspberryPi2.

This is output from 'cmake . -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2/ -DCMAKE_CXX_COMPILER=g++-4.7':

Looking for bcm_host.h bcm_host.h found Looking for libMali.so libMali.so not found -- Found Freetype: /usr/lib/arm-linux-gnueabihf/libfreetype.so -- Looking for FreeImage... -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") -- checking for module 'freeimage' -- package 'freeimage' not found -- Found FreeImage: optimized;/usr/lib/libfreeimage.so;debug;/usr/lib/libfreeimage.so -- Looking for include file pthread.h -- Looking for include file 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 CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE) CMake/Packages/FindSDL2.cmake:163 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:47 (find_package)

-- Configuring incomplete, errors occurred! You have changed variables that require your cache to be deleted. Configure will be re-run and you may have to reset some variables. The following variables have changed: CMAKE_CXX_COMPILER= g++-4.7

-- Generating done

-- Build files have been written to: /home/pi/git/EmulationStation

and seems to be all right but then, after typing 'make' i get:

-- The C compiler identification is GNU 4.6.3 -- The CXX compiler identification is GNU 4.6.3 -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - 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 Looking for bcm_host.h bcm_host.h found Looking for libMali.so libMali.so not found -- Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabihf/libX11.so;/usr/lib/arm-linux-gnueabihf/libXext.so -- Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabihf/libX11.so;/usr/lib/arm-linux-gnueabihf/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found X11: /usr/lib/arm-linux-gnueabihf/libX11.so CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find Freetype (missing: FREETYPE_INCLUDE_DIRS) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindFreetype.cmake:106 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:45 (find_package)

-- Configuring incomplete, errors occurred! Makefile:120: recipe for target 'cmake_check_build_system' failed

make: *\ [cmake_check_build_system] Error 1

How can I fix it? What should I check?

joolswills commented 9 years ago

It can't find SDL2 - did you install it ?

QUADEMU commented 9 years ago

1: sudo cmake -DCMAKE_CXX_COMPILER=g++-4.7 -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2/ . 2: sudo make 3: sudo make install