Home Page
Posted By: qmc2 Building QMC2 on Windows - 04/06/22 06:16 PM
A few days after we released a version for Linux only I can say that QMC2 builds on Windows again!! In the end it's an easy task wink... I only tried the official MAME tools and an additional webview package:

Code
pacman -S mingw-w64-x86_64-qt5-webview 5.15.3-1

After that, I could run

Code
make -j6 QMAKE=qmake

to build release/qmc2-mame.exe. So there's hope for Windows builds for the next version!
Posted By: qmc2 Re: Building QMC2 on Windows - 04/07/22 08:52 AM
Ok, now it even builds

Code
make -j6 qmc2 arcade qchdman
Posted By: qmc2 Re: Building QMC2 on Windows - 04/08/22 10:18 AM
I figured that it's also possible to run

Code
make -j6 LIBARCHIVE=1 qmc2 arcade qchdman

in this environment. Cool (although I currently have an issue with that library)!
Posted By: qmc2 Re: Building QMC2 on Windows - 04/08/22 11:52 AM
Originally Posted by qmc2
although I currently have an issue with that library

The issue was caused by my files being written with QMC2 4 years ago with the old internal zip... rewriting them with the newer code (which is in 'master') gives the expected results (although, libarchive is picky wink ).
Posted By: qmc2 Re: Building QMC2 on Windows - 04/09/22 03:01 PM
A test version is ready and available at https://qmc2.batcom-it.net/download/win32/qmc2-win32-x64-0.243-test.exe. Let me know if it works for you... that is, qmc2-mame and qchdman, qmc2-arcade doesn't work which is a general issue.
Posted By: B2K24 Re: Building QMC2 on Windows - 04/09/22 03:08 PM
Originally Posted by qmc2
A test version is ready and available at https://qmc2.batcom-it.net/download/win32/qmc2-win32-x64-0.243-test.exe. Let me know if it works for you... that is, qmc2-mame and qchdman, qmc2-arcade doesn't work which is a general issue.

Thanks for providing this. I'll be able to test in a couple days smile
Posted By: qmc2 Re: Building QMC2 on Windows - 04/12/22 05:42 AM
Before you report it... there is something wrong with the MAME configuration dialogs. See https://github.com/qmc2/qmc2-mame-fe/issues/8
Posted By: B2K24 Re: Building QMC2 on Windows - 04/12/22 08:35 AM
I really appreciate your work. It's the only reason for me to use MAME at my PC otherwise, I just use the internal UI on my CRTs.
I love how easy it is to manipulate the size of window panes and can choose exactly what font to use and how big it's presented to me. The control over presentation is amazing with QMC2 with so many ways to customize different fields.

Everything seems to be working right now with the exception of the Shideravan system and software templates. I'm still exploring and trying to figure that out.

[EDIT] The end result is pretty good on Windows 10. Most everything is working in how I remember it except for some minor details with the templates.
Software lists are working which are amazing. Thank you so much, QMC2 smile

https://imgur.com/NfzJkiI
Posted By: Geoman Re: Building QMC2 on Windows - 04/19/22 06:30 PM
With test version 243 (Win 10) the icons do not show up. I use icons.zip file, i cleared and rebuilt the cache, no joy. Worked ok with previous version.

From the log:

