Hi,
I try to use self compiled Qbs and QtCreator on Windows (MinGW not MSVC, no msys
or cygwin). I'm using a separate Qbs checkout, not the one delivered with QtCreator.
My first problem was while compiling QtCreator the linker looked for
libqbscore.a, but the file is named libqbscore1.a. Try
Hi,
I'm trying to build a repository for multiple libraries and applications, where
every product is located in an own submodule. Right now I'm at this point:
root/
- all.qbs
- libs/
- libs.qbs
- up.qbs
- lib1/
- lib1.qbs
- lib2/
- lib2.qbs
Lib2 needs lib1. The file contents a
Am 04.01.2019 um 10:21 schrieb Christian Kandeler:
On Thu, 3 Jan 2019 22:14:09 +0100
Björn Schäpers wrote:
I'm trying to build a repository for multiple libraries and applications, where
every product is located in an own submodule. Right now I'm at this point:
root/
- all.
Am 03.01.2019 um 22:36 schrieb Silvano Cerza:
I think it should be enough to delete up.qbs and remove references:
["../up.qbs"] from lib2.qbs.
Obviously if you export cpp.includePaths you must export a dependency to cpp.
Il giorno gio 3 gen 2019 alle ore 22:17 Björn Schäpers <ma
Hi,
I'm trying to incorporate Howard Hinnant's date library and he states
"mingw users: -lpthread and -lole32 are required"
So I tried
StaticLibrary {
files: ["date/include/date/*.h", "date/src/*.cpp"]
name: "date"
Depends { name: "cpp" }
cpp.cxxLanguageVer
Am 22.02.2020 um 09:56 schrieb Richard Weickelt:
You don't need a group here in the first place. Just
cpp.dynamicLibraries: {
var libs = [];
if(qbs.toolchain.contains("mingw"))
libs = libs.concat(["pthread", "ole32"] )
return libs;
}
Or to be more explicit: You **must** not u
Hi,
I have a lot of products which have spaces in their name. Until now everything
was fine, but now I want to access the property of one of my dependencies. How
to do that with a space in the name, or should spaces in the name be banned
completely?
Works:
DynamicLibrary {
name: "FooBar"
Am 26.06.2020 um 13:42 schrieb Christian Kandeler:
On Fri, 26 Jun 2020 13:14:11 +0200
Björn Schäpers wrote:
DynamicLibrary {
name: "FooBar"
}
CppApplication {
Depends { name: "cpp" }
Depends { name: "FooBar" }
cpp.defines = ["F
Hi,
I've added a AutotestRunner to my Project, but it does not show up in the
Creator, I think this is because it does not create a binary, right?
I've not looked into the code, but how feasible would it be to give the Creator
a fake executable to run the tests?
Another idea I had, but not
st build product X", if it's not a run target.
-Original Message-
From: "Björn Schäpers"
To: qbs@qt-project.org
Sent: Tue, 24 Nov 2020 9:21
Subject: [Qbs] AutotestRunner in QtCreator
Hi,
I've added a AutotestRunner to my Project, but it does not show up in the
Creator,
Am 24.11.2020 um 14:19 schrieb Richard Weickelt:
2. Build the AutorestRunner product explicitly. It will not show up under "run".
That's what I meant, I can not select it as a run target.
And I don't know how to say "just build product X", if it's not a run target.
In the Projects view, right-cl
Am 29.11.2020 um 12:37 schrieb Иван Комиссаров:
I personally use the «tests» tab (on the bottom panel) in QtCreator - it allows
to run all tests (similar to building AutotestRunner) as well as running tests
in single file.
Similar to AutotestRunner, QtC recognizes products with the tag «autotes
Hi,
I've tried to create a product which sets compiler warnings (because
cpp.warningLevel: "all" is not enough), and I want to be able to opt in some
more warnings. I found "Parameter" but I have no idea how to use it.
My product:
Product {
name: "All Warnings"
property stri
Hi,
I'm developing on Windows and have a 64 Bit Qt in my path, but because the
linker in 64 Bit mode is much slower than its 32 Bit counterpart I often develop
in 32 Bit. If I run the programs directly from the Creator everything is fine.
If I click build for the AutotestRunner it seems that
Am 01.12.2020 um 11:04 schrieb Christian Kandeler:
On 12/1/20 8:48 AM, Björn Schäpers wrote:
I've tried to create a product which sets compiler warnings (because
cpp.warningLevel: "all" is not enough), and I want to be able to opt in some
more warnings. I found "Parameter
Am 01.12.2020 um 10:50 schrieb Christian Kandeler:
On 12/1/20 8:59 AM, Björn Schäpers wrote:
I'm developing on Windows and have a 64 Bit Qt in my path, but because
the linker in 64 Bit mode is much slower than its 32 Bit counterpart I
often develop in 32 Bit. If I run the programs dir
Hi there,
my setup is msys2 gcc in 64 and 32 bit, a from msys installed protobuf, and a
self compiled qbs. The protobuf module does not find the header or the
libraries, it seems the search path is just empty, and for the libraries it
looks for the wrong files. It searches protobuf.lib, but th
currently working on the feature to implement this .
https://codereview.qt-project.org/c/qbs/qbs/+/315910
https://codereview.qt-project.org/c/qbs/qbs/+/350654
Ivan
21 июля 2021 г., в 03:07, Björn Schäpers написал(а):
Hi there,
my setup is msys2 gcc in 64 and 32 bit, a from msys installed
Hi there,
we have a static library which uses Protobuf, thus generates the headers, and
compiles the code directly into it.
Static Library {
...
Export {
Depends { name: "cpp" }
Depends { name: "protobuf.cpp" }
cpp.systemIncludePaths: [product.protobuf.cpp.outputDir]
}
}
And
Am 04.11.2021 um 12:45 schrieb Christian Kandeler:
On 11/4/21 11:22, Björn Schäpers wrote:
we have a static library which uses Protobuf, thus generates the headers, and
compiles the code directly into it.
Static Library {
...
Export {
Depends { name: "cpp" }
Depe
Am 15.11.2021 um 09:18 schrieb Christian Kandeler:
On 11/12/21 20:33, Björn Schäpers wrote:
This should work if you include "hpp" in the type of the generating product.
Adding "hpp" as type does indeed result in the complete compilation of the
generating product, before
Am 15.02.2022 um 16:40 schrieb Christian Kandeler:
Hi,
we branched off Qbs 1.22 today. Scheduled release date for
version 1.22.0 is end of March (together with Qt Creator 7.0).
We recommend users to try this branch with their projects and report back any
new problems they find.
Contributors are
Am 15.02.2022 um 17:08 schrieb Christian Kandeler:
On 2/15/22 16:54, Björn Schäpers wrote:
You could mention *explicitly* that the meaning of product within an Export
has changed.
I have a lot of
Export {
...
cpp.cxxLanguageVersion: product.cpp.cxxLanguageVersion
}
And that blew on me
Hi,
my main problem is I have MinGW32 und MinGW64, the pkg-config of the latter is
first (or only) in PATH, thus dependencies through pkg-config will get the
inlcude paths etc. for the 64 bit variant. Now I have a dependency which checks
the bitness in the header and errors out on 32 bit.
I
Yes.
Am 02.05.2022 um 18:27 schrieb Карелин Павел:
I am using the construct:
Product {
name: "SharedLib"
property var exportIncludePaths: [
"./",
"./shared",
]
Export {
Depends { name: "cpp" }
cpp.includePaths: product.exportIncludePaths
}
}
Good Day,
I was recently forced to use Windows 11 at work and was puzzled why many
of my programs (but not all!) failed to start with the code 0xc7b.
After a lot of investigation I found the issue to be the subsystem values.
All affected programs use Qt, which sets the minimum windows ver
Am 10.04.2023 um 23:21 schrieb Иван Комиссаров:
Maybe the fix is trivial after all
https://codereview.qt-project.org/c/qbs/qbs/+/471291
Can someone verify this on Win7?
Ivan
10 апр. 2023 г., в 23:31, Иван Комиссаров написал(а):
Hello!
Someone reported an issue a while ago and I created a
Hi,
I have a project with multiple sub projects and products and want to move it to
embedded platforms, and thus I want to set compiler flags like mpcu, which
should be the same for all products. I know I can do it through the QtCreator
kit or the command line, but I'd like that to be commited
But I still need all products to use the module.
Currently I just have all the options within the module and switch depending on
qbs.architecture.
Am 29.05.2024 um 18:12 schrieb Иван Комиссаров:
You can put the other_project_buildconfig module in your projects search paths
- that way it will
Hi,
I've created a module that reads a xml file and exports some of the content
through properties, that works nice. I wanted to extend it, so that there is a
(predefined) choice of xml files, and one could depend on multiple of these. So
I thought a module provider would be the right choice.
ce and
we can take a look.
Ivan
12 июня 2024 г., в 00:31, Björn Schäpers написал(а):
Hi,
I've created a module that reads a xml file and exports some of the content
through properties, that works nice. I wanted to extend it, so that there is a
(predefined) choice of xml files, and one
Hi,
sorry for the delay. I've attacked the stack, it was always evaluating the same
property again.
This is qbs at 20de9f301.
Am 13.06.2024 um 00:44 schrieb Иван Комиссаров:
What’s the actual stack?
Ivan
12 июня 2024 г., в 23:03, Björn Schäpers написал(а):
Hi,
okay I debugged in
/c/qbs/qbs/+/568678 locally to debug the
issue (should print the call stack of the prop that invokes recursion) but
note this change was merged out due to a memory leak.
Ivan.
3 июля 2024 г., в 22:59, Björn Schäpers написал(а):
Hi,
sorry for the delay. I've attacked the stack, it w
Hi,
I have multiple dynamic libraries in my project tree, and use an export header
similar to your qbs_export.h. Overtime the style of those headers had changed a
bit and recently I replaced them by something generated from qbs. I generated
them in the source directory, so that #include "expor
Am 13.07.2024 um 02:15 schrieb Иван Комиссаров:
12 июля 2024 г., в 23:24, Björn Schäpers написал(а):
Hi,
I have multiple dynamic libraries in my project tree, and use an export header similar to
your qbs_export.h. Overtime the style of those headers had changed a bit and recently I
milar. I also see no gain for the users, only pain.
Am 13.07.2024 um 15:26 schrieb Иван Комиссаров:
You can add it once to the base item of the products (possibly with some
customisation using a prop). Usually there is already such an item in every
product.
Ivan
13 июля 2024 г., в 14:13, Björn
омиссаров:
Did you try to apply the patch?
What’s in MyOwnApplicationImport?
I changed the import to CppApplication and it doesn’t recurse
https://pastebin.com/jKMxpWGe, so I’d say the problem is in
MyOwnApplicationImport.
Ivan
12 июля 2024 г., в 23:06, Björn Schäpers написал(а):
No it did n
A big +1 from me.
I already ported my products, took me 3 hours and has to go through review,
wasting more time of my colleagues.
Kind regards,
Björn.
Am 05.08.2024 um 19:12 schrieb Jochen Becher via Qbs:
Qbs is now over 10 years old. We are using it with thousands of qbs
files. Still having
Am 10.07.2025 um 13:16 schrieb Richard Weickelt:
Or if you explain what you want to achieve, we may find a different solution?
Richard
Don't know about Jochens use case, but I have to set some switches based on
whether I'm compiling for a desktop platform, or a bare metal device. That is
en
Hi, I can second that.
Did not find the time to post it here, because I also don't have a small
example. I have basically the same setup, but split over multiple files (which
are referenced from the top level project).
For me it is:
readonly property stringList onEmbedded: parent.onEmbedded
40 matches
Mail list logo