-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qt: permit usage of system libjpeg/libjpeg-turbo #24644
base: master
Are you sure you want to change the base?
Conversation
This enables usage, particularly on Linux, of using the system native libjpeg equivalent library, whether the system provides libjpeg or libjpeg-turbo.
For Windows, this leaves the door open for no system package being available. It does the same on Linux as well, if neither |
Conan v1 pipeline ❌Failure in build 1 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. |
You can just use platform_requires for this purpose and leave the recipe as it is. Just add something like this to your profile:
|
Hi @mrjoel - as mentioned above, have you tried the suggested https://docs.conan.io/2.5/reference/config_files/profiles.html#platform-requires ? |
Summary
Changes to recipe: qt/6.x.x and qt/5.x.x
Motivation
This enables usage, particularly on Linux, of using the system native libjpeg equivalent library, whether the system provides libjpeg or libjpeg-turbo.
Details
Adding
system
as an allowed value for thewith_libjpeg
option enables subsequent processing and enabling of the Qt JPEG support, without having to build a specific library within Conan (and presumably vendor it with the application). This approach allows building using the native distribution provided jpeg variant and having it as a system dependency.The result is not incurring a Conan requires, while still allowing e.g.,
FEATURE_system_jpeg
to be enabled and have Qt configuration report jpeg support.