21:31:25.438: done (pre-caching icons from ZIP archive, elapsed time = 00:06.564)
21:31:25.439: 0 icons loaded
Posted By: qmc2 Re: Building QMC2 on Windows - 04/20/22 06:18 AM
Yeah, the buffer size was 1 byte too long with the newer minizip-ng - so much for "compatibility" wink... this has been fixed already, but I'm not pushing a new version since the major part (issue #8) hasn't been fixed.
Posted By: qmc2 Re: Building QMC2 on Windows - 04/22/22 07:52 AM
Issue #8 appears to be fixed wink!
Posted By: qmc2 Re: Building QMC2 on Windows - 04/22/22 10:45 AM
Here's a new test version:
https://qmc2.batcom-it.net/download/win32/qmc2-win32-x64-0.243-test2.exe
Posted By: qmc2 Re: Building QMC2 on Windows - 04/22/22 11:04 AM
Originally Posted by Geoman
With test version 243 (Win 10) the icons do not show up. I use icons.zip file, i cleared and rebuilt the cache, no joy. Worked ok with previous version.
You're right. This still doesn't work - on Windows, it works on Linux. But loading the icons from a directory does also not work... the next bug wink.
Posted By: qmc2 Re: Building QMC2 on Windows - 04/22/22 01:56 PM
A fix for this is in 'master'. I'll do new Windows test binaries tomorrow.
Posted By: qmc2 Re: Building QMC2 on Windows - 04/23/22 06:59 AM
The real mistake was that the package missed several DLLs that are not absolutely required, but when they are missing certain functions will fail... like loading the icon images. It were the imageformat plugins that were missing wink. Fixed now!

https://qmc2.batcom-it.net/download/win32/qmc2-win32-x64-0.243-test3.exe
Posted By: Geoman Re: Building QMC2 on Windows - 04/23/22 11:02 AM
Icons now load ok! Thanks!

Something else i noticed - if you use a custom color palette instead of the default, the colors you selected are not saved when pressing OK and it reverts to default colors.
Posted By: qmc2 Re: Building QMC2 on Windows - 04/23/22 11:04 AM
I have to check this... thanks for the info!

Err, you mean the colors within the "color dialog"? That is a standard dialog and had "slots" for the colors. I've not seen the dialog since ages wink.
Posted By: qmc2 Re: Building QMC2 on Windows - 04/23/22 11:08 AM
Oh, I see what you mean...
Posted By: qmc2 Re: Building QMC2 on Windows - 04/23/22 11:36 AM
'Master' has a fix for this...
Posted By: qmc2 Re: Building QMC2 on Windows - 04/23/22 11:57 AM
... and a new binary is here: https://qmc2.batcom-it.net/download/win32/qmc2-win32-x64-0.243-test4.exe
Posted By: remax Re: Building QMC2 on Windows - 04/26/22 02:50 PM
Thanks...

wow ! i still had the old qmc2.ini laying in the user folder...
Posted By: oddi Re: Building QMC2 on Windows - 05/02/22 12:43 PM
Hello Rene, welcome back to the club, i'm very happy see u again. smile.

Now problem, i try compile the last qmc2 with your tutorial but not luck.
Test with mame tools ( updated to the last with pacman) plus webview 5.15, used win32env.bat.
show error
Code
make.exe: Entering directory 'C:/msys64/src/qmc2-mame-fe'
The system cannot find the path specified.
"Configuring build of QMC2 0.244"
qmake -makefile -o Makefile.qmake -spec win32-g++ VERSION=0.244 QMC2_MINGW=1 SDL=2 TARGET=qmc2-mame CONFIG+=warn_off CONFIG+=release QMC2_LIBS+=-LC:/msys64/mingw64/lib/ QMC2_INCLUDEPATH+=C:/msys64/mingw64/lib/../include QMC2_INCLUDEPATH+=C:/msys64/mingw64/lib/../include/SDL2            'DEFINES+=QMC2_MAME QMC2_VERSION=0.244 BUILD_OS_NAME=Windows BUILD_OS_RELEASE=10.0.22000 BUILD_MACHINE=x86_64-w64-mingw32 PREFIX=. DATADIR="data" SYSCONFDIR="" QMC2_JOYSTICK=1 QMC2_PHONON=0 QMC2_MULTIMEDIA=1 QMC2_FADER_SPEED=2000 QMC2_BROWSER_EXTRAS_ENABLED QMC2_BROWSER_PLUGINS_ENABLED QMC2_BROWSER_JAVA_ENABLED QMC2_BROWSER_JAVASCRIPT_ENABLED QMC2_YOUTUBE_ENABLED QMC2_NOEFFECTDIALOGS QMC2_LIBARCHIVE_ENABLED QMC2_BUNDLED_MINIZIP QMC2_BUNDLED_ZLIB' qmc2.pro
Project ERROR: Unknown module(s) in QT: xmlpatterns svg webkitwidgets winextras multimedia multimediawidgets
makefile:1074: recipe for target 'Makefile.qmake' failed
make.exe: *** [Makefile.qmake] Error 3
make.exe: Leaving directory 'C:/msys64/src/qmc2-mame-fe'
Posted By: qmc2 Re: Building QMC2 on Windows - 05/02/22 01:57 PM
Hi wink!

