Aloshi / EmulationStation

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

problem with Make #384

Open LodeVlaeminck opened 9 years ago

LodeVlaeminck commented 9 years ago

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 commented 9 years ago

This is on the raspberry pi 2 b

remeh commented 9 years ago

Do you have the lib freetype on your raspberry ?

 Could NOT find Freetype (missing: FREETYPE_INCLUDE_DIRS)
Aloshi commented 9 years ago

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)

LodeVlaeminck commented 9 years ago

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 commented 9 years ago

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

ghost commented 9 years ago

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

Neuss1987 commented 9 years ago

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

DZHOYER commented 9 years ago

I found it! It works!

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

Then run

make

DZHOYER commented 9 years ago

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

ghost commented 9 years ago

Not for me! dsc_0007

DZHOYER commented 9 years ago

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

ghost commented 9 years ago

As stated in your solution

LodeVlaeminck commented 9 years ago

Just

sudo rm -r /Emulationstation

and start from cloning the git repo and it should work

ghost commented 9 years ago

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.

ghost commented 9 years ago

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

PrawnCocktail commented 9 years ago

@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.

ghost commented 9 years ago

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

PrawnCocktail commented 9 years ago

What was the output of emulationstation -h ?

ghost commented 9 years ago

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

PrawnCocktail commented 9 years ago

what desktop environment are you running?

ghost commented 9 years ago

raspian

PrawnCocktail commented 9 years ago

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

ghost commented 9 years ago

command line

PrawnCocktail commented 9 years ago

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

ghost commented 9 years ago

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

PrawnCocktail commented 9 years ago

video link?

ghost commented 9 years ago

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

PrawnCocktail commented 9 years ago

are you using retropie?

ghost commented 9 years ago

no I'm using the stand alone version

ghost commented 9 years ago

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

PrawnCocktail commented 9 years ago

then i dont know, I have the exact same error as you, but only if I try to start via ssh or shell.

Jcw87 commented 9 years ago

I had this problem, and i very quickly realized that I forgot to set the GPU RAM back to 256 MB. It was set to 32 MB because the compile instructions said to do so.

ghost commented 9 years ago

I did that but it said replace it was gpu_mem. I figured it was odd I'll try changing back to ram tomorrow I've lost the will to live with it and it is 3 am

Sent from my Sony Xperia™ smartphone

---- Jcw87 wrote ----

I had this problem, and i very quickly realized that I forgot to set the GPU RAM back to 256 MB. It was set to 32 MB because the compile instructions said to do so.

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

ghost commented 9 years ago

nope!!! still dead :(

ghost commented 9 years ago

I was following this thread while trying to compile emulationstation, the stuff here was the only way I could get it to work, but now I'm having a completely different issue. My pi isn't plugged in right now, so I can't get the exact error message, but when I try to launch emulationstation it gives me something along the lines of "can't open shared library libsdl2-2.0.so.0: No such file or directory." libSDL2-2.0.so.0 is right where it belongs in /usr/local/, what gives? Anyone have an idea?

ghub25 commented 9 years ago

I was having similar errors when compiling this from source on my pi B+ in raspbian.

What ended up working was using the retropie setup script and installing just emulation station, run command, retroarch, and mupen64 from binaries. Then, rebooting, going back into the setup script and reinstalling those same things but compiling from source this time.

ghost commented 9 years ago

Was this on a Pi 2 B+ or the original?

ghub25 commented 9 years ago

mine is the Pi 1 B+ (the one with 512 mb ram), not sure for OP

DZHOYER commented 9 years ago

Ah. I had this same problem. What I did was run the RetroPie-Setup in the command line. so: 1st: ~$: cd RetroPie-Setup

2nd: ~$: sudo ./retropie_setup.sh you will get a window that looks like this: https://cloud.githubusercontent.com/assets/10927343/6376864/8b93b3fa-bcee-11e4-9ad6-d7594221775c.jpeg

3rd: select the binaries-based installation and press enter

4th: you are back at this window: https://cloud.githubusercontent.com/assets/10927343/6377165/687787c8-bcf0-11e4-82b1-b3e391bb0861.png

5th: select SETUP hit enter

6th: select Auto-Start EmulationStation hit enter https://cloud.githubusercontent.com/assets/10927343/6377269/04ca69d8-bcf1-11e4-9dc6-b3dbba6277e0.png

7th: select option 2 hit enter hit enter

8th: select cancel at the main window.

9th: at the next window, select REBOOT hit enter.

your system should now reboot and start emulationstation.

xotan135 commented 9 years ago

After I ran cmake . -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2/ -DCMAKE_CXX_COMPILER=g++-4.7 that DZHOYER provided I got the following

CMake Error: your CXX compiler: "/home/pi/EmulationStation/g++-4.7" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name. CMake Error: your CXX compiler: "/home/pi/EmulationStation/g++-4.7" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name. CMake Error: your CXX compiler: "/home/pi/EmulationStation/g++-4.7" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name. CMake Error: your CXX compiler: "/home/pi/EmulationStation/g++-4.7" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

I had to run export CXX=g++-4.7

Just thought I would throw that in there in case someone runs into it....

Thanks for the great posts

Protosshun commented 9 years ago

pi@raspberrypi ~/EmulationStation $ cmake -DFREETYPE_INCUDE_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 CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find Freetype (missing: FREETYPE_LIBRARY 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! 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 CMake Warning: Manually-specified variables were not used by the project:

FREETYPE_INCUDE_DIRS

-- Build files have been written to: /home/pi/EmulationStation pi@raspberrypi ~/EmulationStation $

I got this problem with the tutorial please help. I installed freetype6 and freetype6-dev then downgraded to 2.4.9-1.1 but still the same error. After I run make i got this problem

-- 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_LIBRARY 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

Nyken commented 9 years ago

Having an issue with the cmake command. I am using the stand alone Raspberry Pi install instructions on http://emulationstation.org/gettingstarted.html#install_rpi_standalone. I am at the step "Compile and install EmulationStation" > "cmake -DCMAKE_CXX_COMPILER=g++-4.7 .". When entering this command I get a "cmake: command not found". I am positive that I followed all previous commands correctly. Has anyone seen something like this before?

Thanks

xotan135 commented 9 years ago

sudo apt-get install cmake

I bet cmake is not installed

lshorb commented 9 years ago

Regarding the "can't open shared library libsdl2-2.0.so.0", can be fixed by prefixing the install to /usr/lib (adding --prefix=/usr to ./configure execution when building libsdl2) ./configure --disable-video-opengl --host=arm-raspberry-linux-gnueabihf --prefix=/usr

zchan1120 commented 9 years ago

Hello all. I've followed the instructions from http://emulationstation.org/gettingstarted.html#install_rpi_standalone , but under "Compile and install EmulationStation", I get an error when I try to do the cmake. Something like missing file(folder?) SDL2-2.0.1 . I tried doing the cd RetroPie-Setup in the instructions above, but it says that file/folder does not exist. Any ideas?

mrturcot commented 9 years ago

This worked for me:

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

TWDFan2009 commented 8 years ago

I am having trouble getting the cmake -DCMAKE_CXX_COMPILER=g++-4.7 . to work any ideas on how to get it to work?

joolswills commented 8 years ago

@TWDFan2009 considering you have provided no information whatsoever, probably not!

TWDFan2009 commented 8 years ago

what do you mean

TWDFan2009 commented 8 years ago

it is a pi 2