赞
踩
./configure -static -static-runtime -openssl-linked
- Note: Also available for Linux: linux-clang linux-icc
-
- Note: Using static linking will disable the use of dynamically
- loaded plugins. Make sure to import all needed static plugins,
- or compile needed modules into the library.
-
- Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
-
- Note: The following modules are not being compiled in this configuration:
- webenginecore
- webengine
- webenginewidgets
- pdf
- pdfwidgets
-
- WARNING: Feature static_runtime is insignificant in this configuration, ignoring related command line option(s).
-
- WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
-
- Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation.
- On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
- On macOS, you can use Homebrew's llvm package.
- On Windows, you must set LLVM_INSTALL_DIR to the installation path.
-
- WARNING: Tool gperf is required to build QtWebEngine.
-
- WARNING: Tool gperf is required to build QtPdf.
-
- WARNING: QtWebEngine will not be built.
-
- WARNING: QtPdf will not be built.
-
- ERROR: Feature 'openssl-linked' was enabled, but the pre-condition '!features.securetransport && !features.schannel && libs.openssl' failed.
-
- Check config.log for details.
config.log
- looking for library openssl
- Trying source 0 (type openssl) of library openssl ...
- $OPENSSL_LIBS is not set.
- => source produced no result.
- Trying source 1 (type inline) of library openssl ...
- => source failed condition 'config.win32'.
- Trying source 2 (type inline) of library openssl ...
- => source failed condition 'config.msvc'.
- Trying source 3 (type inline) of library openssl ...
- => source failed condition 'config.android'.
- Trying source 4 (type inline) of library openssl ...
- + cd /home/yeqiang/Downloads/qt-everywhere-src-5.15.2/config.tests/openssl && /home/yeqiang/Downloads/qt-everywhere-src-5.15.2/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += static warn_off console single_arch" 'QMAKE_USE += openssl' 'QMAKE_LIBS_OPENSSL = -lssl -lcrypto' /home/yeqiang/Downloads/qt-everywhere-src-5.15.2/config.tests/openssl
- + cd /home/yeqiang/Downloads/qt-everywhere-src-5.15.2/config.tests/openssl && MAKEFLAGS= /usr/bin/gmake clean && MAKEFLAGS= /usr/bin/gmake
- > rm -f main.o
- > rm -f *~ core *.core
- > g++ -c -pipe -O2 -w -fPIC -I. -I/home/yeqiang/Downloads/qt-everywhere-src-5.15.2/qtbase/mkspecs/linux-g++ -o main.o main.cpp
- > main.cpp:5:4: error: #error OpenSSL >= 1.1.1 is required
- > 5 | # error OpenSSL >= 1.1.1 is required
- > | ^~~~~
- > gmake: *** [Makefile:169: main.o] Error 1
- => source failed verification.
- test config.qtbase_network.libraries.openssl FAILED
error OpenSSL >= 1.1.1 is required
下载openssl1.1.1,手动编译
- wget https://www.openssl.org/source/openssl-1.1.1j.tar.gz
- tar -xf openssl-1.1.1j.tar.gz
- cd openssl-1.1.1j/
- ./config --prefix=/opt/openssl
-
- Operating system: x86_64-whatever-linux2
- Configuring OpenSSL version 1.1.1j (0x101010afL) for linux-x86_64
- Using os-specific seed configuration
- Creating configdata.pm
- Creating Makefile
-
- **********************************************************************
- *** ***
- *** OpenSSL has been successfully configured ***
- *** ***
- *** If you encounter a problem while building, please open an ***
- *** issue on GitHub <https://github.com/openssl/openssl/issues> ***
- *** and include the output from the following command: ***
- *** ***
- *** perl configdata.pm --dump ***
- *** ***
- *** (If you are new to OpenSSL, you might want to consult the ***
- *** 'Troubleshooting' section in the INSTALL file first) ***
- *** ***
- make -j6
- sudo make install
重新configure
./configure -opensource -confirm-license -prefix /opt/Qt5.15.2-static -static -static-runtime -openssl-linked OPENSSL_INCDIR=/opt/openssl/include OPENSSL_LIBDIR=/opt/openssl/lib
- Configure summary:
-
- Build type: linux-g++ (x86_64, CPU features: mmx sse sse2)
- Compiler: gcc 9.3.1
- Configuration: sse2 aesni sse3 ssse3 sse4_1 sse4_2 avx avx2 avx512f avx512bw avx512cd avx512dq avx512er avx512ifma avx512pf avx512vbmi avx512vl compile_examples enable_new_dtags f16c largefile precompile_header rdrnd rdseed shani x86SimdAlways release c++11 c++14 c++17 c++1z concurrent dbus reduce_exports reduce_relocations static stl
- Build options:
- Mode ................................... release
- Optimize release build for size ........ no
- Building shared libraries .............. no
- Using C standard ....................... C11
- Using C++ standard ..................... C++17
- Using ccache ........................... no
- Using new DTAGS ........................ yes
- Relocatable ............................ no
- Using precompiled headers .............. yes
- Using LTCG ............................. no
- Target compiler supports:
- SSE .................................. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2
- AVX .................................. AVX AVX2
- AVX512 ............................... F ER CD PF DQ BW VL IFMA VBMI
- Other x86 ............................ AES F16C RDRAND SHA
- Intrinsics without -mXXX option ...... yes
- Build parts ............................ libs examples tools
- Qt modules and options:
- Qt Concurrent .......................... yes
- Qt D-Bus ............................... yes
- Qt D-Bus directly linked to libdbus .... no
- Qt Gui ................................. yes
- Qt Network ............................. yes
- Qt Sql ................................. yes
- Qt Testlib ............................. yes
- Qt Widgets ............................. yes
- Qt Xml ................................. yes
- Support enabled for:
- Using pkg-config ....................... yes
- udev ................................... yes
- Using system zlib ...................... yes
- Zstandard support ...................... no
- Qt Core:
- DoubleConversion ....................... yes
- Using system DoubleConversion ........ no
- GLib ................................... yes
- iconv .................................. no
- ICU .................................... yes
- Built-in copy of the MIME database ..... yes
- Tracing backend ........................ <none>
- Logging backends:
- journald ............................. no
- syslog ............................... no
- slog2 ................................ no
- PCRE2 .................................. yes
- Using system PCRE2 ................... yes
- Qt Network:
- getifaddrs() ........................... yes
- IPv6 ifname ............................ yes
- libproxy ............................... no
- Linux AF_NETLINK ....................... yes
- OpenSSL ................................ yes
- Qt directly linked to OpenSSL ........ yes
- OpenSSL 1.1 ............................ yes
- DTLS ................................... yes
- OCSP-stapling .......................... yes
- SCTP ................................... no
- Use system proxies ..................... yes
- GSSAPI ................................. yes
- Qt Gui:
- Accessibility .......................... yes
- FreeType ............................... yes
- Using system FreeType ................ yes
- HarfBuzz ............................... yes
- Using system HarfBuzz ................ no
- Fontconfig ............................. yes
- Image formats:
- GIF .................................. yes
- ICO .................................. yes
- JPEG ................................. yes
- Using system libjpeg ............... yes
- PNG .................................. yes
- Using system libpng ................ yes
- Text formats:
- HtmlParser ........................... yes
- CssParser ............................ yes
- OdfWriter ............................ yes
- MarkdownReader ....................... yes
- Using system libmd4c ............... no
- MarkdownWriter ....................... yes
- EGL .................................... yes
- OpenVG ................................. no
- OpenGL:
- Desktop OpenGL ....................... yes
- OpenGL ES 2.0 ........................ no
- OpenGL ES 3.0 ........................ no
- OpenGL ES 3.1 ........................ no
- OpenGL ES 3.2 ........................ no
- Vulkan ................................. no
- Session Management ..................... yes
- Features used by QPA backends:
- evdev .................................. yes
- libinput ............................... yes
- INTEGRITY HID .......................... no
- mtdev .................................. no
- tslib .................................. no
- xkbcommon .............................. yes
- X11 specific:
- XLib ................................. yes
- XCB Xlib ............................. yes
- EGL on X11 ........................... yes
- xkbcommon-x11 ........................ no
- QPA backends:
- DirectFB ............................... no
- EGLFS .................................. yes
- EGLFS details:
- EGLFS OpenWFD ........................ no
- EGLFS i.Mx6 .......................... no
- EGLFS i.Mx6 Wayland .................. no
- EGLFS RCAR ........................... no
- EGLFS EGLDevice ...................... yes
- EGLFS GBM ............................ no
- EGLFS VSP2 ........................... no
- EGLFS Mali ........................... no
- EGLFS Raspberry Pi ................... no
- EGLFS X11 ............................ yes
- LinuxFB ................................ yes
- VNC .................................... yes
- Qt Sql:
- SQL item models ........................ yes
- Qt Widgets:
- GTK+ ................................... no
- Styles ................................. Fusion Windows
- Qt PrintSupport:
- CUPS ................................... yes
- Qt Sql Drivers:
- DB2 (IBM) .............................. no
- InterBase .............................. no
- MySql .................................. yes
- OCI (Oracle) ........................... no
- ODBC ................................... no
- PostgreSQL ............................. yes
- SQLite2 ................................ no
- SQLite ................................. yes
- Using system provided SQLite ......... no
- TDS (Sybase) ........................... no
- Qt Testlib:
- Tester for item models ................. yes
- Serial Port:
- ntddmodm ............................... no
- Qt SerialBus:
- Socket CAN ............................. yes
- Socket CAN FD .......................... yes
- SerialPort Support ..................... yes
- Further Image Formats:
- JasPer ................................. no
- MNG .................................... no
- TIFF ................................... yes
- Using system libtiff ................. yes
- WEBP ................................... yes
- Using system libwebp ................. no
- Qt QML:
- QML network support .................... yes
- QML debugging and profiling support .... yes
- QML just-in-time compiler .............. yes
- QML sequence object .................... yes
- QML XML http request ................... yes
- QML Locale ............................. yes
- Qt QML Models:
- QML list model ......................... yes
- QML delegate model ..................... yes
- Qt Quick:
- Direct3D 12 ............................ no
- AnimatedImage item ..................... yes
- Canvas item ............................ yes
- Support for Qt Quick Designer .......... yes
- Flipable item .......................... yes
- GridView item .......................... yes
- ListView item .......................... yes
- TableView item ......................... yes
- Path support ........................... yes
- PathView item .......................... yes
- Positioner items ....................... yes
- Repeater item .......................... yes
- ShaderEffect item ...................... yes
- Sprite item ............................ yes
- QtQuick3D:
- Assimp ................................. yes
- System Assimp .......................... no
- Qt Scxml:
- ECMAScript data model for QtScxml ...... yes
- Qt Gamepad:
- SDL2 ................................... no
- Qt 3D:
- Assimp ................................. yes
- System Assimp .......................... no
- Output Qt3D GL traces .................. no
- Use SSE2 instructions .................. yes
- Use AVX2 instructions .................. no
- Aspects:
- Render aspect ........................ yes
- Input aspect ......................... yes
- Logic aspect ......................... yes
- Animation aspect ..................... yes
- Extras aspect ........................ yes
- Qt 3D Renderers:
- OpenGL Renderer ........................ yes
- RHI Renderer ........................... no
- Qt 3D GeometryLoaders:
- Autodesk FBX ........................... no
- Qt Wayland Client ........................ no
- Qt Wayland Compositor .................... no
- Qt Bluetooth:
- BlueZ .................................. no
- BlueZ Low Energy ....................... no
- Linux Crypto API ....................... no
- Native Win32 Bluetooth ................. no
- WinRT Bluetooth API (desktop & UWP) .... no
- WinRT advanced bluetooth low energy API (desktop & UWP) . no
- Qt Sensors:
- sensorfw ............................... no
- Qt Quick Controls 2:
- Styles ................................. Default Fusion Imagine Material Universal
- Qt Quick Templates 2:
- Hover support .......................... yes
- Multi-touch support .................... yes
- Qt Positioning:
- Gypsy GPS Daemon ....................... no
- WinRT Geolocation API .................. no
- Qt Location:
- Qt.labs.location experimental QML plugin . yes
- Geoservice plugins:
- OpenStreetMap ........................ yes
- HERE ................................. yes
- Esri ................................. yes
- Mapbox ............................... yes
- MapboxGL ............................. yes
- Itemsoverlay ......................... yes
- QtXmlPatterns:
- XML schema support ..................... yes
- Qt Multimedia:
- ALSA ................................... yes
- GStreamer 1.0 .......................... no
- GStreamer 0.10 ......................... no
- Video for Linux ........................ yes
- OpenAL ................................. no
- PulseAudio ............................. yes
- Resource Policy (libresourceqt5) ....... no
- Windows Audio Services ................. no
- DirectShow ............................. no
- Windows Media Foundation ............... no
- Qt TextToSpeech:
- Flite .................................. no
- Flite with ALSA ........................ no
- Speech Dispatcher ...................... no
- Qt Tools:
- Qt Assistant ........................... yes
- Qt Designer ............................ yes
- Qt Distance Field Generator ............ yes
- kmap2qmap .............................. yes
- Qt Linguist ............................ yes
- Mac Deployment Tool .................... no
- makeqpf ................................ yes
- pixeltool .............................. yes
- qdbus .................................. yes
- qev .................................... yes
- Qt Attributions Scanner ................ yes
- qtdiag ................................. yes
- qtpaths ................................ yes
- qtplugininfo ........................... yes
- Windows deployment tool ................ no
- WinRT Runner Tool ...................... no
- Qt Tools:
- QDoc ................................... no
- Qt WebEngine Build Tools:
- Use System Ninja ....................... yes
- Use System Gn .......................... no
- Jumbo Build Merge Limit ................ 8
- Developer build ........................ no
- Sanitizer .............................. no
- QtWebEngine required system libraries:
- fontconfig ........................... yes
- dbus ................................. no
- nss .................................. no
- khr .................................. yes
- glibc ................................ yes
- Optional system libraries used:
- re2 .................................. no
- icu .................................. no
- libwebp, libwebpmux and libwebpdemux . no
- opus ................................. no
- ffmpeg ............................... no
- libvpx ............................... no
- snappy ............................... no
- glib ................................. yes
- zlib ................................. yes
- minizip .............................. no
- libevent ............................. yes
- jsoncpp .............................. no
- protobuf ............................. no
- libxml2 and libxslt .................. no
- lcms2 ................................ no
- png .................................. yes
- JPEG ................................. yes
- harfbuzz ............................. no
- freetype ............................. yes
-
- Note: Also available for Linux: linux-clang linux-icc
-
- Note: Using static linking will disable the use of dynamically
- loaded plugins. Make sure to import all needed static plugins,
- or compile needed modules into the library.
-
- Note: When linking against OpenSSL, you can override the default
- library names through OPENSSL_LIBS.
- For example:
- OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto' ./configure -openssl-linked
-
- Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
-
- Note: The following modules are not being compiled in this configuration:
- webenginecore
- webengine
- webenginewidgets
- pdf
- pdfwidgets
-
- WARNING: Feature static_runtime is insignificant in this configuration, ignoring related command line option(s).
-
- WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
-
- Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation.
- On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
- On macOS, you can use Homebrew's llvm package.
- On Windows, you must set LLVM_INSTALL_DIR to the installation path.
- WARNING: Tool gperf is required to build QtWebEngine.
- WARNING: Tool gperf is required to build QtPdf.
- WARNING: QtWebEngine will not be built.
- WARNING: QtPdf will not be built.
- Qt is now configured for building. Just run 'gmake'.
- Once everything is built, you must run 'gmake install'.
- Qt will be installed into '/opt/Qt5.15.2-static'.
- Prior to reconfiguration, make sure you remove any leftovers from
- the previous build.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。