These are the Qt 5 packages I have installed:

Code
$ pacman -Ss qt5 | grep 5.15 | grep "installed"
mingw64/mingw-w64-x86_64-qt5 5.15.2-15 [installed]
mingw64/mingw-w64-x86_64-qt5-3d 5.15.3+kde+r18-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-activeqt 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-base 5.15.3+kde+r174-2 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-charts 5.15.3+kde+r174-2 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-connectivity 5.15.3+kde+r6-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-datavis3d 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-declarative 5.15.3+kde+r174-2 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-gamepad 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-graphicaleffects 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-imageformats 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-location 5.15.3+kde+r174-2 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-lottie 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-multimedia 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-networkauth 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-purchasing 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-quick3d 5.15.3+kde+r174-2 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-quickcontrols 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-quickcontrols2 5.15.3+kde+r4-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-quicktimeline 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-remoteobjects 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-script 5.15.3+kde+r174-2 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-scxml 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-sensors 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-serialbus 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-serialport 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-speech 5.15.3+kde+r1-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-svg 5.15.3+kde+r12-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-tools 5.15.3+kde+r1-3 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-translations 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-virtualkeyboard 5.15.3+kde+r3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-webchannel 5.15.3+kde+r3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-webglplugin 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-websockets 5.15.3+kde+r3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-webview 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-winextras 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
mingw64/mingw-w64-x86_64-qt5-xmlpatterns 5.15.3-1 (mingw-w64-x86_64-qt5) [installed]
Posted By: oddi Re: Building QMC2 on Windows - 05/02/22 03:28 PM
Now install this base pack: mingw-w64-x86_64-qt5

similar error

Code
make.exe: Entering directory 'C:/msys64/src/qmc2-mame-fe'
The system cannot find the path specified.
"Configuring build of QMC2 0.244"
qmake -makefile -o Makefile.qmake -spec win32-g++ VERSION=0.244 QMC2_MINGW=1 SDL=2 TARGET=qmc2-mame CONFIG+=warn_off CONFIG+=release QMC2_LIBS+=-LC:/msys64/mingw64/lib/ QMC2_INCLUDEPATH+=C:/msys64/mingw64/lib/../include QMC2_INCLUDEPATH+=C:/msys64/mingw64/lib/../include/SDL2            'DEFINES+=QMC2_MAME QMC2_VERSION=0.244 BUILD_OS_NAME=Windows BUILD_OS_RELEASE=10.0.22000 BUILD_MACHINE=x86_64-w64-mingw32 PREFIX=. DATADIR="data" SYSCONFDIR="" QMC2_JOYSTICK=1 QMC2_PHONON=0 QMC2_MULTIMEDIA=1 QMC2_FADER_SPEED=2000 QMC2_BROWSER_EXTRAS_ENABLED QMC2_BROWSER_PLUGINS_ENABLED QMC2_BROWSER_JAVA_ENABLED QMC2_BROWSER_JAVASCRIPT_ENABLED QMC2_YOUTUBE_ENABLED QMC2_NOEFFECTDIALOGS QMC2_LIBARCHIVE_ENABLED QMC2_BUNDLED_MINIZIP QMC2_BUNDLED_ZLIB' qmc2.pro
Project ERROR: Unknown module(s) in QT: webkitwidgets
makefile:1074: recipe for target 'Makefile.qmake' failed
make.exe: *** [Makefile.qmake] Error 3
make.exe: Leaving directory 'C:/msys64/src/qmc2-mame-fe'

