Menu

Problems compiling AdvanceMAME on Raspberry Pi 3

Yami
2016-11-11
2016-11-13
  • Yami

    Yami - 2016-11-11

    Hi,
    I was able to compile without problems AdvanceMAME 1.5 on Raspberry Pi 1 with the following procedure:

    1. (as root)
    apt-get install libsdl1.2-dev gcc-4.7 autoconf git
    
    2. (change to 4.7 Compiler)
    export CC=gcc-4.7 
    export GCC=g++-4.7
    
    3. (clone source)
    git clone https://github.com/amadvance/advancemame.git
    
    4. (in advmame folder)
    ./autogen.sh
    ./configure
    make
    make install
    

    But 'cause of this bug I'm actually unable to compile AdvanceMAME on my new Raspberry Pi 3. I already tried to use GCC 6 (from Rasbpian "stretch"), it seems OK but later in compilation I get a similar error.

    Any help? :(

     
  • Andrea Mazzoleni

    Hi Yami,

    Please try with:

    ./configure CFLAGS=-O2
    

    Let me know if it works.

    Ciao,
    Andrea

     
  • Yami

    Yami - 2016-11-12

    Hi Andrea and thank you for your suggestion.
    ATM I compiled Advancemame 1.5 on RPi3 editing the Makefile to reflect GCC6.

    I'll check your alternative method with "standard" GCC.

     
  • Andrea Mazzoleni

    Hi Yami,

    Building for GCC 6 is surely better. You'll get more optimizations.

    Note that instead of changing manually the Makefile, you can configure the compilers at the configure step, like with:

    ./configure CC=gcc-6.0 CXX=g++-6.0
    

    Ciao,
    Andrea

     

Log in to post a comment.