Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148644 - ebuild request for games-emulation/qmc2
Summary: ebuild request for games-emulation/qmc2
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 3 votes (vote)
Assignee: Default Assignee for New Packages
URL: http://www.mameworld.net/mamecat/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-09-22 06:10 UTC by Niels van Aert
Modified: 2018-12-03 12:57 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
games-emulation/qmc2-0.1.9 ebuild (qmc2-0.1.9.ebuild,1.62 KB, text/plain)
2007-05-21 02:02 UTC, Avuton Olrich
Details
games-emulation/qmc2-0.1.9.ebuild (qmc2-0.1.9.ebuild,1.62 KB, text/plain)
2007-07-08 02:35 UTC, Jesse Adelman
Details
games-emulation/qmc2-0.1.9.ebuild (qmc2-0.1.9.ebuild,1.65 KB, text/plain)
2007-07-08 09:03 UTC, Jesse Adelman
Details
games-emulation/qmc2-0.1.10.ebuild (qmc2-0.1.10.ebuild,1.64 KB, text/plain)
2007-07-26 18:53 UTC, Jesse Adelman
Details
New ebuild for qmc-0.2b6 (qmc2-0.2_beta6.ebuild,1.59 KB, text/plain)
2009-01-30 19:52 UTC, Jonathan Heaney
Details
Patch for Makefile (qmc2-new-makefile.patch,1.32 KB, patch)
2009-01-30 19:53 UTC, Jonathan Heaney
Details | Diff
Fullscreen native resolution patch (qmc2-fullscreen-native-res.patch,1.97 KB, patch)
2009-01-30 19:55 UTC, Jonathan Heaney
Details | Diff
Version bump for qmc-0.2b7 (qmc2-0.2_beta7.ebuild,1.54 KB, text/plain)
2009-03-18 14:11 UTC, Jonathan Heaney
Details
Version bump for qmc-0.2b716 (qmc2-0.2_beta16.ebuild,1.54 KB, text/plain)
2010-08-05 02:45 UTC, Shane Sofos
Details
games-emulation/qmc2-0.34.ebuild (qmc2-0.34.ebuild,2.45 KB, text/plain)
2011-12-27 20:31 UTC, Jared B.
Details
games-emulation/qmc2-0.35.ebuild (qmc2-0.35.ebuild,2.36 KB, text/plain)
2013-03-10 17:48 UTC, Jared B.
Details
games-emulation/qmc2-0.38.ebuild (qmc2-0.38.ebuild,2.29 KB, text/plain)
2013-06-09 22:19 UTC, Michał Ziąbkowski
Details
qmc2-0.2_beta20-makefile.patch (qmc2-0.2_beta20-makefile.patch,1.05 KB, patch)
2013-06-09 22:19 UTC, Michał Ziąbkowski
Details | Diff
qmc2-0.54.ebuild (qmc2-0.54.ebuild,1.68 KB, text/plain)
2015-08-20 23:57 UTC, Rick Harris
Details
youtube fix when not phonon (qmc2-0.55-youtube.patch,339 bytes, patch)
2015-09-05 03:18 UTC, Techwolf
Details | Diff
qmc2-0.192.ebuild (qmc2-0.192.ebuild,1.68 KB, text/plain)
2018-02-03 03:24 UTC, Lampros Liontos
Details
qmc2-0.195.ebuild (qmc2-0.195.ebuild,1.72 KB, text/plain)
2018-09-11 19:32 UTC, Lampros Liontos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Niels van Aert 2006-09-22 06:10:42 UTC
The new version of mamecat, more information can be found at: http://www.mameworld.net/mamecat/
Comment 1 John Koutras 2006-10-15 08:10:28 UTC
I second that.

QMC2 0.1.b5 is already out and also supports QT4!
Comment 2 Avuton Olrich 2007-05-21 02:02:44 UTC
Created attachment 119859 [details]
games-emulation/qmc2-0.1.9 ebuild

Here's the long awaited ebuild.
Comment 3 Avuton Olrich 2007-05-21 02:04:08 UTC
This ebuild is also assuming we don't care anymore about XMAME support, which I hope goes away soon, as upstream development seems to have come to a screeching halt.
Comment 4 Jesse Adelman 2007-07-07 23:37:22 UTC
0.1.b9 out as of 3/2007. I just installed sdlmame 0.116, I'll hopefully have time this weekend to test this with the ebuild attached here.
Comment 5 Jesse Adelman 2007-07-08 02:35:51 UTC
Created attachment 124194 [details]
games-emulation/qmc2-0.1.9.ebuild

