MAME Recompile for PS3 controllers

Welcome Page Forums RetroPie Project Everything else related to the RetroPie Project MAME Recompile for PS3 controllers

This topic contains 2 replies, has 2 voices, and was last updated by  paulrooney 3 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #73186


    I am on 2.3 retropie and trying to compile MAME after editing the minimal.cp to allow 6 axis controllers. When I do sudo make I get this.

    rpi/drivers/magix.o obj_mame_rpi/drivers/royalmah.o obj_mame_rpi/drivers/neogeo.o -o mame
    /usr/bin/ld: obj_mame_rpi/rpi/minimal.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.4'
    //lib/arm-linux-gnueabihf/ error adding symbols: DSO missing from command line
    collect2: ld returned 1 exit status
    Makefile:67: recipe for target 'mame' failed

    Also when I try to compile pisNES getting around the same error. Once I have this fixed I will have a pretty much complete emulationstation.

    Thanks in advance to all!



    OK Guys it appears that all I had to do was add -lrt to CFLAGS.

    Run your make as follows.
    make CFLAGS+=”-lrt”

    Thanks to everyone in the #raspberrypi channel on freenode for their help!



    I added it to


    with all the other -l commands. I had to add -lasound to get around another link error.

    CFLAGS is generally used for compilation and LDFLAGS is used for linking. This makefile also defines LIBS for the link stage.

Viewing 3 posts - 1 through 3 (of 3 total)

Forums are currently read only - please visit the new RetroPie forums at

PLEASE NOTE: All orders that are placed between January 14th and January 28th will be shipped on January 29th. Dismiss