EmulationStation icon indicating copy to clipboard operation
EmulationStation copied to clipboard

problem with Make

Open LodeVlaeminck opened this issue 11 years ago • 61 comments

make Looking for bcm_host.h bcm_host.h found Looking for libMali.so libMali.so not found 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

I was following the tutorial and i get this error ...

LodeVlaeminck avatar Feb 10 '15 21:02 LodeVlaeminck

This is on the raspberry pi 2 b

LodeVlaeminck avatar Feb 10 '15 22:02 LodeVlaeminck

Do you have the lib freetype on your raspberry ?

 Could NOT find Freetype (missing: FREETYPE_INCLUDE_DIRS)

remeh avatar Feb 10 '15 22:02 remeh

For some reason the RPi 2 FreeType package changed around the include directory. Try running with

cmake . -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype/

(this is what RetroPie does)

Aloshi avatar Feb 11 '15 02:02 Aloshi

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 -- Found SDL2: /usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.so;-lpthread -- Boost version: 1.49.0 -- Found the following Boost libraries: -- system -- filesystem -- date_time -- locale -- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0") -- Found CURL: /usr/lib/arm-linux-gnueabihf/libcurl.so (found version "7.26.0") -- Found ALSA: /usr/lib/arm-linux-gnueabihf/libasound.so (found version "1.0.25") CMake Error at CMakeLists.txt:77 (message): You need at least G++ 4.7 to compile EmulationStation!

-- Configuring incomplete, errors occurred!

LodeVlaeminck avatar Feb 11 '15 18:02 LodeVlaeminck

After a lot of messing around it seems to be working now :) THNX. What is the fun when you dont have some trouble :)

LodeVlaeminck avatar Feb 11 '15 21:02 LodeVlaeminck

cmake . -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype/ returns "/usr/include/freetype/ does not exist" what am I doing wrong here?

binaryangel0100 avatar Feb 12 '15 20:02 binaryangel0100

Got the same problem like binaryangel0100

pi@raspberry ~/EmulationStation $ cmake -DCMAKE_CXX_COMPILER=g++-4.7 . -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype/ CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:81 (FILE): file Internal CMake error when trying to open file: /home/pi/EmulationStation/CMakeFiles/CompilerIdC/CMakeCCompilerId.c for writing. Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:91 (CMAKE_DETERMINE_COMPILER_ID_WRITE) /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD) /usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:130 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (project)

CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:81 (FILE): file Internal CMake error when trying to open file: /home/pi/EmulationStation/CMakeFiles/CompilerIdC/CMakeCCompilerId.c for writing. Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:91 (CMAKE_DETERMINE_COMPILER_ID_WRITE) /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD) /usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:130 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (project)

CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:81 (FILE): file Internal CMake error when trying to open file: /home/pi/EmulationStation/CMakeFiles/CompilerIdC/CMakeCCompilerId.c for writing. Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:91 (CMAKE_DETERMINE_COMPILER_ID_WRITE) /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD) /usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:130 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (project)

-- The C compiler identification is unknown CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:81 (FILE): file Internal CMake error when trying to open file: /home/pi/EmulationStation/CMakeFiles/CompilerIdCXX/CMakeCXXCompilerId.cpp for writing. Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:91 (CMAKE_DETERMINE_COMPILER_ID_WRITE) /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD) /usr/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:138 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (project)

CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:81 (FILE): file Internal CMake error when trying to open file: /home/pi/EmulationStation/CMakeFiles/CompilerIdCXX/CMakeCXXCompilerId.cpp for writing. Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:91 (CMAKE_DETERMINE_COMPILER_ID_WRITE) /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD) /usr/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:138 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:3 (project)

-- The CXX compiler identification is unknown -- 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/g++-4.7 -- Check for working CXX compiler: /usr/bin/g++-4.7 -- 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 CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find Freetype (missing: FREETYPE_LIBRARY) 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! pi@raspberry ~/EmulationStation $ cmake -DCMAKE_CXX_COMPILER=g++-4.7 . Looking for bcm_host.h bcm_host.h found Looking for libMali.so libMali.so not found CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find Freetype (missing: FREETYPE_LIBRARY) 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! 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/EmulationStation

