Fsu0413 / QtCompile

Personal build of Qt5 onwards, with SSL builtin. Multiple configuration available.
https://build-qt.fsu0413.me/
97 stars 12 forks source link

WrapOpenSSL could not be found #25

Closed x-tools-author closed 4 months ago

x-tools-author commented 5 months ago

I use the kit(Qt6.5.3-Windows-x86_64-VS2022-17.9.0-staticFull-20240216) to open a project and then error occurred:

but it set Qt6Core_FOUND to FALSE so package "Qt6Core" is considered to be
NOT FOUND.  Reason given by package:

Qt6Core could not be found because dependency WrapOpenSSL could not be
found.

Configuring with --debug-find-pkg=WrapOpenSSL might reveal details why the
package was not found.

Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
of the path variables that find_package uses to try and find the package.
Fsu0413 commented 5 months ago

Should I try to stop distributing static versions with OpenSSL... It caused too much more trouble than I thought of.


Did you use "-DQt6_DIR=<path>" or "-DCMAKE_PREFIX_PATH=<path>" for specifying path of Qt? I recommend the latter one since it can automatically find the libraries in lib directory.

x-tools-author commented 4 months ago

I specify nothing, just using qtcreator default configuration, but bot Qt6_DIR and CMAKE_PREFIX_PATH will be set automatically by QtCreator

Fsu0413 commented 4 months ago

So FindWrapOpenSSL.cmake also searches for the header files.


For Windows / macOS platform I'd stop distributing static versions with OpenSSL. This will be done in next build (no plan for now). I'll close this issue when next build is uploaded.

Fsu0413 commented 4 months ago

https://github.com/Fsu0413/Fs-scripts/commit/fcc577ccba58da64ad5f7507b23c6b23ee6c9211

Fsu0413 commented 4 months ago

Rebuild uploaded.


重新构建了,上传完了。