Corrected DEPEND syntax
Comment 6 Jesse Adelman 2007-07-08 02:39:46 UTC
Works For Me(tm) on x86, but do we really need to have the accessibility and qt3support? I'm trying without these enabled, and will report success/failure. Thanks!
Comment 7 Avuton Olrich 2007-07-08 03:37:32 UTC
Absolutely required, at least last time I tried. I wouldn't have put them otherwise. I found /that/ out from someone in the forums. 
Comment 8 Avuton Olrich 2007-07-08 03:38:31 UTC
Also, it does not work at all with qt-4.3, that's why I had the DEPEND syntax the way it was.
Comment 9 Jesse Adelman 2007-07-08 09:01:23 UTC
OK, I confirmed Avuton's finding that "accessibility" is needed, but not "qt3support". Didn't realize that you need to mask qt-4.3+, but I had the change the format, as I got "Invalid atom" when I tried your ebuild. I fixed this, and I'll attach with fixes.
Comment 10 Jesse Adelman 2007-07-08 09:03:44 UTC
Created attachment 124221 [details]
games-emulation/qmc2-0.1.9.ebuild

DEPEND on qt-4.2* exclusively; trim USE flag deps to "accessibility"
Comment 11 xenon 2007-07-17 19:51:14 UTC
The commented line #29 in attachment #124221 [details] [edit] includes the "then" word belonging
to the if statement, thus breaking the ebuild. Easily fixed, of course.

Thanks for your work, by the way.
Comment 12 zhoumi 2007-07-21 21:05:17 UTC
QMC2 0.1.b10 now also supports Qt 4.3!

While I emerge this version with qmc2-0.1.9.ebuild(changed the file name),I got this message:
.....................
Build of QMC2 v0.1.b10 complete
Installing QMC2 v0.1.b10
rsync: failed to set times on "/var/tmp/portage/games-emulation/qmc2-0.1.10/image/usr/share/qmc2/opt/XMAME/template.xml": Bad file descriptor (9)
rsync error: some files could not be transferred (code 23) at main.c(980) [sender=2.6.9]
make: *** [install] Error 23
Comment 13 Jesse Adelman 2007-07-26 18:53:10 UTC
Created attachment 126093 [details]
games-emulation/qmc2-0.1.10.ebuild

Fixes missing then in commented section; removes DEPEND version restriction on QT >= 4.3.
Comment 14 Jesse Adelman 2007-07-26 18:53:57 UTC
Run test works. Please test and report. Thanks!
Comment 15 Jonathan Heaney 2009-01-30 19:52:46 UTC
Created attachment 180310 [details]
New ebuild for qmc-0.2b6

It would be nice to resurrect this - qmc2 is about the only sdlmame front end I've found that works well.

Anyway, I've updated the ebuild that was linked on the qmc2 site for 0.2b5 to work with 0.2b6 (I didn't know about this bug).  Just some changes to the Makefile.

I've also included the patch to support native game/machine resolutions in fullscreen mode, although sdlmame needs to be rebuild with another patch (d/l from qmc2 website - easy to apply, a one line epatch in the sdlame ebuild).

Two patches for the 'files' directory to follow.
Comment 16 Jonathan Heaney 2009-01-30 19:53:29 UTC
Created attachment 180311 [details, diff]
Patch for Makefile

New version of the Makefile patch from the b5 ebuild
Comment 17 Jonathan Heaney 2009-01-30 19:55:18 UTC
Created attachment 180312 [details, diff]
Fullscreen native resolution patch

Apparently only works in software video mode.  I've not tested this yet, but the patch applied cleanly.
Comment 18 Jonathan Heaney 2009-01-30 20:00:43 UTC
Also - the qmc2 file you run is a symlink to qmc2-sdlmame, there is also a qmc2-sdlmess exe, although I do not use this.

You are recommended to delete /etc/qmc2/qmc2.ini for global use, although I think etc-update got the changes right for it so I didn't bother.

Also, no games were listed the first time it ran, I had to restart the app, then it listed all the roms but said they were unavailable, this was fixed by running the "Check ROM state" feature.
Comment 19 Jonathan Heaney 2009-03-18 14:11:02 UTC
Created attachment 185426 [details]
Version bump for qmc-0.2b7

