Error during compile of mame4all-pi sources
  • Hi everybody,
    i tried to complie the sources of the mame4all-pi Project. But during the build with make -f Makefile I receive the following error:
    /usr/bin/ld: obj_mame_rpi/rpi/sound.o: undefined reference to symbol 'snd_pcm_hw_params_malloc@@ALSA_0.9'
    //usr/lib/arm-linux-gnueabihf/libasound.so.2: error adding symbols: DSO missing from command line
    collect2: ld returned 1 exit status
    Makefile:67: recipe for target 'mame' failed
    make: *** [mame] Error 1

    Any Idee?

    I get a local copy of the mame4all-pi repository with the command: git clone https://code.google.com/p/mame4all-pi/

    Regards Sappi
  • alsa-dev libs are missing?
  • how can I check if the alsa-dev libs are missing ?
  • dpkg -l | grep alsa
  • can't find any alsa-dev to install, installed all libasound2* same issue
  • that's strange... I trhink you should add

    LIBS=-lasound

    in Makefile like this

    LIBS = -lm -lpthread -lSDL -L$(SDKSTAGE)/opt/vc/lib -lbcm_host -lGLESv2 -lEGL -lglib-2.0 -lasound

    and try to recompile
  • Hi,

    i finaly find the time to test your suggestions. It seems to work for me.
    The error DSO missing from command line is resolved.

    thx
    sappi
  • i've tried all above sugestions and i still get the errror:

    //usr/lib/arm-linux-gnueabihf/libasound.so.2: error adding symbols: DSO missing from command line
    collect2: ld returned 1 exit status
    Makefile:67: recipe for target 'mame' failed
    make: *** [mame] Error 1


    if somebody can point me in the right direction how to solve it would be much appreciated.

    thanks
  • You need to install the libs and the dev version of libasound.
  • in case is usefull for somebody else. here is what i did to recompile:
    I installed a bunch of packages recommended for xbmc version of paspbian. i think not all of them are requiered but i did them all:

    sudo apt-get install build-essential autoconf ccache gawk gperf mesa-utils zip unzip



    sudo apt-get install autotools-dev comerr-dev dpkg-dev libalsaplayer-dev \
    libapt-pkg-dev:armhf libasound2-dev:armhf libass-dev:armhf libatk1.0-dev \
    libavahi-client-dev libavahi-common-dev libavcodec-dev libavformat-dev \
    libavutil-dev libbison-dev:armhf libbluray-dev:armhf libboost1.49-dev \
    libbz2-dev:armhf libc-dev-bin libc6-dev:armhf libcaca-dev libcairo2-dev \
    libcdio-dev libclalsadrv-dev libcrypto++-dev libcups2-dev libcurl3-gnutls-dev \
    libdbus-1-dev libdbus-glib-1-dev libdirectfb-dev libdrm-dev libegl1-mesa-dev \
    libelf-dev libenca-dev libept-dev libevent-dev libexpat1-dev libflac-dev:armhf \
    libfontconfig1-dev libfreetype6-dev libfribidi-dev libgconf2-dev \
    libgcrypt11-dev libgdk-pixbuf2.0-dev libgl1-mesa-dev libgles2-mesa-dev \
    libglew-dev:armhf libglewmx-dev:armhf libglib2.0-dev libglu1-mesa-dev \
    libgnome-keyring-dev libgnutls-dev libgpg-error-dev libgtk2.0-dev libhal-dev \
    libhunspell-dev:armhf libice-dev:armhf libicu-dev libidn11-dev libiso9660-dev \
    libjasper-dev libjbig-dev:armhf libjconv-dev libjpeg8-dev:armhf libkrb5-dev \
    libldap2-dev:armhf libltdl-dev:armhf liblzo2-dev libmad0-dev libmicrohttpd-dev \
    libmodplug-dev libmp3lame-dev:armhf libmpeg2-4-dev libmysqlclient-dev \
    libncurses5-dev libnspr4-dev libnss3-dev libogg-dev:armhf libopenal-dev:armhf \
    libp11-kit-dev libpam0g-dev:armhf libpango1.0-dev libpcre++-dev libpcre3-dev \
    libpixman-1-dev libpng12-dev libprotobuf-dev libpthread-stubs0-dev:armhf \
    libpulse-dev:armhf librtmp-dev libsamplerate0-dev:armhf \
    libsdl-image1.2-dev:armhf libsdl1.2-dev libslang2-dev:armhf \
    libsm-dev:armhf libsmbclient-dev:armhf libspeex-dev:armhf \
    libsqlite3-dev libssh-dev libssh2-1-dev libssl-dev libstdc++6-4.6-dev \
    libtagcoll2-dev libtasn1-3-dev libtiff4-dev libtinfo-dev:armhf libtinyxml-dev \
    libts-dev:armhf libudev-dev libv8-dev libva-dev:armhf libvdpau-dev:armhf \
    libvorbis-dev:armhf libvpx-dev:armhf libwebp-dev:armhf libwibble-dev \
    libx11-dev:armhf libx11-xcb-dev libxapian-dev libxau-dev:armhf \
    libxcb-glx0-dev:armhf libxcb-render0-dev:armhf libxcb-shm0-dev:armhf \
    libxcb1-dev:armhf libxcomposite-dev libxcursor-dev:armhf libxdamage-dev \
    libxdmcp-dev:armhf libxext-dev:armhf libxfixes-dev libxft-dev libxi-dev \
    libxinerama-dev:armhf libxml2-dev:armhf libxmu-dev:armhf libxrandr-dev \
    libxrender-dev:armhf libxslt1-dev libxss-dev:armhf libxt-dev:armhf \
    libxtst-dev:armhf libxxf86vm-dev libyajl-dev libzip-dev linux-libc-dev:armhf \
    lzma-dev mesa-common-dev python-dev python2.7-dev x11proto-composite-dev \
    x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev \
    x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev \
    x11proto-record-dev x11proto-render-dev x11proto-scrnsaver-dev \
    x11proto-xext-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xtrans-dev \
    zlib1g-dev:armhf

    sudo apt-get clean

    after i installed those packages i went into the Makefile and commented the line LIBS and replaced it by this:

    LIBS = -lm -lpthread -lSDL -L$(SDKSTAGE)/opt/vc/lib -lbcm_host -lGLESv2 -lEGL -lglib-2.0 -lasound
    LIBS+=-lz -lrt -lm

    at least that worked for me and i was able to recompile
  • Wow, that's a lot of stuff. Cool :D

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!