You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can be observed in recipes/qt/6.x.x/test_package/build/gcc-14-x86_64-gnu20-release/generators/Qt6-release-x86_64-data.cmake when building the package.
For linux
qt::QODBCDriverPlugin expose lib ODBC::ODBC
For windows
qt::QODBCDriverPlugin expose lib odbc32
for both
Qt6::QODBCDriverPlugin expose lib Qt6::Core
Code in fault
if self.options.with_odbc:
_create_plugin("QODBCDriverPlugin", "qsqlodbc", "sqldrivers", [])
if self.settings.os != "Windows":
self.cpp_info.components["QODBCDriverPlugin"].requires.append("odbc::odbc")
else:
self.cpp_info.components["QODBCDriverPlugin"].system_libs.append("odbc32")
Description
QODBCDriverPlugin has two component:
which mean that in your code you'll have to do something like:
This can be observed in
recipes/qt/6.x.x/test_package/build/gcc-14-x86_64-gnu20-release/generators/Qt6-release-x86_64-data.cmake
when building the package.For linux
qt::QODBCDriverPlugin expose lib ODBC::ODBC
For windows
qt::QODBCDriverPlugin expose lib odbc32
for both
Qt6::QODBCDriverPlugin expose lib Qt6::Core
Code in fault
When appending the required lib (either obdc::obdc or obdc32), components name is lack prefix qt used by _create_plugin
All other instances of libs append uses the prefix qt, ex:
Easiest fix would be to just at the prefix qt to QODBCDriverPlugin when adding requirements outside of _create_plugin().
Package and Environment Details
Conan profile
Host profile:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu20
compiler.libcxx=libstdc++11
compiler.version=14
os=Linux
[conf]
Build profile:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu20
compiler.libcxx=libstdc++11
compiler.version=14
os=Linux
[conf]
Steps to reproduce
conan create --version 6.7.3 recipes/qt/6.x.x -c:a qt/6*:tools.cmake.cmaketoolchain:extra_variables="{'CMAKE_DISABLE_FIND_PACKAGE_Libb2':'ON'}
note I'm using CMAKE_DISABLE_FIND_PACKAGE_Libb2 because I have the lib on my system, see #26551
Logs
Partial log, just before the test package is build. Alternatively, anytime Qt is used by conan by any other project.
Click to expand log
The text was updated successfully, but these errors were encountered: