Created attachment 235848 [details] workaround, i.e. diff for files/patch-CMakeLists.txt Hello, This port looks broken. It stops with error on building. I have both of qmake and qmake-qt5 installed. The port looks trying to use qmake, not qmake-qt5. I like to share an example of console output bellow. As workaround, the attached modification works for me anyway though I'm not sure if is correct or not. Cheers Mamoru Iwaki Japan ---< an example of console output >--- root@dhcp72:/usr/ports/audio/musescore # make ===> License GPLv2 accepted by the user ===> musescore-3.6.1_3 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by musescore-3.6.1_3 for building ===> Extracting for musescore-3.6.1_3 => SHA256 Checksum OK for musescore-MuseScore-v3.6.1_GH0.tar.gz. ===> Patching for musescore-3.6.1_3 ===> Applying FreeBSD patches for musescore-3.6.1_3 from /usr/ports/audio/musescore/files ===> musescore-3.6.1_3 depends on file: /usr/local/bin/cmake - found ===> musescore-3.6.1_3 depends on executable: ninja - found ===> musescore-3.6.1_3 depends on executable: update-desktop-database - found ===> musescore-3.6.1_3 depends on package: pkgconf>=1.3.0_1 - found ===> musescore-3.6.1_3 depends on executable: update-mime-database - found ===> musescore-3.6.1_3 depends on package: qt5-buildtools>=5.15 - found ===> musescore-3.6.1_3 depends on file: /usr/local/lib/qt5/bin/designer - found ===> musescore-3.6.1_3 depends on file: /usr/local/lib/qt5/qml/QtGraphicalEffects/qmldir - found ===> musescore-3.6.1_3 depends on file: /usr/local/lib/qt5/bin/lrelease - found ===> musescore-3.6.1_3 depends on package: qt5-qmake>=5.15 - found ===> musescore-3.6.1_3 depends on file: /usr/local/lib/qt5/libQt5UiTools.a - found ===> musescore-3.6.1_3 depends on shared library: libmp3lame.so - found (/usr/local/lib/libmp3lame.so) ===> musescore-3.6.1_3 depends on shared library: libsndfile.so - found (/usr/local/lib/libsndfile.so) ===> musescore-3.6.1_3 depends on shared library: libvorbis.so - found (/usr/local/lib/libvorbis.so) ===> musescore-3.6.1_3 depends on shared library: libogg.so - found (/usr/local/lib/libogg.so) ===> musescore-3.6.1_3 depends on shared library: libfreetype.so - found (/usr/local/lib/libfreetype.so) ===> musescore-3.6.1_3 depends on shared library: libportaudio.so - found (/usr/local/lib/libportaudio.so) ===> musescore-3.6.1_3 depends on shared library: libQt5Concurrent.so - found (/usr/local/lib/qt5/libQt5Concurrent.so) ===> musescore-3.6.1_3 depends on shared library: libQt5Core.so - found (/usr/local/lib/qt5/libQt5Core.so) ===> musescore-3.6.1_3 depends on shared library: libQt5Qml.so - found (/usr/local/lib/qt5/libQt5Qml.so) ===> musescore-3.6.1_3 depends on shared library: libQt5Gui.so - found (/usr/local/lib/qt5/libQt5Gui.so) ===> musescore-3.6.1_3 depends on shared library: libQt5Help.so - found (/usr/local/lib/qt5/libQt5Help.so) ===> musescore-3.6.1_3 depends on shared library: libQt5Location.so - found (/usr/local/lib/qt5/libQt5Location.so) ===> musescore-3.6.1_3 depends on shared library: libQt5Network.so - found (/usr/local/lib/qt5/libQt5Network.so) ===> musescore-3.6.1_3 depends on shared library: libQt5OpenGL.so - found (/usr/local/lib/qt5/libQt5OpenGL.so) ===> musescore-3.6.1_3 depends on shared library: libQt5PrintSupport.so - found (/usr/local/lib/qt5/libQt5PrintSupport.so) ===> musescore-3.6.1_3 depends on shared library: libQt5QuickControls2.so - found (/usr/local/lib/qt5/libQt5QuickControls2.so) ===> musescore-3.6.1_3 depends on shared library: libQt5ScriptTools.so - found (/usr/local/lib/qt5/libQt5ScriptTools.so) ===> musescore-3.6.1_3 depends on shared library: libQt5Sql.so - found (/usr/local/lib/qt5/libQt5Sql.so) ===> musescore-3.6.1_3 depends on shared library: libQt5Svg.so - found (/usr/local/lib/qt5/libQt5Svg.so) ===> musescore-3.6.1_3 depends on shared library: libQt5Test.so - found (/usr/local/lib/qt5/libQt5Test.so) ===> musescore-3.6.1_3 depends on shared library: libQt5WebChannel.so - found (/usr/local/lib/qt5/libQt5WebChannel.so) ===> musescore-3.6.1_3 depends on shared library: libQt5WebEngine.so - found (/usr/local/lib/qt5/libQt5WebEngine.so) ===> musescore-3.6.1_3 depends on shared library: libQt5Widgets.so - found (/usr/local/lib/qt5/libQt5Widgets.so) ===> musescore-3.6.1_3 depends on shared library: libQt5Xml.so - found (/usr/local/lib/qt5/libQt5Xml.so) ===> musescore-3.6.1_3 depends on shared library: libQt5XmlPatterns.so - found (/usr/local/lib/qt5/libQt5XmlPatterns.so) ===> Configuring for musescore-3.6.1_3 ===> Performing out-of-source build /bin/mkdir -p /usr/ports/audio/musescore/work/.build -- The C compiler identification is Clang 14.0.5 -- The CXX compiler identification is Clang 14.0.5 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done Qmake version: 1.07a (Qt 3.3.8) Qmake is free software from Trolltech ASA. CMake Error at build/functions.cmake:73 (message): Error running Qt with command: /usr/local/bin/qmake --version Console output directly above may provide more information about the error. Do you have the correct version of Qt installed? Is it available in your PATH environment variable? See https://musescore.org/en/handbook/developers-handbook/compilation Call Stack (most recent call first): CMakeLists.txt:28 (fn__require_program) -- Configuring incomplete, errors occurred! See also "/usr/ports/audio/musescore/work/.build/CMakeFiles/CMakeOutput.log". *** Error code 1 Stop. make[1]: stopped in /usr/ports/audio/musescore *** Error code 1 Stop. make: stopped in /usr/ports/audio/musescore root@dhcp72:/usr/ports/audio/musescore # pkg info | grep qmake qmake-3.3.8_2 The build utility of the Qt 3 project qt5-qmake-5.15.5p165 Qt Makefile generator (KDE patched) root@dhcp72:/usr/ports/audio/musescore #
Forgot to describe ... I'm on Stable13. root@dhcp72:/usr/ports/audio/musescore # uname -a FreeBSD dhcp72.tmnetwork.local 13.1-STABLE FreeBSD 13.1-STABLE #0 stable/13-n252093-461cad31f3f-dirty: Thu Aug 11 12:24:12 JST 2022 root@dhcp72.tmnetwork.local:/usr/obj/nanobsd.full/usr/src/amd64.amd64/sys/MYGEN amd64
Why anyone would have devel/qmake (the Qt3 qmake; nothing uses it, and the only possible consumer, the Trinity desktop, now uses CMake anyway) is a bit of a mystery to me. You're right, though, that Musescore then finds the wrong qmake.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=f701da3ef02213e358f37fece79075c2837e0f23 commit f701da3ef02213e358f37fece79075c2837e0f23 Author: Mamoru Iwaki <> AuthorDate: 2022-08-16 20:10:59 +0000 Commit: Adriaan de Groot <adridg@FreeBSD.org> CommitDate: 2022-08-16 20:10:59 +0000 audio/musescore: ignore qmake (the Qt3 one) If devel/qmake (the Qt3 version) is installed, it is un-suffixed and is found as "qmake", rather than the current "qmake-qt5" which is what Musescore needs. Patch out the name "qmake" entirely. Submitted by Mamoru Iwaki in the linked PR. I don't know if we have a policy on adding people's email addresses out of the PR database, so I left it out in this commit. PR: 265775 audio/musescore/files/patch-CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)