0

我正在构建 Qt 6.1.2 以支持静态链接,但我在配置构建过程时遇到问题。

Windows x64,使用 Microsoft VC 编译器

安装命令:

configure   -prefix "..\builds\QtNew"  
            -extprefix "c:\Qt_New" 
            -debug-and-release 
            -static 
            -make examples 
            -make tests 
            -openssl-linked 
            -sctp 
            -- -D QT_BUILD_EXAMPLES_BY_DEFAULT=OFF -D OPENSSL_USE_STATIC_LIBS=ON

首先给了我很多错误

"Could NOT find ZSTD: Found unsuitable version "", but required is at least "1.3" (found ZSTD_LIBRARY-NOTFOUND)"

我显然在这里遗漏了一些东西,有人知道吗?

附录:到目前为止,我已经意识到编译过程有很多我在任何地方都找不到的依赖项。所以我只需要一个接一个地接收错误消息,然后尝试解决问题。考虑解决的问题。

最好的问候欧维

E:\Downloaded\Qt6\Src>configure -prefix "..\builds\QtFirst"  -extprefix "c:\Qt_First" -debug-and-release -static -make examples -make tests -- -D QT_BUILD_EXAMPLES_BY_DEFAULT=OFF -D OPENSSL_USE_STATIC_LIBS=ON

+ cd qtbase

+ E:\Downloaded\Qt6\Src\qtbase\configure.bat -top-level -prefix "..\builds\QtFirst"  -extprefix "c:\Qt_First" -debug-and-release -static -make examples -make tests -- -D QT_BUILD_EXAMPLES_BY_DEFAULT=OFF -D OPENSSL_USE_STATIC_LIBS=ON

'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe' '-D' 'QT_BUILD_EXAMPLES_BY_DEFAULT=OFF' '-D' 'OPENSSL_USE_STATIC_LIBS=ON' '-DBUILD_SHARED_LIBS=OFF' '-DCMAKE_INSTALL_PREFIX=..//builds//QtFirst' '-DCMAKE_STAGING_PREFIX=c://Qt_First' '-DQT_BUILD_EXAMPLES=TRUE' '-DQT_BUILD_TESTS=TRUE' '-DCMAKE_CONFIGURATION_TYPES=Release;Debug' '-G' 'Ninja Multi-Config' 'E:/Downloaded/Qt6/Src'

Check dependencies of 'qtbase'

Check dependencies of 'qtshadertools'

Check dependencies of 'qtsvg'


Check dependencies of 'qtdeclarative'

Check dependencies of 'qt3d'

Check dependencies of 'qt5compat'

Check dependencies of 'qtactiveqt'

Check dependencies of 'qtcharts'

Check dependencies of 'qttools'

Check dependencies of 'qtcoap'

Check dependencies of 'qtdatavis3d'

Check dependencies of 'qtimageformats'

Check dependencies of 'qtquickcontrols2'

Check dependencies of 'qtdoc'

Check dependencies of 'qtlottie'

Check dependencies of 'qtmqtt'

Check dependencies of 'qtnetworkauth'

Check dependencies of 'qtopcua'

Check dependencies of 'qtquick3d'

Check dependencies of 'qtquicktimeline'

Check dependencies of 'qtscxml'

Check dependencies of 'qttranslations'

Check dependencies of 'qtvirtualkeyboard'

Check dependencies of 'qtwayland'

Configuring 'qtbase'

-- Building for multiple configurations: Release;Debug.

-- Main configuration is: Release.

-- Check for feature set changes

-- Extracting architecture info from E:/Downloaded/Qt6/Src/qtbase/config.tests/arch/Release/architecture_test.exe.

-- CMAKE_VERSION: "3.20.21032501-MSVC_2"

-- CMAKE_HOST_SYSTEM: "Windows-10.0.19041"

-- CMAKE_HOST_SYSTEM_NAME: "Windows"

-- CMAKE_HOST_SYSTEM_VERSION: "10.0.19041"

-- CMAKE_HOST_SYSTEM_PROCESSOR: "AMD64"

-- CMAKE_SYSTEM: "Windows"

-- CMAKE_SYSTEM_NAME: "Windows"

-- CMAKE_SYSTEM_VERSION: "10.0.19041"

-- CMAKE_SYSTEM_PROCESSOR: "AMD64"

-- CMAKE_CROSSCOMPILING: "FALSE"

-- CMAKE_C_COMPILER: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" (19.29.30133.0)

-- CMAKE_CXX_COMPILER: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" (19.29.30133.0)

-- MSVC_VERSION: "1929"

-- MSVC_TOOLSET_VERSION: "142"

-- Could NOT find ZSTD: Found unsuitable version "", but required is at least "1.3" (found ZSTD_LIBRARY-NOTFOUND)

-- Could NOT find WrapDBus1 (missing: DBus1_LIBRARY DBus1_INCLUDE_DIR WrapDBus1_FOUND) (Required is at least version "1.2")

-- Could NOT find double-conversion (missing: double-conversion_DIR)

-- Could NOT find WrapDoubleConversion (missing: WrapDoubleConversion_FOUND)

-- Could NOT find GLIB2 (missing: GLIB2_LIBRARIES GTHREAD2_LIBRARIES GLIB2_INCLUDE_DIRS)

-- Found the following ICU libraries:

--   i18n (required)

--   uc (required)

--   data (required)

-- Could NOT find Libb2 (missing: LIBB2_LIBRARY LIBB2_INCLUDE_DIR)

-- Could NOT find WrapRt (missing: WrapRt_FOUND)

-- Could NOT find LTTngUST (missing: LTTNGUST_LIBRARIES LTTNGUST_INCLUDE_DIRS)

-- Could NOT find WrapSystemPCRE2 (missing: PCRE2_LIBRARIES PCRE2_INCLUDE_DIRS __pcre2_found) (Required is at least version "10.20")

-- Could NOT find Slog2 (missing: Slog2_INCLUDE_DIR Slog2_LIBRARY)

-- Could NOT find WrapBrotli (missing: BrotliDec_FOUND BrotliEnc_FOUND BrotliCommon_FOUND)

-- Could NOT find GSSAPI (missing: GSSAPI_LIBRARIES GSSAPI_INCLUDE_DIRS)

CMake Error at qtbase/cmake/QtBuildInformation.cmake:373 (message):

  Feature "sctp": Forcing to "ON" breaks its condition:

      TEST_sctp

  Condition values dump:

      TEST_sctp = ""
4

0 回答 0