Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
06016 Compiling Feature Always Aug 18, 2015, 00:37 Aug 21, 2015, 01:58
Tester deragon View Status Public Platform MAME (Self-compiled)
Assigned To Resolution Invalid report OS Linux
Status [?] Closed Driver
Version 0.164 Fixed in Version Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 06016: Document dependencies required to build Mame.
Description I attempt to compile the source code from GIT, but I fail to figure out the dependencies required. I have loaded over 195 packages regarding QT4 and QT5, of which 24 have 'dev' in their names and/or description. This is on a Ubuntu 14.04 LTS Trusty Thar system, 64 bits.

$ dpkg -l | fgrep 'qt' | wc -l
195

$ dpkg -l | fgrep 'qt' | fgrep 'dev' | wc -l
24

The packages include qtlocation5-dev and qt4-default.

I am not a C/C++ developer, so I am not familiar with the regular dependencies required for a QT project. It would be great if for major distributions such as Ubuntu, the list of dependencies be documented in the README.md file, or better a shell script be provided with the code to install all the required dependencies.

Following is the error I never got resolved and for which I still have not find the missing dependency.

$ make
Compiling src/osd/modules/debugger/debugqt.c...
../../../../../src/osd/modules/debugger/debugqt.c:22:23: fatal error: QtGui/QtGui: No such file or directory
 #include <QtGui/QtGui>
                       ^
compilation terminated.
make[2]: *** [../../../../linux_gcc/obj/x64/Release/osd_sdl/src/osd/modules/debugger/debugqt.o] Error 1
make[1]: *** [osd_sdl] Error 2
make: *** [linux_x64] Error 2
Steps To Reproduce
Additional Information
Github Commit
Flags
Regression Version
Affected Sets / Systems
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
4
User avatar
No.11969
Duke
Developer
Aug 18, 2015, 08:22
Help is here: http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=35138#Post35138

Or look into the .travis.yml file: https://github.com/mamedev/mame/blob/77a0a99a0b66c22d5afbc525b9010ca78685d00f/.travis.yml

Arguable this should be somewhere in our documentation.
User avatar
No.11975
deragon
Tester
Aug 19, 2015, 20:10
Duke, following your instructions, I ran the following. I suppressed normal output and only show errors. I still cannot compile MAME; I have the same error as reported earlier.

$ apt-get install build-essential subversion libsdl1.2-dev libgtk2.0-dev libgconf2-dev libsdl-ttf2.0-dev gcc-4.6 g++-4.6
$ apt-get install libqt4-*
$ apt-get install -y libsdl2-dev libsdl2-ttf-dev libasound2-dev libqt4-dev libqt4-dev-bin
$ add-apt-repository ppa:zoogie/sdl2-snapshots -y
$ add-apt-repository ppa:shahar-evron/qt-backports -y
$ apt-get update -qq
W: Failed to fetch http://ppa.launchpad.net/shahar-evron/qt-backports/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/shahar-evron/qt-backports/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
$ apt-get install -y libsdl2-dev libsdl2-ttf-dev libasound2-dev libqt4-dev libqt4-dev-bin
Unpacking libsdl2:amd64 (2.0.3+z4~20140315-8621-1ppa1trusty1) ...
dpkg: error processing archive /var/cache/apt/archives/libsdl2_2.0.3+z4~20140315-8621-1ppa1trusty1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0', which is also in package libsdl2-2.0-0:amd64 2.0.2+dfsg1-3ubuntu1.1
Selecting previously unselected package libsdl2-ttf:amd64.
Preparing to unpack .../libsdl2-ttf_2.0.12+z13~20131023-259-1ppa1trusty1_amd64.deb ...
Unpacking libsdl2-ttf:amd64 (2.0.12+z13~20131023-259-1ppa1trusty1) ...
dpkg: error processing archive /var/cache/apt/archives/libsdl2-ttf_2.0.12+z13~20131023-259-1ppa1trusty1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libSDL2_ttf-2.0.so.0.10.2', which is also in package libsdl2-ttf-2.0-0:amd64 2.0.12+dfsg1-2
Errors were encountered while processing:
 /var/cache/apt/archives/libsdl2_2.0.3+z4~20140315-8621-1ppa1trusty1_amd64.deb
 /var/cache/apt/archives/libsdl2-ttf_2.0.12+z13~20131023-259-1ppa1trusty1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
User avatar
No.11981
NekoEd
Senior Tester
Aug 21, 2015, 01:52
edited on: Aug 21, 2015, 01:56
This doesn't look like our problem. I recommend heading to the SDLMAME forum and requesting assistance there. Closing as invalid.
User avatar
No.11982
Robbbert
Senior Tester
Aug 21, 2015, 01:58
I tend to agree. It should be discussed on the SDLMAME forum.

http://forums.bannister.org/ubbthreads.php?ubb=postlist&Board=8&page=1