OS X Input Driver

I don’t know how to get joystick input working…?

RetroArch [ERROR] :: Couldn’t find any input driver named “null” RetroArch [ERROR] :: Fatal error received in: “find_input_driver()”

I’ve tried changing the input driver to SDL, Cocoa, not sure what else I can try. I’ve also noticed SDL isn’t being compiled against anymore and is listed as ‘no’ in features.

(from macports) libsdl @1.2.15_3+universal+x11 (active)

OS X 10.8.4 RetroArch: Frontend for libretro – v0.9.9.6 – Compiler: GCC (4.8.1) 64-bit Built: Aug 24 2013

Have you tried configuring with --enable-sdl added explicitly?

Tried just now, still no joystick.


$ ./configure --prefix=/opt/local --enable-sdl
Checking operating system ... Darwin
Checking for suitable working C compiler ... /opt/local/bin/gcc
Checking for suitable working C++ compiler ... /opt/local/bin/g++
Checking for availability of switch -std=gnu99 in /opt/local/bin/gcc ... yes
Checking for availability of switch -Wno-unused-result in /opt/local/bin/gcc ... yes
Checking for availability of switch -Wno-unused-variable in /opt/local/bin/gcc ... yes
Checking function bcm_host_init in -lbcm_host ... no
Checking for pkg-config ... /opt/local/bin/pkg-config
Checking presence of package egl ... no
Checking existence of -lEGL ... no
Checking function pthread_create in -lpthread ... yes
Checking function dlopen in -ldl ... yes
Checking function socket in -lc ... yes
Checking function getaddrinfo in -lc ... yes
Checking function fcntl in -lc ... yes
Checking function getopt_long in -lc ... yes
Checking presence of package alsa ... no
Checking presence of header file sys/soundcard.h ... no
Checking presence of header file soundcard.h ... no
Checking existence of -lossaudio ... no
Checking function alcOpenDevice in -framework OpenAL ... yes
Checking presence of package rsound with minimum version 1.1 ... no
Checking presence of package libroar ... no
Checking presence of package jack with minimum version 0.120.1 ... yes
Checking presence of package libpulse ... no
Checking function AudioUnitInitialize in -framework AudioUnit ... yes
Checking function cgCreateContext in -framework Cg ... yes
SDL is disabled. Disabling SDL_image.
Checking presence of package zlib ... yes
Checking presence of package libavcodec with minimum version 54 ... yes
Checking presence of package libavformat with minimum version 54 ... yes
Checking presence of package libavutil with minimum version 51 ... yes
Checking presence of package libswscale with minimum version 2.1 ... yes
Checking function dlopen in -ldl ... yes
Checking presence of package gbm with minimum version 9.0 ... no
Checking presence of package libdrm ... no
Checking presence of package libxml-2.0 ... yes
Checking function glFramebufferTexture2D in -framework OpenGL ... yes
Checking presence of package freetype2 ... yes
X11, Xext or xf86vm not present. Skipping X11 code paths.
Checking function strlcpy in -lc ... yes
Checking presence of package python3 ... no
Creating make config: config.mk
Creating config header: config.h

And these are the enabled features,

$ retroarch --features
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: no
    Jack:
        audio driver: yes
    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: yes
    OpenAL:
        audio driver: yes
    External:
        External filter and plugin support: yes
    Cg:
        Cg pixel shaders: yes
    libxml2:
        libxml2 XML parsing: yes
    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: yes
    FreeType:
        TTF font rendering with FreeType: yes
    Netplay:
        Peer-to-peer netplay: yes
    Python:
        Script support in shaders: no

looks like it’s still not finding it. Perhaps it wants the SDL Framework or whatever, rather than the macports lib…?

The SDL OSX port is dead now. There is a proper OSX standalone version now.

Compile it with Xcode. No additional dependencies needed.

Ok, I’ve managed to compile and install. But Retroarch quits on opening saying ‘no libretro cores were found’,

This appears in Xcode…

RetroArch [ERROR] :: Couldn’t find config at path: “/Users/Cornelius/Library/Application Support/RetroArch/retroarch.cfg” RetroArch [ERROR] :: Fatal error received in: “parse_config_file()”

But I just get no info from the command line.

The directory and config don’t exist, So I’ve put an older version config file there (couldn’t find a newer skeleton config) and it still says no cores found but will load RGUI.

Joystick still doesn’t work. Retroarch says it’s using “apple input”, but nada, and there are no other options.

Other than that the new version’s looking pretty cool.

Just wondering, with this new native gui, will I still be able to invoke different config files on the commandline? (I have a different config per emulated system, and generally run everything through an alternative front-end which just passes command-line arguements.) At the moment I can’t, Retroarch will only load the one config in “Application Support”.

Thanks for taking the time to answer me and help me out.

You need to put the cores in apple/modules before building and deploying. The appbundle is the default path where it will look for cores. You can change this path later on.