Neuss1987 avatar Feb 12 '15 22:02 Neuss1987

I found it! It works!

cmake . -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype/ -DCMAKE_CXX_COMPILER=g++-4.7

Then run

make

DZHOYER avatar Feb 13 '15 00:02 DZHOYER

Excuse me, typo there.

cmake . -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2/ -DCMAKE_CXX_COMPILER=g++-4.7

Notice the "2" after "/freetype"

Then run

make

DZHOYER avatar Feb 13 '15 12:02 DZHOYER

Not for me! dsc_0007

binaryangel0100 avatar Feb 13 '15 13:02 binaryangel0100

@binaryangel0100 May I see what command you ran before running "make"?

DZHOYER avatar Feb 13 '15 14:02 DZHOYER

As stated in your solution

binaryangel0100 avatar Feb 13 '15 15:02 binaryangel0100

Just

sudo rm -r /Emulationstation

and start from cloning the git repo and it should work

LodeVlaeminck avatar Feb 13 '15 17:02 LodeVlaeminck

Yes! This fixed it compiling now! Currently at 12% thank you so much!

Sent from my Sony Xperia™ smartphone

---- LodeVlaeminck wrote ----

Just

sudo rm -r /Emulationstation

and start from cloning the git repo and it should work

— Reply to this email directly or view it on GitHub.

binaryangel0100 avatar Feb 13 '15 22:02 binaryangel0100

https://drive.google.com/open?id=0B0P7l1XOwwdIUExKRWMwRTdOYnc&authuser=0 what!!!!!! the HELL MAN AFTER ALL THAT!!

binaryangel0100 avatar Feb 13 '15 22:02 binaryangel0100

@binaryangel0100 Its working dude, it just cant start because you need to run it from a desktop environment, try emulationstation -h and see what result you get.

PrawnCocktail avatar Feb 13 '15 22:02 PrawnCocktail

No i've ran it in the GUI and nothing happens and I mean nothing

binaryangel0100 avatar Feb 13 '15 23:02 binaryangel0100

What was the output of emulationstation -h ?

PrawnCocktail avatar Feb 13 '15 23:02 PrawnCocktail

help... but didn't help me enough to run ES

binaryangel0100 avatar Feb 13 '15 23:02 binaryangel0100

what desktop environment are you running?

PrawnCocktail avatar Feb 13 '15 23:02 PrawnCocktail

raspian

binaryangel0100 avatar Feb 13 '15 23:02 binaryangel0100

does it boot into command line or directly to desktop? because the screen shots are obviously from command line.

PrawnCocktail avatar Feb 13 '15 23:02 PrawnCocktail

command line

binaryangel0100 avatar Feb 13 '15 23:02 binaryangel0100

in order for emulation station to start you have to boot into desktop and then run emulation station from a terminal window.

PrawnCocktail avatar Feb 13 '15 23:02 PrawnCocktail

facepalm ONE HOUR AGO I SAID "No i've ran it in the GUI and nothing happens and I mean nothing" and you don't need to run it in the GUI at all once you type emulationstation it then kicks you into ES anyway or so every youtube Video leads me to believe

binaryangel0100 avatar Feb 14 '15 00:02 binaryangel0100

video link?

PrawnCocktail avatar Feb 14 '15 00:02 PrawnCocktail

https://www.youtube.com/watch?v=vq99cf1cuk8

binaryangel0100 avatar Feb 14 '15 00:02 binaryangel0100

are you using retropie?

PrawnCocktail avatar Feb 14 '15 00:02 PrawnCocktail

no I'm using the stand alone version

binaryangel0100 avatar Feb 14 '15 00:02 binaryangel0100

just to prove my point that terminal is still terminal regardless of interface https://drive.google.com/file/d/0B0P7l1XOwwdIU0I2VDZ5NHpPbTQ/view?usp=sharing

binaryangel0100 avatar Feb 14 '15 00:02 binaryangel0100