Being able to compile mame in knoppix 9.1
============================
Being able to compile mame 238 in knoppix 9.1
============================
What's necessary to compile mame is just:
sudo apt-get install git build-essential python libsdl2-dev libsdl2-ttf-dev libfontconfig-dev libpulse-dev qt5-default
but what if we wanted to be able to compile mame by adding .deb packages manually?
I got the following packages from packages.debian.org:
libasound2-dev_1.2.4-1.1_i386.deb
libpulse-dev_14.2-2_i386.deb
libqt5core5a_5.15.2+dfsg-9_i386.deb
libqt5gui5_5.15.2+dfsg-9_i386.deb
libqt5widgets5_5.15.2+dfsg-9_i386.deb
libsdl2-dev_2.0.14+dfsg2-3_i386.deb
libsdl2-ttf-dev_2.0.15+dfsg1-1_i386.deb
libsdl-sound1.2_1.0.3-9+b1_i386.deb
libsndio-dev_1.5.0-3_i386.deb
libudev-dev_247.3-6_i386.deb
qtbase5-dev_5.15.2+dfsg-9_i386.deb
qtbase5-dev-tools_5.15.2+dfsg-9_i386.deb
also need these to run:
liblua5.3-0_5.3.3-1.1+b1_i386.deb
libpugixml1v5_1.11.4-1_i386.deb
So put them all in a directory then:
sudo dpkg -i --force-depends *.deb
and it will install them all at once. We use --force-depends because we haven't actually got every package needed to satisfy all the dependencies.
Get the source for mame0238 and extracting the mame0238.exe, cd into the directory, edit the makefile with
"nano makefile" so that we specify our compile to be 32 bit and where to find qt5:
#PTR64 = 1
edit to say
PTR64 = 0
since we're compiling for an 32 bit target
and also
#QT_HOME = /usr/lib/qt5/
edit to
QT_HOME = /usr/lib/i386-linux-gnu/qt5/
then save it with CTRL+O, exit with CTRL+X.
time make -j4
and it should be able to complete the compile.
and launch your freshly compiled mame with
./mame -rompath "path_to_my_roms"