My issue looks similar to this one previously posted: http://www.bannister.org/forums/ubbthreads.php?ubb=showflat&Number=53103#Post53103
""lrelease mamepgui.pro && qmake && make" failed to link on my Ubuntu (9.04 amd64) due to jpeg and ico plugins.
I had previously installed libqt4-dev, qt4-qmake, and qt4-dev-tools.
I don't know how Qt build system works.
I commented the lines in "build_static" section in mamepgui.pro file :
# QTPLUGIN += qico qjpeg
# DEFINES += USE_STATIC
And it seems to work now."
... however, LiuKahr's fix doesn't work for me.