LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   qt6 not building (https://www.linuxquestions.org/questions/slackware-14/qt6-not-building-4175730062/)

rizitis 10-20-2023 04:46 AM

qt6 not building
 
Slackware current, full installation and update.
But I think its the same for Slackware-15
qt6 from SBo need this patch (maintainer just emailed)
https://code.qt.io/cgit/qt/qtbase.gi...h/?id=8af35d27

rizitis 10-20-2023 01:06 PM

FYI, gt6-6.6.0 builds fine with the same patch in Slackware-current.
Only in SBo SlackBuild need to remove these 3 lines:
Code:

rm -R $PKG/usr/lib$LIBDIRSUFFIX/cmake/Qt6/QtBuildInternals
rmdir $PKG/usr/lib$LIBDIRSUFFIX/cmake/Qt6/ios
rmdir $PKG/usr/lib$LIBDIRSUFFIX/cmake/Qt6/macos


Geremia 12-29-2023 10:34 PM

Thanks. I was able to build 6.6.1 by removing those same lines, too (which is what the current branch of https://github.com/gperon/mmyy_slack...qt6.SlackBuild did, too).
I also used gcc and g++ instead of clang. I don't know why the SlackBuild downloads and uses Clang. It's doesn't seem necessary; cf. this: https://forum.qt.io/topic/141215/doe...-if-gcc-only/6

rizitis 12-30-2023 01:19 AM

Nice signature 🙂

Windu 12-30-2023 04:22 AM

I installed the package from http://slackware.uk/people/alien-kde..._64-1alien.txz which saves a lot of time waiting for the compilation to finish.

Geremia 12-30-2023 12:39 PM

Quote:

Originally Posted by Windu (Post 6473530)
I installed the package from http://slackware.uk/people/alien-kde..._64-1alien.txz which saves a lot of time waiting for the compilation to finish.

Nice! Thank you. I didn't know someone built it already.

Oh I see Alien has it under https://slackware.nl/alien-kde/curre...g/x86_64/deps/ .
I just needed to run "slackpkg search qt6" ��

Geremia 12-30-2023 12:40 PM

Quote:

Originally Posted by rizitis (Post 6473513)
Nice signature 🙂

Yeah, I wish Unicode had more symbols like that. 😄

rizitis 12-30-2023 02:06 PM

Code:

printf '\u2627\n'
:jawa:

Code:

star_code_point = 0x2605 

cross_pattern = [
    [" ", " ", "*", " ", " "],
    [" ", " ", "*", " ", " "],
    ["*", "*", "*", "*", "*"],
    [" ", " ", "*", " ", " "],
    [" ", " ", "*", " ", " "],
]

for row in cross_pattern:
    print("".join(chr(star_code_point) if x == "*" else x for x in row))

Code:

import tkinter as tk
from tkinter import messagebox

def show_popup():
    messagebox.showinfo("Holiday Greetings", "Merry Christmas and a Happy New Year!", icon="info")
    root.quit()
cross_code_point = '\u2627'
camel_code_point = '\U0001F42A'

cross_pattern = [
    [" ", cross_code_point, " "],
    [cross_code_point, cross_code_point, cross_code_point],
    [" ", cross_code_point, " "],
]

camel_pattern = [
    [" ", " ", camel_code_point, camel_code_point, camel_code_point, " "],
]

for row in cross_pattern:
    print("".join(str(x) for x in row))

for row in camel_pattern:
    print("".join(str(x) for x in row))

root = tk.Tk()
root.after(1000, show_popup) 
root.withdraw() 
root.mainloop()

python3

Jeebizz 01-13-2024 02:14 PM

Quote:

Originally Posted by rizitis (Post 6459976)
FYI, gt6-6.6.0 builds fine with the same patch in Slackware-current.
Only in SBo SlackBuild need to remove these 3 lines:
Code:

rm -R $PKG/usr/lib$LIBDIRSUFFIX/cmake/Qt6/QtBuildInternals
rmdir $PKG/usr/lib$LIBDIRSUFFIX/cmake/Qt6/ios
rmdir $PKG/usr/lib$LIBDIRSUFFIX/cmake/Qt6/macos


Unfortunately 6.6.0 won't build for 15.0 still:

Code:

use_system_snappy=true
use_system_zlib=true
use_thin_lto=false
use_udev=true
use_v8_context_snapshot=true
use_vaapi=true
use_vaapi_x11=true
use_xkbcommon=true
v8_symbol_level=0
v8_use_external_startup_data=true
-- GN Done. Made 17653 targets from 2872 files in 23785ms
[9171/12048] Running ninja for QtWebEngineCore in /tmp/SBo/qt-everywhere-src-6.6.0/build/qtwebengine/src/core/Release/x86_64
ninja: Entering directory `/tmp/SBo/qt-everywhere-src-6.6.0/build/qtwebengine/src/core/Release/x86_64'
[5/31020] CXX obj/base/third_party/double_conversion/double_conversion/bignum.o
FAILED: obj/base/third_party/double_conversion/double_conversion/bignum.o
/usr/bin/clang++ -MMD -MF obj/base/third_party/double_conversion/double_conversion/bignum.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -I../../../../../../qtwebengine/src/3rdparty/chromium -Wall -Wextra -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wimplicit-fallthrough -Wextra-semi -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-unknown-argument -Wno-unknown-attributes -Wno-unknown-warning-option -Wno-predefined-identifier-outside-function -Wno-unknown-pragmas -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -m64 -msse3 -no-canonical-prefixes -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-unused-const-variable -Wno-unused-function -Wno-parentheses-equality -Wno-tautological-compare -Wno-thread-safety-attributes -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../../../../../../qtwebengine/src/3rdparty/chromium/base/third_party/double_conversion/double-conversion/bignum.cc -o obj/base/third_party/double_conversion/double_conversion/bignum.o
clang++: error: unknown argument: '-gsimple-template-names'
[6/31020] CXX obj/base/third_party/double_conversion/double_conversion/cached-powers.o
FAILED: obj/base/third_party/double_conversion/double_conversion/cached-powers.o
/usr/bin/clang++ -MMD -MF obj/base/third_party/double_conversion/double_conversion/cached-powers.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -I../../../../../../qtwebengine/src/3rdparty/chromium -Wall -Wextra -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wimplicit-fallthrough -Wextra-semi -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-unknown-argument -Wno-unknown-attributes -Wno-unknown-warning-option -Wno-predefined-identifier-outside-function -Wno-unknown-pragmas -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -m64 -msse3 -no-canonical-prefixes -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-unused-const-variable -Wno-unused-function -Wno-parentheses-equality -Wno-tautological-compare -Wno-thread-safety-attributes -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../../../../../../qtwebengine/src/3rdparty/chromium/base/third_party/double_conversion/double-conversion/cached-powers.cc -o obj/base/third_party/double_conversion/double_conversion/cached-powers.o
clang++: error: unknown argument: '-gsimple-template-names'
[14/31020] CC obj/base/third_party/xdg_mime/xdg_mime/xdgmimecache.o
ninja: build stopped: subcommand failed.
[9210/12048] Building CXX object qtlocation/src/plugins/geoservices/itemsoverlay/CMake...erviceProviderFactoryItemsOverlayPlugin.dir/qgeomappingmanagerengineitemsoverlay.cpp.o
FAILED: qtwebengine/src/core/Release/x86_64/QtWebEngineCore.stamp qtwebengine/src/core/Release/x86_64/obj/tools/v8_context_snapshot/v8_context_snapshot.stamp qtwebengine/src/core/Release/x86_64/QtWebEngineCore /tmp/SBo/qt-everywhere-src-6.6.0/build/qtwebengine/src/core/Release/x86_64/QtWebEngineCore.stamp /tmp/SBo/qt-everywhere-src-6.6.0/build/qtwebengine/src/core/Release/x86_64/obj/tools/v8_context_snapshot/v8_context_snapshot.stamp /tmp/SBo/qt-everywhere-src-6.6.0/build/qtwebengine/src/core/Release/x86_64/QtWebEngineCore
cd /tmp/SBo/qt-everywhere-src-6.6.0/build/qtwebengine/src/core && /usr/bin/ninja -C /tmp/SBo/qt-everywhere-src-6.6.0/build/qtwebengine/src/core/Release/x86_64 QtWebEngineCore
[9220/12048] Building CXX object qtgraphs/src/graphs/CMakeFiles/Graphs.dir/graphs_qmltyperegistrations.cpp.o
ninja: build stopped: subcommand failed.
root@slackmachine:/home/slackuser/source/qt6# ls
README            desktop    libclang-release_130-based-linux-Ubuntu20.04-gcc9.3-x86_64.7z  qt-everywhere-src-6.6.0.tar.xz  qt6.SlackBuild  slack-desc
README.SLACKWARE  doinst.sh  profile.d                                                      qt-everywhere-src-6.6.1.tar.xz  qt6.info
root@slackmachine:/home/slackuser/source/qt6# exit
exit


lancsuk 02-21-2024 05:20 AM

Quote:

Originally Posted by Jeebizz (Post 6476514)
Unfortunately 6.6.0 won't build for 15.0 still:

Code:

use_system_snappy=true
use_system_zlib=true
use_thin_lto=false
use_udev=true
use_v8_context_snapshot=true
use_vaapi=true
use_vaapi_x11=true
use_xkbcommon=true
v8_symbol_level=0
v8_use_external_startup_data=true
-- GN Done. Made 17653 targets from 2872 files in 23785ms
[9171/12048] Running ninja for QtWebEngineCore in /tmp/SBo/qt-everywhere-src-6.6.0/build/qtwebengine/src/core/Release/x86_64
ninja: Entering directory `/tmp/SBo/qt-everywhere-src-6.6.0/build/qtwebengine/src/core/Release/x86_64'
[5/31020] CXX obj/base/third_party/double_conversion/double_conversion/bignum.o
FAILED: obj/base/third_party/double_conversion/double_conversion/bignum.o
/usr/bin/clang++ -MMD -MF obj/base/third_party/double_conversion/double_conversion/bignum.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -I../../../../../../qtwebengine/src/3rdparty/chromium -Wall -Wextra -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wimplicit-fallthrough -Wextra-semi -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-unknown-argument -Wno-unknown-attributes -Wno-unknown-warning-option -Wno-predefined-identifier-outside-function -Wno-unknown-pragmas -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -m64 -msse3 -no-canonical-prefixes -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-unused-const-variable -Wno-unused-function -Wno-parentheses-equality -Wno-tautological-compare -Wno-thread-safety-attributes -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../../../../../../qtwebengine/src/3rdparty/chromium/base/third_party/double_conversion/double-conversion/bignum.cc -o obj/base/third_party/double_conversion/double_conversion/bignum.o
clang++: error: unknown argument: '-gsimple-template-names'
[6/31020] CXX obj/base/third_party/double_conversion/double_conversion/cached-powers.o
FAILED: obj/base/third_party/double_conversion/double_conversion/cached-powers.o
/usr/bin/clang++ -MMD -MF obj/base/third_party/double_conversion/double_conversion/cached-powers.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -I../../../../../../qtwebengine/src/3rdparty/chromium -Wall -Wextra -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wimplicit-fallthrough -Wextra-semi -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-unknown-argument -Wno-unknown-attributes -Wno-unknown-warning-option -Wno-predefined-identifier-outside-function -Wno-unknown-pragmas -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -m64 -msse3 -no-canonical-prefixes -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-unused-const-variable -Wno-unused-function -Wno-parentheses-equality -Wno-tautological-compare -Wno-thread-safety-attributes -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../../../../../../qtwebengine/src/3rdparty/chromium/base/third_party/double_conversion/double-conversion/cached-powers.cc -o obj/base/third_party/double_conversion/double_conversion/cached-powers.o
clang++: error: unknown argument: '-gsimple-template-names'
[14/31020] CC obj/base/third_party/xdg_mime/xdg_mime/xdgmimecache.o
ninja: build stopped: subcommand failed.
[9210/12048] Building CXX object qtlocation/src/plugins/geoservices/itemsoverlay/CMake...erviceProviderFactoryItemsOverlayPlugin.dir/qgeomappingmanagerengineitemsoverlay.cpp.o
FAILED: qtwebengine/src/core/Release/x86_64/QtWebEngineCore.stamp qtwebengine/src/core/Release/x86_64/obj/tools/v8_context_snapshot/v8_context_snapshot.stamp qtwebengine/src/core/Release/x86_64/QtWebEngineCore /tmp/SBo/qt-everywhere-src-6.6.0/build/qtwebengine/src/core/Release/x86_64/QtWebEngineCore.stamp /tmp/SBo/qt-everywhere-src-6.6.0/build/qtwebengine/src/core/Release/x86_64/obj/tools/v8_context_snapshot/v8_context_snapshot.stamp /tmp/SBo/qt-everywhere-src-6.6.0/build/qtwebengine/src/core/Release/x86_64/QtWebEngineCore
cd /tmp/SBo/qt-everywhere-src-6.6.0/build/qtwebengine/src/core && /usr/bin/ninja -C /tmp/SBo/qt-everywhere-src-6.6.0/build/qtwebengine/src/core/Release/x86_64 QtWebEngineCore
[9220/12048] Building CXX object qtgraphs/src/graphs/CMakeFiles/Graphs.dir/graphs_qmltyperegistrations.cpp.o
ninja: build stopped: subcommand failed.
root@slackmachine:/home/slackuser/source/qt6# ls
README            desktop    libclang-release_130-based-linux-Ubuntu20.04-gcc9.3-x86_64.7z  qt-everywhere-src-6.6.0.tar.xz  qt6.SlackBuild  slack-desc
README.SLACKWARE  doinst.sh  profile.d                                                      qt-everywhere-src-6.6.1.tar.xz  qt6.info
root@slackmachine:/home/slackuser/source/qt6# exit
exit


How is the current status? Is QT6 for Slackware 1.50 still broken?

bormant 02-21-2024 07:29 AM

@Jeebizz
Quote:

Code:

clang++: error: unknown argument: '-gsimple-template-names'

clang doesn't know commndline parameter.
Maybe time for
Code:

Sun Feb 18 21:03:57 UTC 2024
extra/llvm-17.0.6-x86_64-1_slack15.0.txz:  Added.
  In case anyone needs a newer compiler.

Another way is patch off wrong parameter ('-gsimple-template-names').

Jeebizz 02-23-2024 09:20 PM

Quote:

Originally Posted by bormant (Post 6485005)
@Jeebizz

clang doesn't know commndline parameter.
Maybe time for
Code:

Sun Feb 18 21:03:57 UTC 2024
extra/llvm-17.0.6-x86_64-1_slack15.0.txz:  Added.
  In case anyone needs a newer compiler.

Another way is patch off wrong parameter ('-gsimple-template-names').

I don't know the latest QT6 I can compile successfully on Slackware 15.0 64bit is QT6.6.5.3 , anything past that it just fails. Also I have no reason to go any further as I already messed with cmake upgrading that, just to try to get a later version of duckstation to compile which never solved my controller issue anyways... All a complete waste of time and pain in my ass.

lancsuk 02-25-2024 03:39 AM

Quote:

Originally Posted by Jeebizz (Post 6485508)
I don't know the latest QT6 I can compile successfully on Slackware 15.0 64bit is QT6.6.5.3 , anything past that it just fails. Also I have no reason to go any further as I already messed with cmake upgrading that, just to try to get a later version of duckstation to compile which never solved my controller issue anyways... All a complete waste of time and pain in my ass.

I built successfully QT6-6.6.1 on a fresh and up to date Slackware 15.0 VM.

# order
Code:

llvm
nodejs
md4c
python3-webencodings
html5lib
double-conversion
qt6

https://slackernet.ddns.net/slackwar...t2/source/qt6/

Jeebizz 02-25-2024 06:57 PM

Quote:

Originally Posted by lancsuk (Post 6485762)
I built successfully QT6-6.6.1 on a fresh and up to date Slackware 15.0 VM.

# order
Code:

llvm
nodejs
md4c
python3-webencodings
html5lib
double-conversion
qt6

https://slackernet.ddns.net/slackwar...t2/source/qt6/

Well everything except LLVM is updated via slackbuilds
Code:

nodejs-20.11.1-x86_64-1_SBo.tgz
md4c-0.4.8-x86_64-1_SBo.txz
double-conversion-3.3.0-x86_64-1_SBo.txz
html5lib-1.1-x86_64-1_SBo.txz
python3-webencodings-0.5.1-x86_64-2_SBo.txz

I hadn't updated LLVM and I don't plan to at this point and time; so I'm sticking with the latest I can which is qt6.5.3 and I didn't update the deps in any sort of order, I just downloaded the slackbuilds and updated each. I honestly don't know what is required to update LLVM, but I am not interested in delving into another rabbit-hole at this point.

Jeebizz 03-23-2024 03:48 PM

Don't feel like starting a new thread, but I also can't help but ask for more trouble..

Code:

WARNING: SensorFW support currently not enabled with cmake

ERROR: Feature "no_direct_extern_access": Forcing to "ON" breaks its condition:
    NOT WIN32 AND TEST_no_direct_extern_access
Condition values dump:
    WIN32 = ""
    TEST_no_direct_extern_access = "FALSE"


CMake Error at qtbase/cmake/QtBuildInformation.cmake:209 (message):
  Check the configuration messages for an error that has occurred.
Call Stack (most recent call first):
  qtbase/cmake/QtBuildInformation.cmake:39 (qt_configure_print_summary)
  qtbase/cmake/QtBaseTopLevelHelpers.cmake:69 (qt_print_feature_summary)
  qtbase/cmake/QtBaseTopLevelHelpers.cmake:57 (qt_internal_print_top_level_info)
  CMakeLists.txt:102 (qt_internal_top_level_end)


-- Configuring incomplete, errors occurred!
root@slackmachine:/home/slackuser/source/qt6#

Since I want to keep delving into later versions of duckstation, I have to keep up with qt6; but I can't compile this version (using the --current slackbuild on Slackware 15). cmake is now at version 3.29.0 though; but yea I can only go as far as qt 6.5.3... later versions of qt6 just are out of reach for Slackware15 ; unless anyone has any tips.


All times are GMT -5. The time now is 10:59 AM.