[Qbs] Failed build the project with QBS 1.22.1

Карелин Павел hkarel at yandex.ru
Mon May 2 18:27:28 CEST 2022


I am using the construct:

Product {
     name: "SharedLib"

     property var exportIncludePaths: [
         "./",
         "./shared",
     ]

     Export {
         Depends { name: "cpp" }
         cpp.includePaths: product.exportIncludePaths
     }
}

I got this recipe here in the mailing list.. Perhaps this is your advice 
Christian (I don’t remember exactly now).
What construct should I use now? Like this?

     cpp.includePaths [
         "./",
         "./shared",
     ];

     Export {
         Depends { name: "cpp" }
         cpp.includePaths: [exportingProduct.cpp.includePaths]
     }

--
Pavel


02.05.2022 10:59, Christian Kandeler пишет:
> On 4/29/22 17:27, Карелин Павел wrote:
>> [ ... ]
>> Now the compiler does not see the header file "shared/list.h" from 
>> the SharedLib dependency.
>> How to fix the problem?
>>
> You are likely using "product" in SharedLib's Export item where 
> "exportingProduct" should be used.
>
>
> Christian
>
> _______________________________________________
> Qbs mailing list
> Qbs at qt-project.org
> https://lists.qt-project.org/listinfo/qbs



More information about the Qbs mailing list