I had to modify mamearcade.make - others may need this too.
in the file ... /mame/build/projects/sdl/mamearcade/gmake-linux/mamearcade.make
Every line containing the following (6 of them) needs to be modified to end with -lSLD2, as shown.
LIBS += $(LDDEPS) -ldl -lrt -lm -lpthread -lutil -lGL -lasound -lQt5Widgets -lQt5Gui -lQt5Core -lX11 -lXinerama -lXext -lXi -lSDL2_ttf -lfontconfig -lfreetype -lSDL2
Just search for -lfreetype, the current end of those lines, as this only occurs in the 6 relevant places.
Without this change, the following error occurs:
...
/usr/bin/ld: ../../../../linux_gcc/bin/x64/Release/mame_arcade/libosd_sdl.a(sdlmain.o): undefined reference to symbol 'SDL_GetVideoDriver'
/usr/bin/ld: /lib/x86_64-linux-gnu/libSDL2-2.0.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [mamearcade.make:251: ../../../../../mamearcade64] Error 1
make[1]: *** [Makefile:409: mamearcade] Error 2
make[1]: Leaving directory '/home/pc2/Desktop/MAME_Test/Make_MAME/mame/build/projects/sdl/mamearcade/gmake-linux'
make: *** [makefile:1293: linux_x64] Error 2
My system: Ubuntu 20.04.2 LTS Python 3.8.10 (included with Ubuntu LTS) sudo apt-get install python-is-python3
worked, thank you!
Strangly also -lQt5Widgets -lQt5Gui -lQt5Core -lfontconfig was missing :man_shrugging: