[SOLVED] Latest mkvtoolnix and qt6 - build failure
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
checking for qmake6... no
checking for qmake-qt6... qmake-qt6
checking for qmake6's version... 6.6.1
checking for lconvert... /usr/lib64/qt6/bin/lconvert
checking for moc... /usr/lib64/qt6/libexec/moc
checking for rcc... /usr/lib64/qt6/libexec/rcc
checking for uic... /usr/lib64/qt6/libexec/uic
checking for Qt 6... no: could not compile a test program
configure: error: The Qt library version >= is required for building MKVToolNix.
Same issue here except qmake6 is found at the first time, I still don't found how to fix that.
Code:
checking for qmake6... qmake6
checking for qmake6's version... 6.6.1
checking for lconvert... /usr/lib64/qt6/bin/lconvert
checking for moc... /usr/lib64/qt6/libexec/moc
checking for rcc... /usr/lib64/qt6/libexec/rcc
checking for uic... /usr/lib64/qt6/libexec/uic
checking for Qt 6... no: could not compile a test program
configure: error: The Qt library version >= is required for building MKVToolNix.
Last edited by Thom1b; 01-03-2024 at 04:51 AM.
Reason: Not exactly the same error
what actually happens is that gcc errors because of an unrecognized option (-ccc-gcc-name, you can see it in the config.log file) probably because qt6 has been built using clang: just force using clang too for mkvtoolnix adding these two lines before the configure block
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,081
Original Poster
Rep:
Thanks, ponce, a step forward - now building fails with
Code:
./configure: line 6425: clang++s: command not found
checking compiler type and version... gcc
checking for lld... /usr/bin/lld
checking for support for the "-std=c++17" flag... no
checking for support for C++17 feature "attribute 'maybe_unused'"... no
checking for support for C++17 feature "nested namespace definition"... no
checking for support for C++17 feature "structured bindings"... no
checking for support for C++17 feature "std::optional"... no
checking for support for C++17 feature "std::gcd"... no
checking for support for C++17 feature "constexpr if"... no
checking for libraries to link against for the file system library...
The following features of the C++17 standards are not supported by clang++s:
* attribute 'maybe_unused' (C++17)
* nested namespace definition (C++17)
* structured bindings (C++17)
* std::optional (C++17)
* std::gcd (C++17)
* constexpr if (C++17)
If you are using the GNU C compiler collection (gcc), you need
at least v8; for clang v7 and newer should work.
configure: error: support for required C++17 features incomplete
what actually happens is that gcc errors because of an unrecognized option (-ccc-gcc-name, you can see it in the config.log file) probably because qt6 has been built using clang: just force using clang too for mkvtoolnix adding these two lines before the configure block
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,081
Original Poster
Rep:
Quote:
Originally Posted by ponce
maybe there's a misunderstanding:
Thanks again, ponce. Not so much a misunderstanding, more of a stupid mistake. I put the two lines not before the block but before the ./configure line.
After putting the lines in their proper place, mkvtoolnix compiles fine using clang.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.