about unknown webkitwidgets
Code
[MINGW64] C:\msys64\src>pacman -Ss qtwebkit
mingw32/mingw-w64-i686-kdewebkit-qt5 5.85.0-1 (kf5)
    KDE Integration for QtWebKit (mingw-w64-qt5)
mingw32/mingw-w64-i686-qtwebkit 5.212.0alpha4-12
    Webkit module for Qt5 (mingw-w64)
mingw32/mingw-w64-i686-wkhtmltopdf-git 0.13.r1049.51f9658-2
    Convert HTML to PDF using QtWebkit (mingw-w64)
mingw64/mingw-w64-x86_64-kdewebkit-qt5 5.85.0-1 (kf5)
    KDE Integration for QtWebKit (mingw-w64-qt5)
mingw64/mingw-w64-x86_64-qtwebkit 5.212.0alpha4-12
    Webkit module for Qt5 (mingw-w64)
mingw64/mingw-w64-x86_64-wkhtmltopdf-git 0.13.r1049.51f9658-2
    Convert HTML to PDF using QtWebkit (mingw-w64)
ucrt64/mingw-w64-ucrt-x86_64-kdewebkit-qt5 5.85.0-1 (kf5)
    KDE Integration for QtWebKit (mingw-w64-qt5)
ucrt64/mingw-w64-ucrt-x86_64-qtwebkit 5.212.0alpha4-12
    Webkit module for Qt5 (mingw-w64)
ucrt64/mingw-w64-ucrt-x86_64-wkhtmltopdf-git 0.13.r1049.51f9658-2
    Convert HTML to PDF using QtWebkit (mingw-w64)
clang64/mingw-w64-clang-x86_64-kdewebkit-qt5 5.85.0-1 (kf5)
    KDE Integration for QtWebKit (mingw-w64-qt5)
clang64/mingw-w64-clang-x86_64-qtwebkit 5.212.0alpha4-12
    Webkit module for Qt5 (mingw-w64)
Posted By: qmc2 Re: Building QMC2 on Windows - 05/02/22 04:24 PM
I dunno what you did, but the"qt5-webview" package I've chosen came with webkit / webkitwidgets. Well, try installing the "mingw-w64-x86_64-qtwebkit" package.
Posted By: oddi Re: Building QMC2 on Windows - 05/02/22 05:41 PM
No luck, again a lot of errors. Thank you, atm qmc2 compiling it's mystery for me. smile

Ok, now compile with buildtools, but with win32env.bat - no luck.
Whats it's differents between buildtoos.bat and win32env.bat
i compare environments from both files - it's same.
Someone may explain me. Thank you.
Posted By: Wellington Re: Building QMC2 on Windows - 05/28/22 12:31 PM
Originally Posted by oddi
Project ERROR: Unknown module(s) in QT: webkitwidgets

Install:
Code
pacman -S mingw-w64-x86_64-qtwebkit

And try again.
Posted By: oddi Re: Building QMC2 on Windows - 05/31/22 06:35 PM
Problem it's me, because i used my batch file with environments. Used win32env.bat
Mame compile with my batch without problems , but with QMC2 .....no luck:)

