Closed szigetics closed 2 years ago
the final error is:
CMake Error at /Users/cszigeti/.conan/data/qt/6.2.1/my/channel/build/d0b2691e96b484d7fd45c9e009592ceeb50d6431/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:559 (add_executable):
Target "linguist" links to target "Qt::UiToolsPrivate" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
So, indeed, linguist requires UiToolsPrivate
UiTools is part of the designer
feature, which is built only if PNG feature is enabled
The easiest solution is to enable png, or disable qttools. If you actually need to use qttools without png,please report the issue on https://bugreports.qt.io/
Thank you for the quick response @ericLemanissier .
Should I open a PR which would make the conan create
call fail early, stating that this set of options (-o qt:tools=True -o qt:with_libpng=False
) is an invalid configuration? Or could we have a more general dependency check (which wouldn't explicitly check only for this invalid combination but possible others as well)?
We'd have to check for which past version it is true, and watch for future versions if it stays true. It's a burden I'd rather not take, if the only potential win is a clearer error message.
Package and Environment Details (include every applicable attribute)
Conan profile (output of
conan profile show default
orconan profile show <profile>
if custom profile is in use)Steps to reproduce (Include if Applicable)
macOS x86_64 build fails when
-o qt:gui=True -o qt:with_libpng=False
conan options are used. The build is passing when-o qt:gui=True -o qt:with_libpng=True
conan options are used, so it seems like thatqt:with_libpng=False
is causing the build error.The full conan create command that I used :
Logs (Include/Attach if Applicable)
I cannot share the full log, because it is too long so I tried to share the relevant section only :
Click to expand log
``` qt/6.2.1@my/channel: Building your package in /Users/cszigeti/.conan/data/qt/6.2.1/my/channel/build/d0b2691e96b484d7fd45c9e009592ceeb50d6431 qt/6.2.1@my/channel: Generator pkg_config created libcrypto.pc qt/6.2.1@my/channel: Generator pkg_config created libssl.pc qt/6.2.1@my/channel: Generator pkg_config created openssl.pc qt/6.2.1@my/channel: Generator pkg_config created libpcre2-32.pc qt/6.2.1@my/channel: Generator pkg_config created libpcre2-16.pc qt/6.2.1@my/channel: Generator pkg_config created libpcre2-8.pc qt/6.2.1@my/channel: Generator pkg_config created libpcre2-posix.pc qt/6.2.1@my/channel: Generator pkg_config created libpcre2.pc qt/6.2.1@my/channel: Generator pkg_config created double-conversion.pc qt/6.2.1@my/channel: Generator pkg_config created freetype2.pc qt/6.2.1@my/channel: Generator pkg_config created libturbojpeg.pc qt/6.2.1@my/channel: Generator pkg_config created libjpeg.pc qt/6.2.1@my/channel: Generator pkg_config created libjpeg-turbo.pc qt/6.2.1@my/channel: Generator pkg_config created opengl.pc qt/6.2.1@my/channel: Generator pkg_config created bzip2.pc qt/6.2.1@my/channel: Generator pkg_config created libpng.pc qt/6.2.1@my/channel: Generator pkg_config created libbrotlicommon.pc qt/6.2.1@my/channel: Generator pkg_config created libbrotlienc.pc qt/6.2.1@my/channel: Generator pkg_config created libbrotlidec.pc qt/6.2.1@my/channel: Generator pkg_config created brotli.pc qt/6.2.1@my/channel: Generator pkg_config created zlib.pc qt/6.2.1@my/channel: Generator cmake_find_package created FindOpenSSL.cmake qt/6.2.1@my/channel: Generator cmake_find_package created Findpcre2.cmake qt/6.2.1@my/channel: Generator cmake_find_package created Finddouble-conversion.cmake qt/6.2.1@my/channel: Generator cmake_find_package created FindFreetype.cmake qt/6.2.1@my/channel: Generator cmake_find_package created Findlibjpeg-turbo.cmake qt/6.2.1@my/channel: Generator cmake_find_package created Findopengl_system.cmake qt/6.2.1@my/channel: Generator cmake_find_package created FindBZip2.cmake qt/6.2.1@my/channel: Generator cmake_find_package created FindPNG.cmake qt/6.2.1@my/channel: Generator cmake_find_package created FindBrotli.cmake qt/6.2.1@my/channel: Generator cmake_find_package created FindZLIB.cmake qt/6.2.1@my/channel: Generator cmake created conanbuildinfo.cmake qt/6.2.1@my/channel: Aggregating env generators qt/6.2.1@my/channel: Calling build() WARN: replace_in_file didn't find pattern '$<$