Questions tagged [qbs]

Qbs is a tool that helps simplify the build process for developing projects across multiple platforms.

Qbs is a tool that helps simplify the build process for developing projects across multiple platforms.

Official

Quick Start / How-To

112 questions
1
vote
1 answer

Fail at startup with latest version

I've got a big Qbs project with many dependency on multiple qbs files (on windows 7). It builds and run fine with Qbs 1.8. It builds but fail at startup with Qbs 1.10 I've seen that there as been some change in the way Qbs handle dependency in 1.9,…
BlueMagma
  • 2,392
  • 1
  • 22
  • 46
1
vote
2 answers

Static build Qt+Qbs

I create a simple console application "Hello world". First, I compile it with qmake: hello.pro QT += core QT -= gui CONFIG += c++11 TARGET = hello CONFIG += console CONFIG -= app_bundle TEMPLATE = app SOURCES += main.cpp The application is…
Roman Ozhegov
  • 231
  • 3
  • 15
1
vote
1 answer

Qbs does not pick Clang in the tool chain configuration

I have installed LLVM 5.0 on Windows 10 x64. When I call clang++ --version from cmd the message below is displayed. clang version 5.0.0 (tags/RELEASE_500/final) Target: x86_64-pc-windows-msvc Thread model: posix InstalledDir: C:\LLVM\bin But when I…
Amani
  • 16,245
  • 29
  • 103
  • 153
1
vote
1 answer

Dependency not resolved correctly when Product (CodeGenerator) used in Rule ([asd] -> [cpp])

when using a Rule inside a Module with a Dependency to a Product, a FileTagger breaks the resolution of dependencies in qbs. We have a CodeGenerator in our project which is build by the project itself. This CodeGenerator generates C++-Classes from…
1
vote
1 answer

qbs 1.8: inherit groups from base product

i got a problem while switching from qbs 1.5 to 1.8. I have 'BaseProduct' in 'src/qbs/imports/BaseProduct.qbs' and i have product derived from it in 'src/derived/DerivedProduct.qbs' In BaseProduct i have something like: Group { id: h …
AustinPowers
  • 145
  • 8
1
vote
1 answer

Qbs: Module with submodules

To use Qt submodules, you can write something like: Depends { name: "Qt"; submodules: ["core", "gui"] } But is it possible to implement custom module-with-submodules project structure? Like: Depends { name: "MyModule.MySubmodule" }
Andrei R.
  • 2,374
  • 1
  • 13
  • 27
1
vote
1 answer

Qbs: Can Module install files?

I want to have a module which will export all needed dependencies like include path, library path and will install needed runtime libraries. Module { Depends { name: "cpp" } property path libLocation: "" cpp.dynamicLibraries: [ …
Zak
  • 464
  • 3
  • 13
1
vote
1 answer

Error "/usr/bin/ld: cannot find library: File format not recognized" when application is built as part of a collection of products

I have a QBS Project which is a collection of subprojects, including static libraries, shared libraries, and a Qt GUI applications. The Qt GUI application has been giving me issue in that the linking stage fails, throwing several "/usr/bin/ld:…
MildWolfie
  • 2,492
  • 1
  • 16
  • 27
1
vote
1 answer

Is there a way in Qbs to Auto List all the SubFolders (by applying Group property on each subfolder) and Files just by mentioning root folder

I am new to Qbs and trying to configure a BareMetal Project using Qbs build system. Well, Currently it looks like one has to add manually all the Subfolders using Group Property. This is a lot of work for huge projects and one has to update Qbs file…
1
vote
2 answers

Group Item: cannot install file to same location

In my project, I have several plugins depending on a single module, containing a Group item similar to: Group { name: "group" qbs.install: true qbs.installDir: "../" files: } But compilation fails with "error: Cannot…
Andrei R.
  • 2,374
  • 1
  • 13
  • 27
1
vote
1 answer

qbs - install to specific dir

I am trying to modify the install dir in qbs. I tried every possibility, which came in my mind. I would like to install to the location of an env var... but qbs always installs into a subdir in the dir where it was stated in (e.g.…
user1347198
1
vote
2 answers

Why i can't use console output in QBS project?

In my qbs file: import qbs Project { name: { console.info("Hello!"); return "ProjectName"; } ... } I've got message: ReferenceError: Can't find variable: console My Qt version is 5.5.0. My Qt Creator version is…
1
vote
2 answers

Qbs: How to save command output to the file?

I want to disassembler file was created after every build. This command will do this: arm-none-eabi-objcopy -DS project.elf > project.dasm How to execute it with qbs? Tried to do a rule for it. Rule { id: dasm inputs: "application" …
bkolbov
  • 11
  • 3
1
vote
1 answer

Qt, Qbs: generate moc_Filename.cpp automatically

So I have a Q_OBJECT tagged class, which requires pregenerated .moc to be usable. In my .qbs file, I have a CppApplication item; this seems to be the wrong type of project, as qbs does not call moc ClassName.cpp to generate moc's for me. What should…
kagali-san
  • 2,964
  • 7
  • 48
  • 87
0
votes
2 answers

Get hold of the module that imported us in QML/Qbs

As a beginner in Qbs/QML I want to get information about what instance that imported our module. For example, given this project: . ├── a │   └── imported.qbs └── b └── main.qbs with a/imported.qbs like this: Product{ name:{ …
Mr. Developerdude
  • 9,118
  • 10
  • 57
  • 95