Re: [Qbs] Building code generator and its dependencies for a different architecture than the rest of the products

2020-03-20 Thread Иван Комиссаров
Ah, never mind, you should not since you’re not inheriting the project.profile > 20 марта 2020 г., в 19:53, Иван Комиссаров написал(а): > > This looks like a bug - this property is not set in Profile item context. > > Shouldn't you also set qbs.architecture to «x86_64» in the hostProfile ? >

Re: [Qbs] Building code generator and its dependencies for a different architecture than the rest of the products

2020-03-20 Thread Иван Комиссаров
This looks like a bug - this property is not set in Profile item context. Shouldn't you also set qbs.architecture to «x86_64» in the hostProfile ? > 20 марта 2020 г., в 17:01, Leon Buckel написал(а): > > Here's a small test project I set up that has the issue. Note that I have to > set

Re: [Qbs] Building code generator and its dependencies for a different architecture than the rest of the products

2020-03-20 Thread Richard Weickelt
> I think I almost got it to work. The problem I have now is that the app > seems to link against the wrong version of the library: > > ld: warning: ignoring file > /.../lib.eyJwcm9maWxlIjoiaG9zdFByb2ZpbGUifQ--.cd69e9f1/.tmp/lib, building > for iOS-arm64 but attempting to link with file built for

Re: [Qbs] Building code generator and its dependencies for a different architecture than the rest of the products

2020-03-20 Thread Christian Kandeler
On Fri, 20 Mar 2020 16:01:09 + Leon Buckel wrote: > I think I almost got it to work. The problem I have now is that the app seems > to link against the wrong version of the library: > ld: warning: ignoring file > /.../lib.eyJwcm9maWxlIjoiaG9zdFByb2ZpbGUifQ--.cd69e9f1/.tmp/lib, building for

Re: [Qbs] Building code generator and its dependencies for a different architecture than the rest of the products

2020-03-20 Thread Leon Buckel
Thanks Christian, that's really helpful! I think I almost got it to work. The problem I have now is that the app seems to link against the wrong version of the library: ld: warning: ignoring file /.../lib.eyJwcm9maWxlIjoiaG9zdFByb2ZpbGUifQ--.cd69e9f1/.tmp/lib, building for iOS-arm64 but

Re: [Qbs] Building code generator and its dependencies for a different architecture than the rest of the products

2020-03-20 Thread Christian Kandeler
On Fri, 20 Mar 2020 15:41:21 +0100 Christian Kandeler wrote: > Your app and build tool use normal Depends items for pulling in the library; > the matching should work automatically. Addendum: Of course, you also need to set the host profile in your build tool: CppApplication { //

Re: [Qbs] Building code generator and its dependencies for a different architecture than the rest of the products

2020-03-20 Thread Christian Kandeler
On Fri, 20 Mar 2020 14:10:49 + Leon Buckel wrote: > I have a project with the following products: > > * Shared library > * Code generator tool > * Application > > The code generator and application both depend on the shared library. The > build process is as follows: > > 1.

[Qbs] Building code generator and its dependencies for a different architecture than the rest of the products

2020-03-20 Thread Leon Buckel
Hi, I have a project with the following products: * Shared library * Code generator tool * Application The code generator and application both depend on the shared library. The build process is as follows: 1. Build the shared library 2. Build the code generator and link