Aloshi / EmulationStation

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

Retropie - Emulation Station Source Build #377

Open JCRodger opened 9 years ago

JCRodger commented 9 years ago

Hi, i was having an issue compiling the latest sources, was an issue referencing the freetype2 library. so i downloaded the sources and compiled them using -D on cmake command to specify the library, eventually got it to CMAKE and Make, but now im not sure where everything needs to go?

opt/RetroPie/Supplementary/EmulationStation or lower case emulation station. not sure why i have two directories. from what i can gather the boot on retropie is looking at /emluationstation/ is there anything else i need to copy? build contains many files, do i just need the binary ./emulationstation?

joolswills commented 9 years ago

the freetype issue is down to an update to libfreetype6-dev on raspbian that has changed the header location of ftheader.h etc from /usr/include/freetype2/freetype/config/ to raspbian-dev/usr/include/freetype2/config/

I believe cmake will need an update/fix to work with the change, but not sure if this is a mistake in raspbian packaging pushing out a new version that has new locations. Annoying :/

In regards to your second question - this should be asked over at the retropie project, but it sounds like you are updating on an old 2.3 image. Start with a 2.4.x image, or first nuke /opt/retropie before doing a complete source build, as the locations of most stuff has changed.

joolswills commented 9 years ago

In the meantime, I will update retropie so it can find the library, but this could cause breakage if people haven't updated their raspbian (the new freetype changes came in on the 28th Jan), so this is all a bit of a mess.

joolswills commented 9 years ago

Looks as though raspbian has pulled in a newer freetype6 from upstream as x86 wheezy is still on the older version - where the hell do I report raspbian specific packaging bugs.. hmm.

JCRodger commented 9 years ago

Hehehe no idea, thanks for the response. Did manage to compile by including the directory on the cmake command. On 3 Feb 2015 21:18, "Jools Wills" notifications@github.com wrote:

Looks as though raspbian has pulled in a newer freetype6 from upstream as x86 wheezy is still on the older version - where the hell do I report raspbian specific packaging bugs.. hmm.

— Reply to this email directly or view it on GitHub https://github.com/Aloshi/EmulationStation/issues/377#issuecomment-72715283 .

joolswills commented 9 years ago

reported here https://bugs.launchpad.net/raspbian/+bug/1417732

joolswills commented 9 years ago

Yeh - telling cmake exactly where freetype is works around it, but hopefully raspbian will patch up cmake for us.

in the meantime I have added the include path in https://github.com/petrockblog/RetroPie-Setup/commit/4ce0e28bb77088d42aacc5d4bc5b25b176616f68

@Aloshi other users may start reporting this as they update there raspbian and get the new freetype library, so it might be worth adding it to the instructions on the frontpage?

JCRodger commented 9 years ago

Cool thanks, quick question though, is it freetype or freetype2? Only have the later on my build. On 3 Feb 2015 21:39, "Jools Wills" notifications@github.com wrote:

Yeh - telling cmake exactly where freetype is works around it, but hopefully raspbian will patch up cmake for us.

in the meantime I have added the include path in petrockblog/RetroPie-Setup@4ce0e28 https://github.com/petrockblog/RetroPie-Setup/commit/4ce0e28bb77088d42aacc5d4bc5b25b176616f68

@Aloshi https://github.com/Aloshi other users may start reporting this as they update there raspbian and get the new freetype library, so it might be worth adding it to the instructions on the frontpage?

— Reply to this email directly or view it on GitHub https://github.com/Aloshi/EmulationStation/issues/377#issuecomment-72719170 .

joolswills commented 9 years ago

yeh I made a typo. will push out another fix :) thanks.

joolswills commented 9 years ago

updating the script and running source based install for that will sort it. you can choose to install a single item from source under main menu 5. As mentioned earlier however, it sounds like you have an old image base, so you might want to start from the retropie 2.4 image, or if you want to stay with your old one, it would be best to remove /opt/retropie and reinstall everything - the 2.4 image is a lot smaller though and a better starting point if you don't need a full raspbian install.

Alternatively you can do a binary install - the binaries are not too out of date, and I will be updating emulationstation binaries shortly

joolswills commented 9 years ago

(BTW it would be better not to quote the previous replies on here - perhaps use the web interfacei to edit/remove quoted text)

snigel commented 9 years ago

issue #395 is also about including freetype2 for cmake.