LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-03-2024, 03:43 AM   #1
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,081

Rep: Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751
Latest mkvtoolnix and qt6 - build failure


Trying to compile latest mkvtoolnix-82 which requires qt6.2.0 or higher. So I installed qt6.6.1 and the dependencies from
https://ponce.cc/slackware/qt6_and_deps/current/x86_64/
However, configure process ends with
Code:
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.
So I must have missed something, but what?
 
Old 01-03-2024, 03:55 AM   #2
Thom1b
Member
 
Registered: Mar 2010
Location: France
Distribution: Slackware
Posts: 486

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
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
 
Old 01-03-2024, 06:13 AM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,117

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
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
Code:
export CC=clang
export CXX=clang++

Last edited by ponce; 01-03-2024 at 07:17 AM.
 
1 members found this post helpful.
Old 01-03-2024, 08:58 AM   #4
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,081

Original Poster
Rep: Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751
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
 
Old 01-03-2024, 09:03 AM   #5
giomat
Member
 
Registered: Jul 2017
Posts: 339

Rep: Reputation: 239Reputation: 239Reputation: 239
Check your slackbuild edit, seems there is a typo in how you spelled clang++
 
Old 01-03-2024, 09:19 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,117

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
maybe there's a misunderstanding: I meant that this block
Code:
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --build=$ARCH-slackware-linux \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --mandir=/usr/man \
  --localstatedir=/var \
  --enable-gui="$GUI" \
  --disable-static \
  --disable-update-check \
  --docdir=/usr/$PRGNAM-$VERSION \
  --htmldir=/usr/$PRGNAM-$VERSION \
  --with-boost
must become this (with the two lines added before the original one)
Code:
export CC=clang
export CXX=clang++

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --build=$ARCH-slackware-linux \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --mandir=/usr/man \
  --localstatedir=/var \
  --enable-gui="$GUI" \
  --disable-static \
  --disable-update-check \
  --docdir=/usr/$PRGNAM-$VERSION \
  --htmldir=/usr/$PRGNAM-$VERSION \
  --with-boost
 
Old 01-03-2024, 09:21 AM   #7
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,081

Original Poster
Rep: Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751
Quote:
Originally Posted by giomat View Post
Check your slackbuild edit, seems there is a typo in how you spelled clang++
Copy/pasted ponce's post, so hardly a typo.

Replaced ponce's Qt6 package with AlienBOB's from https://slackware.nl/alien-kde/current/6/x86_64/deps/

Compiling right now, takes a while but so far no issues.

EDIT: built successfully, seems to run OK (haven't tried all functions, of course).

I'll mark this as solved.

Last edited by kgha; 01-03-2024 at 09:28 AM.
 
Old 01-03-2024, 09:36 AM   #8
Thom1b
Member
 
Registered: Mar 2010
Location: France
Distribution: Slackware
Posts: 486

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
Thanks ponce, it works fine!

Quote:
Originally Posted by ponce View Post
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
Code:
export CC=clang
export CXX=clang++
 
Old 01-03-2024, 09:54 AM   #9
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,081

Original Poster
Rep: Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751
Quote:
Originally Posted by ponce View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeCAD headaches- Broken PySide2 and Qt needs to be upgraded to Qt6. arfon Slackware 11 08-12-2023 11:57 AM
[SOLVED] qt6 and pkgconfig files Keith Hedger Linux From Scratch 7 06-02-2023 06:09 AM
LXer: Hands-On with Fedora Media Writer 5.0: New Qt6 UI, Fedora Kinoite Support, and More LXer Syndicated Linux News 0 05-12-2022 04:15 PM
LXer: PDF Mix Tool 1.0 Released With Overhauled Interface, PDF Metadata Editing And Qt6 Support LXer Syndicated Linux News 0 06-15-2021 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration