Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • ramchip
    Post count: 19

    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!

    Post count: 19

    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!

    Post count: 1

    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)
  • You must be logged in to reply to this topic.