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 Profile photo of paulrooney paulrooney 2 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #73186
    Profile photo of ramchip
    ramchip
    Participant

    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/librt.so.1: 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!

    #73208
    Profile photo of ramchip
    ramchip
    Participant

    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!

    #81663
    Profile photo of paulrooney
    paulrooney
    Participant

    I added it to

    LIBS

    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 https://retropie.org.uk/forums/

Skip to toolbar