[Qbs] qbspkgconfig in qbs 2.3.1

Иван Комиссаров abbapoh at gmail.com
Fri Jun 7 23:56:37 CEST 2024


The «fallback» provider will be removed in 2.4.

Ivan

> 7 июня 2024 г., в 22:40, Jochen Becher <jochen_becher at gmx.de> написал(а):
> 
> 
> By total accident, I discovered different solution:
> 
> Depends { name: "taglib"; enableFallback: true }
> 
> Is using the property enableFallback an official way to use pkg-config
> or will that be removed in a future version of qbs?
> 
> Regards, Jochen
> 
> 
> Am Sonntag, dem 02.06.2024 um 19:04 +0300 schrieb Иван Комиссаров:
>> Hello!
>> 
>> Short answer:
>> 
>> Use qbsModuleProviders: ["Qt", "qbspkgconfig"]
>> 
>> A longer answer: 
>> 
>> Setting qbsModuleProviders property disables «named» lookup for
>> providers when Qbs tries to guess provider name from the module name
>> (e.g. «Qt» from «Qt.core») .
>> 
>> The "named" lookup exists for backward compatibility and we advise
>> listing providers explicitly in the new node.
>> 
>> Ivan
>> 
>>> 1 июня 2024 г., в 13:21, Jochen Becher via Qbs <qbs at qt-project.org>
>>> написал(а):
>>> 
>>> Hi,
>>> 
>>> I tried to build a project for the first time after a couple of
>>> years
>>> and qbs versions. I now use QtCreator 13.0.1 with qbs 2.3.1.
>>> 
>>> The product is a StaticLibrary and has dependencies
>>> 
>>> Depends { name: "Qt", submodules: ["core" , "gui"] }
>>> Depends { name: "taglib" }
>>> 
>>> In the past "taglib" has been resolved by the default fallback for
>>> pkgconfig.
>>> 
>>> I added
>>> 
>>> qbsModuleProviders: "qbspkgconfig"
>>> 
>>> in the hope to get the correct settings for taglib. But now, qbs
>>> fails
>>> with the following error message:
>>> 
>>> mediadb-extras.qbs:13: warning: Dependency 'Qt.core' not found for
>>> product 'mediadb-extras'.
>>> 
>>> What I am doing wrong? I couldn't find an example showing
>>> dependencies
>>> to Qt and a pkgconfig provided library.
>>> 
>>> I am running on Ubuntu 22.04 using Qt 5.15.2.
>>> 
>>> Regards, Jochen
>>> 
>>> _______________________________________________
>>> Qbs mailing list
>>> Qbs at qt-project.org
>>> https://lists.qt-project.org/listinfo/qbs
>> 
> 



More information about the Qbs mailing list