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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #73186
    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
    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
    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)
  • The forum ‘Everything else related to the RetroPie Project’ is closed to new topics and replies.