LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-29-2023, 10:09 AM   #1
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Question qt6 and pkgconfig files


Has any one built qt6 on lfs yet, and did you manage to generate the .pc pkgconfig files, if so how, I can build qt6 fine just cant get the pc files.

using this script to build
https://github.com/KeithDHedger/LFSP...6/qt6.LFSBuild
 
Old 05-30-2023, 02:53 AM   #2
arch-linq
Member
 
Registered: Sep 2018
Location: Midwest, USA
Distribution: Arch,LFS,BLFS
Posts: 110

Rep: Reputation: Disabled
I have qt 6.5.0 working fine. That script has too many exports and other unncecessary stuff imo.

Trim it down to a combo of arch and blfs. Here's mine:

Code:
 mkdir ~/qt-build
cd ~/qt-build

 cmake -DCMAKE_INSTALL_PREFIX=/usr \
    -DINSTALL_BINDIR=lib/qt6/bin \
    -DINSTALL_PUBLICBINDIR=usr/bin \
    -DINSTALL_LIBEXECDIR=lib/qt6 \
    -DINSTALL_DOCDIR=share/doc/qt6 \
    -DINSTALL_ARCHDATADIR=lib/qt6 \
    -DINSTALL_DATADIR=share/qt6 \
    -DINSTALL_INCLUDEDIR=include/qt6 \
    -DINSTALL_MKSPECSDIR=lib/qt6/mkspecs \
    -DINSTALL_EXAMPLESDIR=share/doc/qt6/examples \
    -DFEATURE_journald=ON \
    -DFEATURE_openssl_linked=ON \
    -DFEATURE_system_sqlite=ON \
    -DFEATURE_system_xcb_xinput=ON \
    -DFEATURE_no_direct_extern_access=ON \
    -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
    -DCMAKE_MESSAGE_LOG_LEVEL=STATUS  \
    -G Ninja ..

Last edited by arch-linq; 05-30-2023 at 03:06 AM.
 
Old 05-30-2023, 04:17 AM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
but does it install the pkg config files?
 
Old 05-31-2023, 02:29 AM   #4
arch-linq
Member
 
Registered: Sep 2018
Location: Midwest, USA
Distribution: Arch,LFS,BLFS
Posts: 110

Rep: Reputation: Disabled
Lots of them in /usr/lib/pkgconfig.
 
Old 05-31-2023, 06:36 AM   #5
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
well tried manually building the only dif is setting jounld to off but that is onky for logging also setting webengine to off and wayland to off which should not affect pkgconfig files but still no pc files.
are u actually building on LFS > or on arch the arch pkg list says pc files are installed, tried setting the install to /usr makes no difference.
i'm stumped
 
Old 05-31-2023, 12:57 PM   #6
bryan_S
Member
 
Registered: Aug 2014
Location: N. Florida
Distribution: LinuxfromScratch, OpenSuse, Slackware
Posts: 107

Rep: Reputation: Disabled
I've built qt 6.5.0 (need to upgrade to 6.5.1) on a current LFS system and can verify the pkgconfig files are installed. I'm using (mostly) the same build options as arch-linq, but I'm doing a modular build, not a monolithic build like you are doing. At least with qt6-base (haven't checked the other modules) it installed 13 .pc files in the 'standard location' /usr/lib/pkgconfig. Okay - I check qt6-tools. It installed 5 .pc files in the same location.

Is this a multilib system or regular? Why do you need lib${LIBDIRSUFFIX}? LFS puts libs in lib/.
 
Old 06-01-2023, 05:32 AM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Well fixed it, although qt6 built fine ( no build errors ) there is a stupid test in one file here:
qtbase-everywhere-src-6.5.1/cmake/QtPkgConfigHelpers.cmake

Which tests for shared libs and unix but really stupidly also tests the cmake version and fails if its too low ( I have tested building the pc files with a lower cmake version by commenting out the test, and it works fine ), no warnings no logging whats the point of putting the version test there, anyway the fix is to upgrade cmake wich I did and all is now working as expected, so for anyone else upgrade cmake >= 3.20
Marking as solved
 
Old 06-02-2023, 06:09 AM   #8
bryan_S
Member
 
Registered: Aug 2014
Location: N. Florida
Distribution: LinuxfromScratch, OpenSuse, Slackware
Posts: 107

Rep: Reputation: Disabled
Glad you got it tracked down. Qt6 build system played a 'trick' on me as well. With my CPU i can build my complete system with -march=bdver2 in CFLAGS (it's an AMD 'piledriver' CPU). Only with Qt6, the build stops right away and i had to switch to -march=x86_64-v2. Using -march=native didn't work either.
 
  


Reply

Tags
lfs, pkgconfig, qt, qt6



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
[SOLVED] QT6 3rensho Slackware 9 10-13-2022 06:37 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
[SOLVED] bash.pc of bash-5.0.002-x86_64-1 is in /usr/lib/pkgconfig/ instead of /usr/lib64/pkgconfig/ RandomTroll Slackware 6 01-24-2019 07:02 AM
what's with all the missing pkgconfig files in FC1?? thehundredthone Linux - Software 2 03-02-2004 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:12 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