If used Rene's tutorial - QMC2 wiki , all it's fine.
I wanna compile qmc2 with my environment ..but have this erros.:
Code
make.exe: Entering directory 'C:/msys64/src/qmc2-mame-fe'
[b]The system cannot find the path specified.[/b]
"Updating build of QMC2 0.244"
make[1]: Entering directory 'C:/msys64/src/qmc2-mame-fe'
make -f Makefile.qmake.Release
make[2]: Entering directory 'C:/msys64/src/qmc2-mame-fe'
/C/msys64/mingw64/bin/uic.exe ui/qmc2main.ui -o build/ui_qmc2main.h
process_begin: CreateProcess(NULL, sh.yyy -c "/C/msys64/mingw64/bin/uic.exe ui/qmc2main.ui -o build/ui_qmc2main.h", ...) failed.
make (e=2): The system cannot find the file specified.
Makefile.qmake.Release:20887: recipe for target 'build/ui_qmc2main.h' failed
make[2]: *** [build/ui_qmc2main.h] Error 2
make[2]: Leaving directory 'C:/msys64/src/qmc2-mame-fe'
Makefile.qmake:45: recipe for target 'release' failed
make[1]: *** [release] Error 2
make[1]: Leaving directory 'C:/msys64/src/qmc2-mame-fe'
makefile:1053: recipe for target 'qmc2-bin' failed
make.exe: *** [qmc2-bin] Error 2
make.exe: Leaving directory 'C:/msys64/src/qmc2-mame-fe'

i can not found where qmc2 angry - The system cannot find the path specified.

btw - this pack pacman -S mingw-w64-x86_64-qtwebkit is installed smile
That is my saga smile
Posted By: qmc2 Re: Building QMC2 on Windows - 06/01/22 08:23 AM
@oddi: Have you installed "uic.exe" (the "Qt Tools")? It somehow cannot find it. It should be in "C:\msys64\mingw64\bin\uic.exe" according to your log.

Anyway, Qt WebKit is now (when you compile from source) no longer supported! It's Qt WebEngine instead, so we finally got rid of this old (but good) beast... it works, but there's still a lot to do, so I won't release a new version this time.
Posted By: oddi Re: Building QMC2 on Windows - 06/08/22 06:57 AM
Hello Rene, please your help for compile QMC2 under win10/11.
This is mystery for me smile

I used qmc2 wiki and step by step tutorial compile with "buildtools.bat" environment , btw - test too and with "win32env.bat" ......
same errors"
Tested witth the last mamedev tools ( with or without updates ) plus QT5 packages - no luck again.


Code
$ make -j3 LIBARCHIVE=1
Configuring build of QMC2 0.244
qmake -makefile -o Makefile.qmake -spec win32-g++ VERSION=0.244 QMC2_MINGW=1 SDL=2 TARGET=qmc2-mame CONFIG+=warn_off CONFIG+=release QMC2_LIBS+=-LC:/msys64/mingw64/lib/ QMC2_INCLUDEPATH+=C:/msys64/mingw64/lib/../include QMC2_INCLUDEPATH+=C:/msys64/mingw64/lib/../include/SDL2            'DEFINES+=QMC2_MAME QMC2_VERSION=0.244 BUILD_OS_NAME=Windows BUILD_OS_RELEASE=10.0.22000 BUILD_MACHINE=x86_64-w64-mingw32 PREFIX=. DATADIR="data" SYSCONFDIR="" QMC2_JOYSTICK=1 QMC2_PHONON=0 QMC2_MULTIMEDIA=1 QMC2_FADER_SPEED=2000 QMC2_GIT_REV=v0.243-10-gc5d915bc9 QMC2_BROWSER_EXTRAS_ENABLED QMC2_BROWSER_PLUGINS_ENABLED QMC2_BROWSER_JAVA_ENABLED QMC2_BROWSER_JAVASCRIPT_ENABLED QMC2_YOUTUBE_ENABLED QMC2_NOEFFECTDIALOGS QMC2_LIBARCHIVE_ENABLED QMC2_BUNDLED_MINIZIP QMC2_BUNDLED_ZLIB' qmc2.pro
Project ERROR: Unknown module(s) in QT: webenginewidgets
make: *** [Makefile:1076: Makefile.qmake] Error 3

If understand right under Linux not have problem with compile, under Windows - no.luck.

Many tnx and wait for your for advices.
Posted By: qmc2 Re: Building QMC2 on Windows - 06/10/22 01:54 PM
Well, right now I'm also not able to compile on Windows myself, because there does not seem to be a "webenginewidgets" package - that's really cool wink... I installed the official Qt packages already, will try to use them.
© Forums