Some problem make Qt 6.5.1 from sources
-
@Christian-Ehrlicher I need 600 seconds wait for post message!
C:\INSTALL\Qt>C:\mingw64\bin\c++.exe --version c++.exe (x86_64-posix-seh-rev1, Built by MinGW-W64 project) 11.2.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
I'll try to delete or rename C:/PostgreSQL/15/include/pthread.h .
C:\INSTALL\Qt>C:\mingw64\bin\c++.exe --version c++.exe (x86_64-posix-seh-rev1, Built by MinGW-W64 project) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -
@Navadvipa-Chandra-das
Now problem with C:/PostgreSQL/15/lib/zlib.lib may be[1506/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder_sah.cpp.obj [1507/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder_morton.cpp.obj [1508/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder.cpp.obj [1509/11548] Generating version linker script for target Quick3DRuntimeRender [1510/11548] Generating version linker script for target Quick3D [1511/11548] Running syncqt.cpp for module: QtQuick3DParticles [1512/11548] Generating version linker script for target Quick3DParticles [1513/11548] Running syncqt.cpp for module: QtQuick3DAssetUtils [1514/11548] Generating version linker script for target Quick3DAssetUtils [1515/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder_sah_spatial.cpp.obj [1516/11548] Linking CXX static library qtbase\lib\libQt6BundledHarfbuzz.a [1517/11548] Running syncqt.cpp for module: QtQuick3DHelpers [1518/11548] Running syncqt.cpp for module: QtQuick3DHelpersImpl [1519/11548] Linking CXX shared library qtbase\bin\Qt6Core.dll FAILED: qtbase/bin/Qt6Core.dll qtbase/lib/libQt6Core.a cmd.exe /C "cd . && C:\mingw64\bin\c++.exe -g -Wl,--no-undefined -Wl,--version-script,C:/QtSource/Developer/Build/qtbase/src/corelib/Core.version -shared -o qtbase\bin\Qt6Core.dll -Wl,--out-implib,qtbase\lib\libQt6Core.a -Wl,--major-image-version,6,--minor-image-version,5 @CMakeFiles\Core.rsp && cd ." Warning: corrupt .drectve at end of def file Warning: corrupt .drectve at end of def file Warning: corrupt .drectve at end of def file Warning: corrupt .drectve at end of def file Warning: corrupt .drectve at end of def file Warning: corrupt .drectve at end of def file Warning: corrupt .drectve at end of def file Warning: corrupt .drectve at end of def file Warning: corrupt .drectve at end of def file Warning: corrupt .drectve at end of def file C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(trees.obj):(.text$mn+0x7): undefined reference to `__security_cookie' C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(trees.obj):(.text$mn+0x13e): undefined reference to `__security_check_cookie' C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(trees.obj):(.xdata[$unwind$gen_codes]+0x8): undefined reference to `__GSHandlerCheck' C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(inftrees.obj):(.text$mn+0x1a): undefined reference to `__security_cookie' C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(inftrees.obj):(.text$mn+0x161): undefined reference to `__security_check_cookie' C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(inftrees.obj):(.text$mn+0x50b): undefined reference to `__report_rangecheckfailure' C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(inftrees.obj):(.xdata[$unwind$inflate_table]+0x18): undefined reference to `__GSHandlerCheck' collect2.exe: error: ld returned 1 exit status [1520/11548] Running syncqt.cpp for module: QtQuick3DIblBaker [1521/11548] Generating version linker script for target Quick3DHelpers [1522/11548] Generating version linker script for target Quick3DHelpersImpl [1523/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder_sah_mb.cpp.obj [1524/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder_twolevel.cpp.obj [1525/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_intersector1_bvh4.cpp.obj [1526/11548] Linking CXX static library qtbase\lib\libQt6BundledSpirv_Cross.a ninja: build stopped: subcommand failed.
-
@Navadvipa-Chandra-das As I said - remove the postgres stuff - it's wrong and as it looks the main culprit. Use the official stuff and nothing from a dubious server somewhere in the net...
-
Christian, I have already deleted that old Postgres and installed a new one from the official website! There is no config.h. File pthread.h I rename to AAApthread.h and more steps of successful compilation have already been completed!
[1519/11548] Linking CXX shared library qtbase\bin\Qt6Core.dll
FAILED: qtbase/bin/Qt6Core.dll qtbase/lib/libQt6Core.a -
Please do not add the postgres stuff - compile it later as standalone.
Don't know what you mixed up so that those directories are fetched by cmake or whomever but as you can see they screw up your compilation. -
@Christian-Ehrlicher
I comment this
rem set Path=%Path%;C:\PostgreSQL\15\bin
and again
"file too big"[2525/11557] Running AUTOMOC file extraction for target FbSupportPrivate [2526/11557] Building CXX object qtdeclarative/src/qml/CMakeFiles/Qml.dir/qml/qqmldatablob.cpp.obj [2527/11557] Running moc --collect-json for target FbSupportPrivate [2528/11557] Building CXX object qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj FAILED: qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj C:\mingw64\bin\c++.exe -DLanguageServerPrivate_EXPORTS -DMINGW_HAS_SECURE_API=1 -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_LANGUAGESERVER_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_JSONRPC_LIB -DQT_MOC_COMPAT -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_STRICT_QLIST_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -IC:/QtSource/Developer/Build/qtlanguageserver/src/languageserver/LanguageServerPrivate_autogen/include -IC:/QtSource/Developer/Build/qtbase/include -IC:/QtSource/Developer/Build/qtbase/include/QtLanguageServer -IC:/QtSource/QtSource651/qtlanguageserver/src/languageserver -IC:/QtSource/Developer/Build/qtlanguageserver/src/languageserver -IC:/QtSource/Developer/Build/qtbase/include/QtLanguageServer/6.5.1 -IC:/QtSource/Developer/Build/qtbase/include/QtLanguageServer/6.5.1/QtLanguageServer -IC:/QtSource/Developer/Build/qtbase/src/corelib -IC:/QtSource/Developer/Build/qtbase/include/QtCore/6.5.1 -IC:/QtSource/Developer/Build/qtbase/include/QtCore/6.5.1/QtCore -IC:/QtSource/Developer/Build/qtbase/include/QtCore -IC:/QtSource/QtSource651/qtbase/mkspecs/win32-g++ -IC:/QtSource/Developer/Build/qtbase/include/QtJsonRpc -IC:/QtSource/Developer/Build/qtlanguageserver/src/jsonrpc -IC:/QtSource/Developer/Build/qtbase/include/QtJsonRpc/6.5.1 -IC:/QtSource/Developer/Build/qtbase/include/QtJsonRpc/6.5.1/QtJsonRpc -Wa,-mbig-obj -g -fvisibility=hidden -fno-keep-inline-dllexport -Wall -Wextra -fno-exceptions -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -Wno-error=implicit-fallthrough -Wno-error=deprecated-copy -Wno-error=redundant-move -Wno-error=init-list-lifetime -Wno-error=format-overflow -Wno-error=stringop-overflow -Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecated-enum-float-conversion -Wno-error=stringop-overread -Wa,-mbig-obj -Wsuggest-override -std=c++17 -Winvalid-pch -include C:/QtSource/Developer/Build/qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/cmake_pch.hxx -MD -MT qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj -MF qtlanguageserver\src\languageserver\CMakeFiles\LanguageServerPrivate.dir\qlanguageservergen.cpp.obj.d -o qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj -c C:/QtSource/QtSource651/qtlanguageserver/src/languageserver/qlanguageservergen.cpp C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/as.exe: qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj: section .pdata$_ZNSt8__detail9__variant5__getINS0_15_Variadic_unionIJN17QLspSpecification16TextDocumentEditENS3_10CreateFileENS3_10RenameFileENS3_10DeleteFileEEEEEEDcSt16in_place_index_tILy0EEOT_: string table overflow at offset 10000051 C:\Users\navad\AppData\Local\Temp\ccq698mY.s: Assembler messages: C:\Users\navad\AppData\Local\Temp\ccq698mY.s: Fatal error: qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj: file too big
-
Hello, Christian Ehrlicher and All!
Christian, where have you disappeared to?
I have taken the following steps.
Delete the source texts about which I downloaded as a file qt-everywhere-src-6.5.1.zip and I used the git command that I took on this page - https://wiki.qt.io/Building_Qt_6_from_Git#Running_Tests .For perl init commands, Strawberry Perl (64-bit) 5.32.1.1-64-bit was installed.
And continued various experiments.
Installed version 2.5.25 of WinFlexBison. Installed html5lib for Python 3.
I installed Visual Studio 2019 and Visual Studio 2022 and installed the necessary package for developing classic C++ applications in each of them.
There is nothing surprising in the fact that QtWebEngine cannot be built!warning: There is no basic cpp/winrt support. Some functions may not be available. WARNING: Qt WebEngine will not be created. The build requires Visual Studio 2019 or later. WARNING: QtPdf will not be created. The build requires Visual Studio 2019 or later.
But now I get a message related to Vulcan. I updated VulkanSDK to version 1.3.250.0, but it didn't help!
[1758/11501] Building RC object qtbase/src/tools/qtpaths/CMakeFiles/qtpaths.dir/qtpaths_longpath.rc.obj [1759/11501] Building CXX object qtbase/src/tools/qvkgen/CMakeFiles/qvkgen.dir/qvkgen.cpp.obj [1760/11501] Linking CXX executable qtbase\bin\qvkgen.exe [1761/11501] Building RC object qtbase/src/tools/androidtestrunner/CMakeFiles/androidtestrunner.dir/androidtestrunner_longpath.rc.obj [1762/11501] Building CXX object qtbase/src/tools/qtpaths/CMakeFiles/qtpaths.dir/qtpaths.cpp.obj [1763/11501] Linking CXX executable qtbase\bin\qtpaths.exe [1764/11501] Automatic MOC for target windeployqt [1765/11501] Building CXX object qtbase/src/tools/androidtestrunner/CMakeFiles/androidtestrunner.dir/main.cpp.obj [1766/11501] Generating windeployqt_resource.rc [1767/11501] Generating vulkan data FAILED: qtbase/src/gui/vulkan/qvulkanfunctions.h qtbase/src/gui/vulkan/qvulkanfunctions_p.h qtbase/src/gui/vulkan/qvulkanfunctions_p.cpp C:/QtSource/Developer/Build/qtbase/src/gui/vulkan/qvulkanfunctions.h C:/QtSource/Developer/Build/qtbase/src/gui/vulkan/qvulkanfunctions_p.h C:/QtSource/Developer/Build/qtbase/src/gui/vulkan/qvulkanfunctions_p.cpp cmd.exe /C "cd /D C:\QtSource\Developer\Build\qtbase\src\gui && C:\CMake\bin\cmake.exe -E make_directory vulkan && C:\QtSource\Developer\Build\qtbase\bin\qvkgen.exe C:/QtSource/qt6/qtbase/src/gui/vulkan/vk.xml C:/QtSource/qt6/qtbase/src/gui/vulkan/generated_header.txt C:/QtSource/Developer/Build/qtbase/src/gui/vulkan/qvulkanfunctions" [1768/11501] Building CXX object qtbase/src/tools/windeployqt/CMakeFiles/windeployqt.dir/windeployqt_autogen/mocs_compilation.cpp.obj [1769/11501] Linking CXX executable qtbase\bin\androidtestrunner.exe [1770/11501] Linking CXX executable qtbase\bin\qlalr.exe [1771/11501] Building CXX object qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/main.cpp.obj [1772/11501] Linking CXX executable qtbase\bin\uic.exe [1773/11501] Linking CXX shared library qtbase\bin\Qt6Network.dll [1774/11501] Linking CXX shared library qtbase\bin\Qt6DBus.dll ninja: build stopped: subcommand failed.
I have Visual Studio Installer showing that the following components are installed:
Visual Studio Community 2022
Visual Studio Community 2019 (2)
Visual Studio Build Tools 2019I am confused by the two in brackets 2019 (2). I doesn't clean up. Once I interrupted the installation of Visual Studio Community 2019, and when I started it again, I got Visual Studio Community 2019 (2). Is this why Qt doesn't find Visual Studio Community 2019?
There are a lot of questions, but please, let's solve at least one of them!
Thank you very much!
With best regards, Navadvipa Chandra das. -
Did you run the command which failes directly on the command line to see what happens?
-
Hello, Christian and All!
I use FAR Manager and run all commands from it. I make two bat files - in the first one I run the second bat file with the output of the result in a log file, which I analyze. Some output of the results goes in addition to the log file to the FAR Manager console.
For example so:
LogDebugConfig.bat:DebugConfig.bat => ./../Log/DebugConfig.log
DebugConfig.bat:
set Path=%Path%;C:\PostgreSQL\15\bin set BUILD_DIR=C:/QtSource cd %BUILD_DIR%/Developer/Build %BUILD_DIR%/Qt6/configure -prefix %BUILD_DIR%/Developer/Lib ^ -developer-build -nomake tests cd %BUILD_DIR%/Developer/Build
But now I have completely deleted my Windows 11 and I want to reinstall it again on a clean, formatted disk. This way it is more reliable and there will be more free space. So far there has been a problem with the installation, so I will need time when I can continue experimenting with Qt on Windows 11.
I am currently writing this letter on my Ubuntu 22.04 LTS system. And I had the idea to try to install Qt from the source in this system too. But it also takes time to experiment.
Thank You for answer!
With best regards, Navadvipa Chandra das. -
Hello Christian and All!
I installed on the latest version of Windows 11 64 bit the necessary programs to compile Qt from source. But it all happened again. In Release mode, compilation is completed successfully. Except I can't compile a module for PostgreSQL. But in the -developer-build mode, compilation ends with an error - qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj: file too big[2522/11771]
Here are two output files to the console for configure an make commands.
[https://dropmefiles.com/n60M6](link url)I exclude from the Path variable
C:\Prg\Strawberry\c\bin
C:\Prg\Strawberry\perl\site\bin
C:\Prg\Strawberry\perl\bin
Actually I'm just renaming the directory C:\Prg\A-Strawberry - otherwise, a lot of confusion turns out, even ld.exe taken from Strawberry!
I also clean up C:\Prg\PostgreSQL\15\bin from Path, since again the confusion turns out.Thank You!
With best regards, Navadvipa Chandra das.