Trouble installing libretro-super on ARM linux

Hey guys I’m somewhat of a noob with linux. I’m having some trouble when I run the libretro-build.sh command. I’m running Ubuntu 12.04 LTS with lxde on a Samsung ARM Chromebook if that helps. These are my results.

(precise)james@localhost:~/libretro-super$ sh libretro-build.sh armv7l CPU detected Script: /home/james/libretro-super/libretro-build.sh CC = gcc CXX = g++ STRIP = Compiler: CC=“gcc” CXX=“g++” libretro-build.sh: 17: ./libretro-build-common.sh: [[: not found libretro-build.sh: 18: ./libretro-build-common.sh: [[: not found libretro-build.sh: 19: ./libretro-build-common.sh: [[: not found libretro-build.sh: 20: ./libretro-build-common.sh: [[: not found libretro-build.sh: 21: ./libretro-build-common.sh: [[: not found libretro-build.sh: 22: ./libretro-build-common.sh: [[: not found libretro-build.sh: 23: ./libretro-build-common.sh: [[: not found unix Directory /home/james/libretro-super/dist/unix already exists, skipping creation… === Building bSNES performance === libretro-build.sh: 475: libretro-build.sh: make: not found Failed to build bSNES performance core cp: cannot stat out/bsnes_libretro.so': No such file or directory === Building bSNES balanced === libretro-build.sh: 487: libretro-build.sh: make: not found Failed to build bSNES balanced core cp: cannot statout/bsnes_libretro.so’: No such file or directory === Building bSNES accuracy === libretro-build.sh: 499: libretro-build.sh: make: not found Failed to build bSNES accuracy core cp: cannot stat out/bsnes_libretro.so': No such file or directory === Building Mednafen === libretro-build.sh: 98: libretro-build.sh: make: not found Failed to clean mednafen/ libretro-build.sh: 99: libretro-build.sh: make: not found Failed to build mednafen/ cp: cannot statmednafen_pce_fast_libretro.so’: No such file or directory libretro-build.sh: 103: libretro-build.sh: make: not found Failed to clean mednafen/wswan libretro-build.sh: 104: libretro-build.sh: make: not found Failed to build mednafen/wswan cp: cannot stat mednafen_wswan_libretro.so': No such file or directory libretro-build.sh: 103: libretro-build.sh: make: not found Failed to clean mednafen/ngp libretro-build.sh: 104: libretro-build.sh: make: not found Failed to build mednafen/ngp cp: cannot statmednafen_ngp_libretro.so’: No such file or directory libretro-build.sh: 103: libretro-build.sh: make: not found Failed to clean mednafen/vb libretro-build.sh: 104: libretro-build.sh: make: not found Failed to build mednafen/vb cp: cannot stat mednafen_vb_libretro.so': No such file or directory === Building Mednafen VBA === libretro-build.sh: 141: libretro-build.sh: make: not found Failed to clean mednafen/gba libretro-build.sh: 142: libretro-build.sh: make: not found Failed to build mednafen/gba cp: cannot statmednafen_gba_libretro.so’: No such file or directory === Building Mednafen bSNES === libretro-build.sh: 160: libretro-build.sh: make: not found Failed to clean mednafen/snes libretro-build.sh: 161: libretro-build.sh: make: not found Failed to build mednafen/snes cp: cannot stat mednafen_snes_libretro.so': No such file or directory === Building Mednafen PSX === libretro-build.sh: 122: libretro-build.sh: make: not found Failed to clean mednafen/psx libretro-build.sh: 123: libretro-build.sh: make: not found Failed to build mednafen/psx cp: cannot statmednafen_psx_libretro.so’: No such file or directory === Building SNES9x === libretro-build.sh: 233: libretro-build.sh: make: not found Failed to clean SNES9x libretro-build.sh: 234: libretro-build.sh: make: not found Failed to build SNES9x cp: cannot stat snes9x_libretro.so': No such file or directory === Building SNES9x-Next === libretro-build.sh: 247: libretro-build.sh: make: not found Failed to build SNES9x-Next libretro-build.sh: 248: libretro-build.sh: make: not found Failed to build SNES9x-Next cp: cannot statsnes9x_next_libretro.so’: No such file or directory === Building Genplus GX === libretro-build.sh: 262: libretro-build.sh: make: not found Failed to clean Genplus GX libretro-build.sh: 263: libretro-build.sh: make: not found Failed to build Genplus GX cp: cannot stat genesis_plus_gx_libretro.so': No such file or directory === Building Final Burn Alpha (Full) === libretro-build.sh: 67: libretro-build.sh: make: not found Failed to clean Final Burn Alpha libretro-build.sh: 68: libretro-build.sh: make: not found Failed to build Final Burn Alpha cp: cannot statfb_alpha_libretro.so’: No such file or directory === Building VBA-Next === libretro-build.sh: 291: libretro-build.sh: make: not found Failed to clean VBA-Next libretro-build.sh: 292: libretro-build.sh: make: not found Failed to build VBA-Next cp: cannot stat vba_next_libretro.so': No such file or directory === Building bNES === libretro-build.sh: 511: libretro-build.sh: make: not found Failed to clean bNES libretro-build.sh: 512: libretro-build.sh: make: not found Failed to build bNES cp: cannot statlibretro.so’: No such file or directory === Building FCEUmm === libretro-build.sh: 305: libretro-build.sh: make: not found Failed to clean FCEUmm libretro-build.sh: 306: libretro-build.sh: make: not found Failed to build FCEUmm cp: cannot stat fceumm-code/fceumm_libretro.so': No such file or directory === Building Gambatte === libretro-build.sh: 319: libretro-build.sh: make: not found Failed to clean Gambatte libretro-build.sh: 320: libretro-build.sh: make: not found Failed to build Gambatte cp: cannot statgambatte_libretro.so’: No such file or directory === Building Meteor === libretro-build.sh: 361: libretro-build.sh: make: not found Failed to clean Meteor libretro-build.sh: 362: libretro-build.sh: make: not found Failed to build Meteor cp: cannot stat meteor_libretro.so': No such file or directory === Building NXEngine === libretro-build.sh: 333: libretro-build.sh: make: not found Failed to clean NXEngine libretro-build.sh: 334: libretro-build.sh: make: not found Failed to build NXEngine cp: cannot statnxengine_libretro.so’: No such file or directory === Building PRBoom === libretro-build.sh: 347: libretro-build.sh: make: not found Failed to clean PRBoom libretro-build.sh: 348: libretro-build.sh: make: not found Failed to build PRBoom cp: cannot stat prboom_libretro.so': No such file or directory === Building Stella === libretro-build.sh: 175: libretro-build.sh: make: not found libretro-build.sh: 176: libretro-build.sh: make: not found cp: cannot statstella_libretro.so’: No such file or directory === Building QuickNES === libretro-build.sh: 205: libretro-build.sh: make: not found Failed to clean QuickNES libretro-build.sh: 206: libretro-build.sh: make: not found Failed to build QuickNES cp: cannot stat quicknes_libretro.so': No such file or directory === Building Nestopia === libretro-build.sh: 375: libretro-build.sh: make: not found Failed to clean Nestopia libretro-build.sh: 376: libretro-build.sh: make: not found Failed to build Nestopia cp: cannot statnestopia_libretro.so’: No such file or directory === Building Tyr Quake === libretro-build.sh: 389: libretro-build.sh: make: not found Failed to clean Tyr Quake libretro-build.sh: 390: libretro-build.sh: make: not found Failed to build Tyr Quake cp: cannot stat tyrquake_libretro.so': No such file or directory === Building MAME 0.78 === libretro-build.sh: 277: libretro-build.sh: make: not found Failed to clean MAME 0.78 libretro-build.sh: 278: libretro-build.sh: make: not found Failed to build MAME 0.78 cp: cannot statmame078_libretro.so’: No such file or directory === Building DOSbox === libretro-build.sh: 459: libretro-build.sh: make: not found Failed to clean DOSbox libretro-build.sh: 460: libretro-build.sh: make: not found Failed to build DOSbox cp: cannot stat dosbox_libretro.so': No such file or directory === Building ScummVM === libretro-build.sh: 445: libretro-build.sh: make: not found Failed to clean ScummVM libretro-build.sh: 446: libretro-build.sh: make: not found Failed to build ScummVM cp: cannot statscummvm_libretro.so’: No such file or directory /home/james/libretro-super === Building Picodrive === libretro-build.sh: 555: libretro-build.sh: make: not found Failed to clean Picodrive libretro-build.sh: 556: libretro-build.sh: make: not found Failed to build PCSX Picodrive cp: cannot stat picodrive_libretro.so': No such file or directory === Building Handy === libretro-build.sh: 190: libretro-build.sh: make: not found libretro-build.sh: 191: libretro-build.sh: make: not found cp: cannot stathandy_libretro.so’: No such file or directory === Building Desmume === libretro-build.sh: 219: libretro-build.sh: make: not found Failed to clean Desmume libretro-build.sh: 220: libretro-build.sh: make: not found Failed to build Desmume cp: cannot stat desmume_libretro.so': No such file or directory /home/james/libretro-super === Building PCSX ReARMed === libretro-build.sh: 82: libretro-build.sh: make: not found Failed to clean PCSX ReARMed libretro-build.sh: 83: libretro-build.sh: make: not found Failed to build PCSX ReARMed cp: cannot statpcsx_rearmed_libretro.so’: No such file or directory === OpenGL enabled === === Building Modelviewer (GL) === libretro-build.sh: 403: libretro-build.sh: make: not found Failed to clean Modelviewer libretro-build.sh: 404: libretro-build.sh: make: not found Failed to build Modelviewer cp: cannot stat modelviewer_libretro.so': No such file or directory === Building SceneWalker (GL) === libretro-build.sh: 417: libretro-build.sh: make: not found Failed to clean SceneWalker libretro-build.sh: 418: libretro-build.sh: make: not found Failed to build SceneWalker cp: cannot statscenewalker_libretro.so’: No such file or directory === Building Instancing Viewer (GL) === libretro-build.sh: 431: libretro-build.sh: make: not found Failed to clean InstancingViewer libretro-build.sh: 432: libretro-build.sh: make: not found Failed to build InstancingViewer cp: cannot stat instancingviewer_libretro.so': No such file or directory === Building Mupen 64 Plus === libretro-build.sh: 539: libretro-build.sh: make: not found Failed to clean Mupen 64 libretro-build.sh: 540: libretro-build.sh: make: not found Failed to build Mupen 64 cp: cannot statmupen64plus_libretro.so’: No such file or directory === Checking OpenGL dependencies === === Building FFmpeg === libretro-build.sh: 52: libretro-build.sh: make: not found Failed to clean FFmpeg libretro-build.sh: 53: libretro-build.sh: make: not found cp: cannot stat `ffmpeg_libretro.so’: No such file or directory

Any help would be greatly appreciated, thanks.

For the make errors, try installing package ‘build-essentials’. For the [[ errors, that’s a Bash-only feature. Run it with “bash libretro-build.sh”.

May give more errors, of course, but it should still be some progress.

Thanks so much, That did the trick! now that I got libretro installed, I was able to install RetroArch, but when I try to run it, it gives me this error:

(precise)james@localhost:~/RetroArch$ retroarch RetroArch [WARN] :: system_directory is not set in config. Assuming system directory is same folder as game: “”. RetroArch [ERROR] :: Couldn’t find any input driver named “null” RetroArch [ERROR] :: Fatal error received in: “find_input_driver()”

any ideas?

You’ll need to specify an input driver in the config file. RetroArch comes with a skeleton config (retroarch.cfg) that explains what many of the options do. Copy it to ~/.config/retroarch and add this to the end (or modify the existing, commented line from the ‘input’ section):

input_driver = linuxraw

THanks alot for the help hunterk. That fixed the issue, but now I’m getting a new error

RetroArch: Set audio input rate to: 43989.93 Hz. RetroArch: Adjusting aspect ratio to 1.14 RetroArch: Video @ 768x672 RetroArch [ERROR] :: Cannot open video driver … Exiting … RetroArch [ERROR] :: Fatal error received in: “init_video_input()”

im using “gl” as a video driver. It gives me the same error whether i use retroarch or retroarch phoenix.

Try running ‘retroarch --features’ and make sure it says:

OpenGL:
             OpenGL driver: yes

yes it does include that:

Features: SDL: SDL drivers: no Threads: Threading support: yes OpenGL: OpenGL driver: yes KMS: KMS/EGL context support: no EGL: EGL context support: no OpenVG: OpenVG output support: no XVideo: XVideo output: no ALSA: audio driver: no OSS: audio driver: yes Jack: audio driver: no RSound: audio driver: no RoarAudio: audio driver: no PulseAudio: audio driver: no DirectSound: audio driver: no XAudio2: audio driver: no zlib: PNG encode/decode and .zip extraction: no OpenAL: audio driver: no External: External filter and plugin support: yes Cg: Cg pixel shaders: no libxml2: libxml2 XML parsing: no SDL_image: SDL_image image loading: no FBO: OpenGL render-to-texture (multi-pass shaders): yes Dynamic: Dynamic run-time loading of libretro library: yes FFmpeg: On-the-fly recording of gameplay with libavcodec: no FreeType: TTF font rendering with FreeType: no Netplay: Peer-to-peer netplay: yes Python: Script support in shaders: no

Is it possible that I’m missing a certain opengl package? I know the version of ubuntu that im running is a very stripped down one meant to be installed on the samsung ARM chromebook. Either that or the hardware isnt compatible? I’m not ready to give up on this just yet however.

Also when I try to run roms through RetroArch-Python it gives me this in the error log when I use certain cores

RetroArch: Environ SET_PIXEL_FORMAT: XRGB8888. RetroArch [ERROR] :: Failed to load game. RetroArch: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.

This thread contains the answer to your question: http://forum.themaister.net/viewtopic.php?id=815

TL;DR Just install xorg-dev, recompile, and set video to gl

Thank you! Success! It runs now, but really slow. I’m wondering if this might have anything to do with it?

RetroArch [WARN] :: [GLX]: glXSwapInterval() failed. RetroArch [WARN] :: [GLX]: glXSwapInterval() failed. RetroArch [WARN] :: [GLX]: glXSwapInterval() failed.

It’s using the mesa software renderer. The chrubuntu script doesn’t install the hardware accelerated OpenGL ES 3.0 drivers. The latest linux-chromebook 3.4.x kernel from git is also needed…

Would this apply to crouton as well? This is what I am using. So I would need to download opengl es 3.0 and the latest chromebook kernel? I will try this tonight when I get home! Thanks!

Haven’t tried crouton.

What version of ChromeOS are you running?

Go to chrome://version/ in Chrome,

e.g. :

chrome://version/

Google Chrome 30.0.1599.21 (Official Build 219642) dev Platform 4537.25.0 (Official Build) dev-channel daisy

chrome://gpu/

I believe youre right. This is what my log shows:

RetroArch: [GLX]: Found swap function: glXSwapIntervalMESA. RetroArch: [GLX]: glXSwapInterval(1) RetroArch [WARN] :: [GLX]: glXSwapInterval() failed. RetroArch: [GL]: Vendor: Mesa Project, Renderer: Software Rasterizer.

chrome/gpu when im in chrome os shows that its using Opengl ES 3.0 chrome/gpu when in ubuntu shows this:

GL version 2.1 GL_VENDOR Mesa Project GL_RENDERER Software Rasterizer GL_VERSION 2.1 Mesa 8.0.4

Is there a way to install opengl es 3.0 in ubuntu? I have opengl es 2.0 installed, is there a way to force it to use the hardware driver?

I’ve gotten RetroArch running with hardware accelerated OpenGL ES 3.0 on Ubuntu by following the instructions at:

http://malideveloper.arm.com/develop-fo … hromebook/