Simple version bump.  Beta7 does not seem to require the Makefile to be patched any more.
Comment 20 Jaime Martin 2009-04-13 10:16:07 UTC
(In reply to comment #19)
> Created an attachment (id=185426) [edit]
> Version bump for qmc-0.2b7
> 

It doesn't work for me (amd64 arch):

[C++ ] emuopt.cpp
emuopt.cpp: In member function ‘virtual QWidget* EmulatorOptionDelegate::createEditor(QWidget*, const QStyleOptionViewItem&, const QModelIndex&) const’:
emuopt.cpp:58: error: ‘class QComboBox’ has no member named ‘setAccessibleName’
emuopt.cpp:69: error: ‘class QSpinBox’ has no member named ‘setAccessibleName’
emuopt.cpp:81: error: ‘class QDoubleSpinBox’ has no member named ‘setAccessibleName’
emuopt.cpp:91: error: ‘class QLineEdit’ has no member named ‘setAccessibleName’
emuopt.cpp: In member function ‘virtual void EmulatorOptionDelegate::setEditorData(QWidget*, const QModelIndex&) const’:
emuopt.cpp:105: error: ‘class QWidget’ has no member named ‘accessibleName’
emuopt.cpp:111: error: ‘class QWidget’ has no member named ‘accessibleName’
emuopt.cpp:117: error: ‘class QWidget’ has no member named ‘accessibleName’
emuopt.cpp: In member function ‘virtual void EmulatorOptionDelegate::setModelData(QWidget*, QAbstractItemModel*, const QModelIndex&) const’:
emuopt.cpp:138: error: ‘class QWidget’ has no member named ‘accessibleName’
emuopt.cpp:143: error: ‘class QWidget’ has no member named ‘accessibleName’
emuopt.cpp:149: error: ‘class QWidget’ has no member named ‘accessibleName’
make[1]: *** [emuopt.o] Error 1

Comment 21 Jonathan Heaney 2009-04-13 15:27:44 UTC
(In reply to comment #20)

What version of qt-gui do you have installed?
Comment 22 Jaime Martin 2009-04-13 19:10:03 UTC
(In reply to comment #21)

I have: x11-libs/qt-gui-4.4.2-r3  USE="cups dbus glib qt3support tiff -accessibility -custom-cxxflags -debug -mng -nas -nis -pch -xinerama" INPUT_DEVICES="-wacom" 
Comment 23 Jonathan Heaney 2009-04-13 21:46:56 UTC
(In reply to comment #22)
> (In reply to comment #21)
> 
> I have: x11-libs/qt-gui-4.4.2-r3  USE="cups dbus glib qt3support tiff
> -accessibility -custom-cxxflags -debug -mng -nas -nis -pch -xinerama"
> INPUT_DEVICES="-wacom" 
> 

I've got 4.5.0 here, but according to the homepage, although 4.5 is desired it should still work with 4.4.2.  Different USE flags as well - might be worth investigating.  I've got -

USE="accessibility cups dbus glib mng pch qt3support tiff -custom-cxxflags -debug -gtkstyle -nas -nis -raster -xinerama"

Some of them are obviously 4.5 specific.

Also I don't have amd64, unless someone else can comment?  Might be worth heading over here http://sourceforge.net/forum/forum.php?forum_id=658600 and filing a report.  Rene Reucher is usually pretty quick to answer posts.
Comment 24 Jaime Martin 2009-04-16 21:51:58 UTC
(In reply to comment #23)

Fixed by recompiling qt-gui with this line added to the package.use file:

x11-libs/qt-gui mng accessibility

Thank very much Jonathan. 
Comment 25 Jonathan Heaney 2009-04-16 23:27:55 UTC
(In reply to comment #24)
> (In reply to comment #23)
> 
> Fixed by recompiling qt-gui with this line added to the package.use file:
> 
> x11-libs/qt-gui mng accessibility
> 
> Thank very much Jonathan. 
> 

No probs.  Actually, looking at your original bug report, it's now pretty obvious that it needs qt-gui built with the accessibility USE flag.  I'll get around to updating the ebuild to reflect this.
Comment 26 Markus Rathgeb 2010-01-26 12:03:35 UTC
Just a note:
v0.2.b13, 02-JAN-2010
v0.2.b14, 26-JAN-2010
Comment 27 Jonathan Heaney 2010-01-26 16:50:45 UTC
(In reply to comment #26)
> Just a note:
> v0.2.b13, 02-JAN-2010
> v0.2.b14, 26-JAN-2010
> 

I still don't see b14 on their website, but b13 ebuild is available in roslin overlay

http://gpo.zugaina.org/games-emulation/qmc2
Comment 28 Markus Rathgeb 2010-01-26 18:05:11 UTC
I looked at the CHANGES link of the project homepage, that directs to:
http://qmc2.svn.sourceforge.net/viewvc/qmc2/trunk/data/doc/html/us/changes.html
Comment 29 Shane Sofos 2010-08-05 02:45:13 UTC
Created attachment 241459 [details]
Version bump for qmc-0.2b716

eBuild version bump. Testing on Gentoo AMD64 system, builds and installs successfully.
Comment 30 Jared B. 2011-12-27 20:31:44 UTC
Created attachment 297111 [details]
games-emulation/qmc2-0.34.ebuild

Attaching update for QMC2 0.34, which matches the current stable version of sdlmame in Portage, 0.144.  The most obvious difference in this ebuild is the name, which (finally) drops the beta tag.  I've made several other tweaks over the past year or so as well, such as adding support for the youtube option, tightening the dependencies list a bit, and stuff like that. but it's been so long since I've worked on it that I really don't remember everything at this point.  Shouldn't be hard to simply compare this w/ the previous version, though.  :-)
Comment 31 Jared B. 2013-03-10 17:48:35 UTC
Created attachment 341582 [details]
games-emulation/qmc2-0.35.ebuild

minor update for QT category move
Comment 32 Michał Ziąbkowski 2013-06-09 22:19:01 UTC
Created attachment 350588 [details]
games-emulation/qmc2-0.38.ebuild

Attaching updated ebuild from roslin. Ported to EAPI4 and updated HOMEPAGE.
Comment 33 Michał Ziąbkowski 2013-06-09 22:19:40 UTC
Created attachment 350590 [details, diff]
qmc2-0.2_beta20-makefile.patch
Comment 34 Rick Harris 2015-08-20 23:57:02 UTC
Created attachment 409708 [details]
qmc2-0.54.ebuild

Version bump for qmc2 to 0.54.

This version depends on >=sdlmame-0.64 (ref. bug #556642).
Comment 35 Techwolf 2015-09-02 12:27:33 UTC
I just tried the qmc2-0.54.ebuild and got a build failure.

g++ -c -pipe -O2 -w -D_REENTRANT -DQMC2_SDLMAME -DQMC2_VERSION=0.54 -DQMC2_SVN_REV=0 -DBUILD_OS_NAME=Linux -DBUILD_OS_RELEASE=4.1.3-zen -DBUILD_MACHINE=x86_64 -DPREFIX=/usr/games -DDATADIR=/usr/share/games -DSYSCONFDIR=/etc/games -DQMC2_JOYSTICK=1 -DQMC2_OPENGL=1 -DQMC2_PHONON=0 -DQMC2_FADER_SPEED=500 -DQMC2_BROWSER_EXTRAS_ENABLED -DQMC2_BROWSER_PLUGINS_ENABLED -DQMC2_BROWSER_JAVA_ENABLED -DQMC2_BROWSER_JAVASCRIPT_ENABLED -D_GNU_SOURCE=1 -D_REENTRANT -D_7ZIP_PPMD_SUPPORT -D_7ZIP_ST -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I/usr/include/qt4/QtTest -I/usr/include/SDL -Iminizip -Izlib -Ilzma -I. -I. -o youtubevideoplayer.o youtubevideoplayer.cpp
youtubevideoplayer.cpp:1959:6: error: ‘VideoEventFilter’ has not been declared
 bool VideoEventFilter::eventFilter(QObject *object, QEvent *event)
      ^
youtubevideoplayer.cpp:1959:36: error: ‘QObject’ was not declared in this scope
 bool VideoEventFilter::eventFilter(QObject *object, QEvent *event)
                                    ^
youtubevideoplayer.cpp:1959:45: error: ‘object’ was not declared in this scope
 bool VideoEventFilter::eventFilter(QObject *object, QEvent *event)
                                             ^
youtubevideoplayer.cpp:1959:53: error: ‘QEvent’ was not declared in this scope
 bool VideoEventFilter::eventFilter(QObject *object, QEvent *event)
                                                     ^
youtubevideoplayer.cpp:1959:61: error: ‘event’ was not declared in this scope
 bool VideoEventFilter::eventFilter(QObject *object, QEvent *event)
                                                             ^
youtubevideoplayer.cpp:1959:66: error: expression list treated as compound expression in initializer [-fpermissive]
 bool VideoEventFilter::eventFilter(QObject *object, QEvent *event)
                                                                  ^
youtubevideoplayer.cpp:1960:1: error: expected ‘,’ or ‘;’ before ‘{’ token
 {
 ^
Makefile.qmake:2674: recipe for target 'youtubevideoplayer.o' failed
make[1]: *** [youtubevideoplayer.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/var/tmp/portage/games-emulation/qmc2-0.54/work/qmc2'
Makefile:1064: recipe for target 'qmc2-bin' failed
make: *** [qmc2-bin] Error 2
Comment 36 Techwolf 2015-09-05 03:18:32 UTC
Created attachment 411016 [details, diff]
youtube fix when not phonon

Turns out to be a misplaced #endif.
Comment 37 Lampros Liontos 2018-02-03 03:24:48 UTC
Created attachment 517632 [details]
qmc2-0.192.ebuild

It's been a while since the ebuild has been updated, so I've supplied an ebuild for the latest version of the program (as of this attachment)
Comment 38 Lampros Liontos 2018-09-11 19:32:11 UTC
Created attachment 546670 [details]
qmc2-0.195.ebuild

This is for the latest version of qmc2 (0.195).

In addition to changing the version number, I've also added the dependency for qtmultimedia with the "widgets" USE flag enabled (without this, I was getting an error about the missing module "qtmultimediawidgets").