|
Joined: Jan 2009
Posts: 8 Likes: 1
Member
|
OP
Member
Joined: Jan 2009
Posts: 8 Likes: 1 |
It's been so long since I have built QMC2 from source, I can't even fully remember how to do it.
I installed Qt via brew install qt@5 , and the compiler starts, but fails pretty early on.
Configuring build of QMC2 0.243 qmake -makefile -o Makefile.qmake -spec macx-clang VERSION=0.243 QMC2_MINGW=0 SDL=2 TARGET=qmc2-sdlmame CONFIG+=warn_off CONFIG+=release 'DEFINES+=QMC2_SDLMAME QMC2_VERSION=0.243 BUILD_OS_NAME=Darwin BUILD_OS_RELEASE=21.4.0 BUILD_MACHINE=x86_64 PREFIX=/usr/local DATADIR="/Library/Application:Support" SYSCONFDIR="/Library/Application:Support" QMC2_JOYSTICK=1 QMC2_PHONON=0 QMC2_MULTIMEDIA=1 QMC2_FADER_SPEED=500 QMC2_GIT_REV=v0.242-92-gdeb3e4be5 QMC2_MAC_UNIVERSAL=0 QMC2_BROWSER_EXTRAS_ENABLED QMC2_BROWSER_PLUGINS_ENABLED QMC2_BROWSER_JAVA_ENABLED QMC2_BROWSER_JAVASCRIPT_ENABLED QMC2_YOUTUBE_ENABLED QMC2_BUNDLED_MINIZIP QMC2_BUNDLED_ZLIB' qmc2.pro Project WARNING: Qt has only been tested with version 11.0 of the platform SDK, you're using . Project WARNING: This is an unsupported configuration. You may experience build issues, and by using Project WARNING: the 12.3 SDK you are opting in to new features that Qt has not been prepared for. Project WARNING: Please downgrade the SDK you use to build your app to version 11.0, or configure Project WARNING: with CONFIG+=sdk_no_version_check when running qmake to silence this warning. Project ERROR: Unknown module(s) in QT: webkitwidgets make: *** [Makefile.qmake] Error 3
Last edited by BlueLander; 04/21/22 01:29 AM.
|
|
|
|
Joined: May 2008
Posts: 4,930 Likes: 24
Very Senior Member
|
Very Senior Member
Joined: May 2008
Posts: 4,930 Likes: 24 |
Yes, but that has been done with "macports"... see FAQ: https://wiki.batcom-it.net/index.php/QMC2_FAQ#macOSAlso, this was done with the latest version, that is "master" on github.com. A few minor "fixes" were required. The "make install" target seems to have a problem, but other than that (and the infamous issue #8) it's working. When there is a QtWebKit package for the "brew" version of Qt 5, I'm sure it will work as well. But the one who did the tests for me (estefan3112) wasn't able to find it. So he tried macports and it ran at once.
Last edited by qmc2; 04/21/22 06:17 AM.
A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
|
1 member likes this:
estefan3112 |
|
|
|
Joined: Jan 2009
Posts: 8 Likes: 1
Member
|
OP
Member
Joined: Jan 2009
Posts: 8 Likes: 1 |
Oh, thanks René. I don't see a QtWebKit package via brew either. Apparently from a little Googling, it used to be included in the Qt 5.5 release, but not any later releases. Not sure why I've resisted MacPorts up until this time. I'll give it a shot 
|
|
|
|
Joined: May 2008
Posts: 4,930 Likes: 24
Very Senior Member
|
Very Senior Member
Joined: May 2008
Posts: 4,930 Likes: 24 |
Issue #8 appears to be fixed  !
A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
|
1 member likes this:
BlueLander |
|
|
|
Joined: Jan 2021
Posts: 8 Likes: 2
Member
|
Member
Joined: Jan 2021
Posts: 8 Likes: 2 |
So QMC2 builds very nicely on X64 and M1 Macs with:
- SDL Framework (as for MAME) - MacPorts qt5 @5.15.3_0 (including dependencies) - MacPorts qt5-qtwebkit @5.9.2_2 (including dependencies)
Homebrew does no longer provide QT-Webkit, but MacPorts does.
You need to export the path to qmake, and the path is quite different to homebrew make -j8 does the job then do not forget to sudo make install the bundled app currently does not move into Applications, you need to do that manually
So far everything works as expected, and issue #8 s resolved, indeed :-).
Last edited by estefan3112; 04/22/22 10:10 PM.
|
1 member likes this:
BlueLander |
|
|
|
Joined: May 1999
Posts: 586 Likes: 1
Senior Member
|
Senior Member
Joined: May 1999
Posts: 586 Likes: 1 |
Thanks for the instructions. I was able to compile QMC2 for my Intel iMac and M1 Mac mini. It was rather painless and quick. I just had to look up the path to qmake (export PATH=/opt/local/libexec/qt5/bin/:$PATH).
It's nice to have once again an update-to-date QMC2 alongside MAME.
|
1 member likes this:
estefan3112 |
|
|
|
Joined: May 2008
Posts: 4,930 Likes: 24
Very Senior Member
|
Very Senior Member
Joined: May 2008
Posts: 4,930 Likes: 24 |
@estefan3112: I need the exact commands for this to install the required packages, see: https://wiki.batcom-it.net/index.php/QMC2_FAQ#macOSIt would be great if you could tell me!
A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
|
|
|
|
Joined: May 1999
Posts: 586 Likes: 1
Senior Member
|
Senior Member
Joined: May 1999
Posts: 586 Likes: 1 |
Yeah, that's how I did it, too, but I didn't get the arcade version of QMC2. Is there a compile switch to create that version?
|
|
|
|
Joined: Jan 2009
Posts: 8 Likes: 1
Member
|
OP
Member
Joined: Jan 2009
Posts: 8 Likes: 1 |
If valuable, the full commands I used for Qt are:
sudo port install qt5 sudo port install q5-qtwebkit
Setting the path I guess depends on what shell you're using. For zsh, I think this works from the terminal:
echo 'export PATH=/opt/local/libexec/qt5/bin/:$PATH' >> ~/.zshrc
Or you can just add this line manually to .zshrc:
export PATH=/opt/local/libexec/qt5/bin/:$PATH
|
1 member likes this:
estefan3112 |
|
|
3 members (Golden Child, Pernod, 1 invisible),
21
guests, and
7
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
Forums9
Topics9,158
Posts119,925
Members5,034
|
Most Online1,283 Dec 21st, 2022
|
|
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!
|
|
|
|