Advertisement
Guest User

retropie-on-ubuntu14.04

a guest
Jan 26th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. Setting up ubuntu x86 14.04 LTS for retropie 4.9.8 (at time of writing)
  2.  
  3. The "Additional drivers" feature in ubuntu 14.04 has the drivers for really old model AGP cards, while 16.04 LTS does not.
  4. Without graphics drivers, old AGP cards will typically not render emulationstation properly and the graphics will appear as blank boxes. This means that later versions of ubuntu (e.g. 16.04 LTS) are not suited for such old hardware to run retropie - if at all.
  5.  
  6. The issue is that gcc-4.8 causes emulationstation compilation to fail. Problem is fixed in gcc-4.9, so you have to install gcc-4.9 alongside 4.8 and then get ubuntu to use it by default.
  7.  
  8. Anyway, I managed to get retropie build to work on 14.04, and here's what you do as root user or in sudo:
  9.  
  10. (add toolchain repository to lubuntu and install gcc and g++ 4.9)
  11. add-apt-repository ppa:ubuntu-toolchain-r/test
  12. apt-get update
  13. apt-get install gcc-4.9 g++-4.9
  14.  
  15. (shouldn't really need to do this bit on a fresh OS install - here for completeness)
  16. update-alternatives --remove-all gcc
  17. update-alternatives --remove-all g++
  18.  
  19. (update the priorities for which gcc to use)
  20. update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
  21. update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20
  22.  
  23. (update the priorities for which g++ to use)
  24. update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 10
  25. update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20
  26.  
  27. (link cc and c++ to gcc and g++ - you can ignore the warnings)
  28. update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
  29. update-alternatives --set cc /usr/bin/gcc
  30. update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
  31. update-alternatives --set cc /usr/bin/g++
  32.  
  33. (configs the default commands for gcc and g++ - you can now see the alternatives available)
  34. update-alternatives --config gcc
  35. update-alternatives --config g++
  36.  
  37. After this emulationstation will build properly as per instructions.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement