当前位置:   article > 正文

Feature ‘openssl-linked‘ was enabled, but the pre-condition ‘!features.securetransport && !features._error: feature 'openssl-linked' was enabled, but t

error: feature 'openssl-linked' was enabled, but the pre-condition '!feature
./configure -static -static-runtime -openssl-linked
  1. Note: Also available for Linux: linux-clang linux-icc
  2. Note: Using static linking will disable the use of dynamically
  3. loaded plugins. Make sure to import all needed static plugins,
  4. or compile needed modules into the library.
  5. Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
  6. Note: The following modules are not being compiled in this configuration:
  7. webenginecore
  8. webengine
  9. webenginewidgets
  10. pdf
  11. pdfwidgets
  12. WARNING: Feature static_runtime is insignificant in this configuration, ignoring related command line option(s).
  13. WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
  14. Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation.
  15. On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
  16. On macOS, you can use Homebrew's llvm package.
  17. On Windows, you must set LLVM_INSTALL_DIR to the installation path.
  18. WARNING: Tool gperf is required to build QtWebEngine.
  19. WARNING: Tool gperf is required to build QtPdf.
  20. WARNING: QtWebEngine will not be built.
  21. WARNING: QtPdf will not be built.
  22. ERROR: Feature 'openssl-linked' was enabled, but the pre-condition '!features.securetransport && !features.schannel && libs.openssl' failed.
  23. Check config.log for details.

config.log

  1. looking for library openssl
  2. Trying source 0 (type openssl) of library openssl ...
  3. $OPENSSL_LIBS is not set.
  4. => source produced no result.
  5. Trying source 1 (type inline) of library openssl ...
  6. => source failed condition 'config.win32'.
  7. Trying source 2 (type inline) of library openssl ...
  8. => source failed condition 'config.msvc'.
  9. Trying source 3 (type inline) of library openssl ...
  10. => source failed condition 'config.android'.
  11. Trying source 4 (type inline) of library openssl ...
  12. + 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
  13. + cd /home/yeqiang/Downloads/qt-everywhere-src-5.15.2/config.tests/openssl && MAKEFLAGS= /usr/bin/gmake clean && MAKEFLAGS= /usr/bin/gmake
  14. > rm -f main.o
  15. > rm -f *~ core *.core
  16. > 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
  17. > main.cpp:5:4: error: #error OpenSSL >= 1.1.1 is required
  18. > 5 | # error OpenSSL >= 1.1.1 is required
  19. > | ^~~~~
  20. > gmake: *** [Makefile:169: main.o] Error 1
  21. => source failed verification.
  22. test config.qtbase_network.libraries.openssl FAILED

 error OpenSSL >= 1.1.1 is required

 

下载openssl1.1.1,手动编译

  1. wget https://www.openssl.org/source/openssl-1.1.1j.tar.gz
  2. tar -xf openssl-1.1.1j.tar.gz
  3. cd openssl-1.1.1j/
  4. ./config --prefix=/opt/openssl
  1. Operating system: x86_64-whatever-linux2
  2. Configuring OpenSSL version 1.1.1j (0x101010afL) for linux-x86_64
  3. Using os-specific seed configuration
  4. Creating configdata.pm
  5. Creating Makefile
  6. **********************************************************************
  7. *** ***
  8. *** OpenSSL has been successfully configured ***
  9. *** ***
  10. *** If you encounter a problem while building, please open an ***
  11. *** issue on GitHub <https://github.com/openssl/openssl/issues> ***
  12. *** and include the output from the following command: ***
  13. *** ***
  14. *** perl configdata.pm --dump ***
  15. *** ***
  16. *** (If you are new to OpenSSL, you might want to consult the ***
  17. *** 'Troubleshooting' section in the INSTALL file first) ***
  18. *** ***
  1. make -j6
  2. 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
  1. Configure summary:
  2. Build type: linux-g++ (x86_64, CPU features: mmx sse sse2)
  3. Compiler: gcc 9.3.1
  4. 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
  5. Build options:
  6. Mode ................................... release
  7. Optimize release build for size ........ no
  8. Building shared libraries .............. no
  9. Using C standard ....................... C11
  10. Using C++ standard ..................... C++17
  11. Using ccache ........................... no
  12. Using new DTAGS ........................ yes
  13. Relocatable ............................ no
  14. Using precompiled headers .............. yes
  15. Using LTCG ............................. no
  16. Target compiler supports:
  17. SSE .................................. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2
  18. AVX .................................. AVX AVX2
  19. AVX512 ............................... F ER CD PF DQ BW VL IFMA VBMI
  20. Other x86 ............................ AES F16C RDRAND SHA
  21. Intrinsics without -mXXX option ...... yes
  22. Build parts ............................ libs examples tools
  23. Qt modules and options:
  24. Qt Concurrent .......................... yes
  25. Qt D-Bus ............................... yes
  26. Qt D-Bus directly linked to libdbus .... no
  27. Qt Gui ................................. yes
  28. Qt Network ............................. yes
  29. Qt Sql ................................. yes
  30. Qt Testlib ............................. yes
  31. Qt Widgets ............................. yes
  32. Qt Xml ................................. yes
  33. Support enabled for:
  34. Using pkg-config ....................... yes
  35. udev ................................... yes
  36. Using system zlib ...................... yes
  37. Zstandard support ...................... no
  38. Qt Core:
  39. DoubleConversion ....................... yes
  40. Using system DoubleConversion ........ no
  41. GLib ................................... yes
  42. iconv .................................. no
  43. ICU .................................... yes
  44. Built-in copy of the MIME database ..... yes
  45. Tracing backend ........................ <none>
  46. Logging backends:
  47. journald ............................. no
  48. syslog ............................... no
  49. slog2 ................................ no
  50. PCRE2 .................................. yes
  51. Using system PCRE2 ................... yes
  52. Qt Network:
  53. getifaddrs() ........................... yes
  54. IPv6 ifname ............................ yes
  55. libproxy ............................... no
  56. Linux AF_NETLINK ....................... yes
  57. OpenSSL ................................ yes
  58. Qt directly linked to OpenSSL ........ yes
  59. OpenSSL 1.1 ............................ yes
  60. DTLS ................................... yes
  61. OCSP-stapling .......................... yes
  62. SCTP ................................... no
  63. Use system proxies ..................... yes
  64. GSSAPI ................................. yes
  65. Qt Gui:
  66. Accessibility .......................... yes
  67. FreeType ............................... yes
  68. Using system FreeType ................ yes
  69. HarfBuzz ............................... yes
  70. Using system HarfBuzz ................ no
  71. Fontconfig ............................. yes
  72. Image formats:
  73. GIF .................................. yes
  74. ICO .................................. yes
  75. JPEG ................................. yes
  76. Using system libjpeg ............... yes
  77. PNG .................................. yes
  78. Using system libpng ................ yes
  79. Text formats:
  80. HtmlParser ........................... yes
  81. CssParser ............................ yes
  82. OdfWriter ............................ yes
  83. MarkdownReader ....................... yes
  84. Using system libmd4c ............... no
  85. MarkdownWriter ....................... yes
  86. EGL .................................... yes
  87. OpenVG ................................. no
  88. OpenGL:
  89. Desktop OpenGL ....................... yes
  90. OpenGL ES 2.0 ........................ no
  91. OpenGL ES 3.0 ........................ no
  92. OpenGL ES 3.1 ........................ no
  93. OpenGL ES 3.2 ........................ no
  94. Vulkan ................................. no
  95. Session Management ..................... yes
  96. Features used by QPA backends:
  97. evdev .................................. yes
  98. libinput ............................... yes
  99. INTEGRITY HID .......................... no
  100. mtdev .................................. no
  101. tslib .................................. no
  102. xkbcommon .............................. yes
  103. X11 specific:
  104. XLib ................................. yes
  105. XCB Xlib ............................. yes
  106. EGL on X11 ........................... yes
  107. xkbcommon-x11 ........................ no
  108. QPA backends:
  109. DirectFB ............................... no
  110. EGLFS .................................. yes
  111. EGLFS details:
  112. EGLFS OpenWFD ........................ no
  113. EGLFS i.Mx6 .......................... no
  114. EGLFS i.Mx6 Wayland .................. no
  115. EGLFS RCAR ........................... no
  116. EGLFS EGLDevice ...................... yes
  117. EGLFS GBM ............................ no
  118. EGLFS VSP2 ........................... no
  119. EGLFS Mali ........................... no
  120. EGLFS Raspberry Pi ................... no
  121. EGLFS X11 ............................ yes
  122. LinuxFB ................................ yes
  123. VNC .................................... yes
  124. Qt Sql:
  125. SQL item models ........................ yes
  126. Qt Widgets:
  127. GTK+ ................................... no
  128. Styles ................................. Fusion Windows
  129. Qt PrintSupport:
  130. CUPS ................................... yes
  131. Qt Sql Drivers:
  132. DB2 (IBM) .............................. no
  133. InterBase .............................. no
  134. MySql .................................. yes
  135. OCI (Oracle) ........................... no
  136. ODBC ................................... no
  137. PostgreSQL ............................. yes
  138. SQLite2 ................................ no
  139. SQLite ................................. yes
  140. Using system provided SQLite ......... no
  141. TDS (Sybase) ........................... no
  142. Qt Testlib:
  143. Tester for item models ................. yes
  144. Serial Port:
  145. ntddmodm ............................... no
  146. Qt SerialBus:
  147. Socket CAN ............................. yes
  148. Socket CAN FD .......................... yes
  149. SerialPort Support ..................... yes
  150. Further Image Formats:
  151. JasPer ................................. no
  152. MNG .................................... no
  153. TIFF ................................... yes
  154. Using system libtiff ................. yes
  155. WEBP ................................... yes
  156. Using system libwebp ................. no
  157. Qt QML:
  158. QML network support .................... yes
  159. QML debugging and profiling support .... yes
  160. QML just-in-time compiler .............. yes
  161. QML sequence object .................... yes
  162. QML XML http request ................... yes
  163. QML Locale ............................. yes
  164. Qt QML Models:
  165. QML list model ......................... yes
  166. QML delegate model ..................... yes
  167. Qt Quick:
  168. Direct3D 12 ............................ no
  169. AnimatedImage item ..................... yes
  170. Canvas item ............................ yes
  171. Support for Qt Quick Designer .......... yes
  172. Flipable item .......................... yes
  173. GridView item .......................... yes
  174. ListView item .......................... yes
  175. TableView item ......................... yes
  176. Path support ........................... yes
  177. PathView item .......................... yes
  178. Positioner items ....................... yes
  179. Repeater item .......................... yes
  180. ShaderEffect item ...................... yes
  181. Sprite item ............................ yes
  182. QtQuick3D:
  183. Assimp ................................. yes
  184. System Assimp .......................... no
  185. Qt Scxml:
  186. ECMAScript data model for QtScxml ...... yes
  187. Qt Gamepad:
  188. SDL2 ................................... no
  189. Qt 3D:
  190. Assimp ................................. yes
  191. System Assimp .......................... no
  192. Output Qt3D GL traces .................. no
  193. Use SSE2 instructions .................. yes
  194. Use AVX2 instructions .................. no
  195. Aspects:
  196. Render aspect ........................ yes
  197. Input aspect ......................... yes
  198. Logic aspect ......................... yes
  199. Animation aspect ..................... yes
  200. Extras aspect ........................ yes
  201. Qt 3D Renderers:
  202. OpenGL Renderer ........................ yes
  203. RHI Renderer ........................... no
  204. Qt 3D GeometryLoaders:
  205. Autodesk FBX ........................... no
  206. Qt Wayland Client ........................ no
  207. Qt Wayland Compositor .................... no
  208. Qt Bluetooth:
  209. BlueZ .................................. no
  210. BlueZ Low Energy ....................... no
  211. Linux Crypto API ....................... no
  212. Native Win32 Bluetooth ................. no
  213. WinRT Bluetooth API (desktop & UWP) .... no
  214. WinRT advanced bluetooth low energy API (desktop & UWP) . no
  215. Qt Sensors:
  216. sensorfw ............................... no
  217. Qt Quick Controls 2:
  218. Styles ................................. Default Fusion Imagine Material Universal
  219. Qt Quick Templates 2:
  220. Hover support .......................... yes
  221. Multi-touch support .................... yes
  222. Qt Positioning:
  223. Gypsy GPS Daemon ....................... no
  224. WinRT Geolocation API .................. no
  225. Qt Location:
  226. Qt.labs.location experimental QML plugin . yes
  227. Geoservice plugins:
  228. OpenStreetMap ........................ yes
  229. HERE ................................. yes
  230. Esri ................................. yes
  231. Mapbox ............................... yes
  232. MapboxGL ............................. yes
  233. Itemsoverlay ......................... yes
  234. QtXmlPatterns:
  235. XML schema support ..................... yes
  236. Qt Multimedia:
  237. ALSA ................................... yes
  238. GStreamer 1.0 .......................... no
  239. GStreamer 0.10 ......................... no
  240. Video for Linux ........................ yes
  241. OpenAL ................................. no
  242. PulseAudio ............................. yes
  243. Resource Policy (libresourceqt5) ....... no
  244. Windows Audio Services ................. no
  245. DirectShow ............................. no
  246. Windows Media Foundation ............... no
  247. Qt TextToSpeech:
  248. Flite .................................. no
  249. Flite with ALSA ........................ no
  250. Speech Dispatcher ...................... no
  251. Qt Tools:
  252. Qt Assistant ........................... yes
  253. Qt Designer ............................ yes
  254. Qt Distance Field Generator ............ yes
  255. kmap2qmap .............................. yes
  256. Qt Linguist ............................ yes
  257. Mac Deployment Tool .................... no
  258. makeqpf ................................ yes
  259. pixeltool .............................. yes
  260. qdbus .................................. yes
  261. qev .................................... yes
  262. Qt Attributions Scanner ................ yes
  263. qtdiag ................................. yes
  264. qtpaths ................................ yes
  265. qtplugininfo ........................... yes
  266. Windows deployment tool ................ no
  267. WinRT Runner Tool ...................... no
  268. Qt Tools:
  269. QDoc ................................... no
  270. Qt WebEngine Build Tools:
  271. Use System Ninja ....................... yes
  272. Use System Gn .......................... no
  273. Jumbo Build Merge Limit ................ 8
  274. Developer build ........................ no
  275. Sanitizer .............................. no
  276. QtWebEngine required system libraries:
  277. fontconfig ........................... yes
  278. dbus ................................. no
  279. nss .................................. no
  280. khr .................................. yes
  281. glibc ................................ yes
  282. Optional system libraries used:
  283. re2 .................................. no
  284. icu .................................. no
  285. libwebp, libwebpmux and libwebpdemux . no
  286. opus ................................. no
  287. ffmpeg ............................... no
  288. libvpx ............................... no
  289. snappy ............................... no
  290. glib ................................. yes
  291. zlib ................................. yes
  292. minizip .............................. no
  293. libevent ............................. yes
  294. jsoncpp .............................. no
  295. protobuf ............................. no
  296. libxml2 and libxslt .................. no
  297. lcms2 ................................ no
  298. png .................................. yes
  299. JPEG ................................. yes
  300. harfbuzz ............................. no
  301. freetype ............................. yes
  302. Note: Also available for Linux: linux-clang linux-icc
  303. Note: Using static linking will disable the use of dynamically
  304. loaded plugins. Make sure to import all needed static plugins,
  305. or compile needed modules into the library.
  306. Note: When linking against OpenSSL, you can override the default
  307. library names through OPENSSL_LIBS.
  308. For example:
  309. OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto' ./configure -openssl-linked
  310. Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
  311. Note: The following modules are not being compiled in this configuration:
  312. webenginecore
  313. webengine
  314. webenginewidgets
  315. pdf
  316. pdfwidgets
  317. WARNING: Feature static_runtime is insignificant in this configuration, ignoring related command line option(s).
  318. WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
  319. Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation.
  320. On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
  321. On macOS, you can use Homebrew's llvm package.
  322. On Windows, you must set LLVM_INSTALL_DIR to the installation path.
  323. WARNING: Tool gperf is required to build QtWebEngine.
  324. WARNING: Tool gperf is required to build QtPdf.
  325. WARNING: QtWebEngine will not be built.
  326. WARNING: QtPdf will not be built.
  327. Qt is now configured for building. Just run 'gmake'.
  328. Once everything is built, you must run 'gmake install'.
  329. Qt will be installed into '/opt/Qt5.15.2-static'.
  330. Prior to reconfiguration, make sure you remove any leftovers from
  331. the previous build.

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/562561
推荐阅读
相关标签
  

闽ICP备14008679号