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
7
votes
1 answer

How to reference external library dependencies in qt qbs?

Let's say I've downloaded some library xyz with headers and binaries and put it somewhere not in standard search paths. For each Product I can add the search paths and library to link to cpp.includePaths, cpp.libraryPaths, cpp.staticLibraries,…
Tyler Daniel
  • 656
  • 6
  • 15
4
votes
2 answers

How can a Qbs build Rule use a product

I want to use Qbs to compile an existing project. This project already contains a code-transformation-tool (my_tool) that is used heavily in this project. So far I have (simplified): import qbs 1.0 Project { Application { name:…
Johannes Matokic
  • 892
  • 8
  • 15
3
votes
2 answers

Copying precompiled libraries to build directory or adding them to PATH in a QBS project

I have a third party precompiled library (.lib+.dll) that I use in my Qt application. In a regular (qmake) QtCreator project I have the following lines in my .pro file: LIBS += -L$$PWD/lib/release -ltag INCLUDEPATH += include/taglib There is also…
alan.sambol
  • 265
  • 3
  • 14
3
votes
1 answer

qbs dylib: library not loaded, image not found

I'm trying to build a qbs project using the leap motion library but on running the project am given the following error: dyld: Library not loaded: @loader_path/libLeap.dylib Referenced from:…
daamaam
  • 33
  • 4
3
votes
0 answers

qt qbs complex macos bundle build

I have complex qbs projects tree. And one of static libraries depends on 3rd-part framework. I am trying to make deploying of this frameworks inside qbs, but have no luck for now. For dylib deploy i use next code: Group { condition:…
johngull
  • 819
  • 6
  • 22
3
votes
1 answer

How to force qtcreator use qbs profile?

I'm working with qtcreator 3.5.0 and custom build of QT 5.5.0 I want to build my project both with qbs & qtcreator. So, I've created qbs profile, as described in qbs manual, and it works well. But I've failed to force qtcreator use this profile. It…
vok1980
  • 504
  • 5
  • 14
3
votes
1 answer

Why qbs ignore my rule?

I has this simply code import qbs Project { name: "simple_test" Product { name: "micro" type: "other" Group { files: '*.q' fileTags: ['qfile'] } Rule { id: check1 inputs: ["qfile"] …
Viacheslav
  • 103
  • 5
3
votes
1 answer

build qt application with qbs

I would like to know the steps to compile, build and create a Qt application for android using qbs on linux. I have all the necessary tools, and currently I can create an apk using qmake.
Omid Nikta
  • 33
  • 3
3
votes
0 answers

How to use Qbs to build a Qt application with Qt Creator?

I am trying to build a qbs-based Qt application with Qt Creator and I get the following errors: cannot find -lC:/SDKs/Qt/5.3/mingw482_32/lib/Qt5Cored cannot find -lC:/SDKs/Qt/5.3/mingw482_32/lib/Qt5Guid cannot find…
Zingam
  • 4,498
  • 6
  • 28
  • 48
2
votes
1 answer

How to force synchronisation between qbs products with dependencies?

I have a Project with multiple products, some of them are depending about generated code (cpp and hpp files). This generated code is it self depending about the code_generator product that is a CppApplication. I want that the code_generator to be…
Xavier Bigand
  • 317
  • 3
  • 10
2
votes
1 answer

Migrating from qmake to qbs, Analogs for .pri file and install technics

Qbs very easy and cool stuff. But, please, help me understand some qbs technics. 1) Imagine I have dir with some sources. With qmake I could create "include.pri" file in that dir with content: INCLUDEPATH += $$PWD DEPENDPATH += $$PWD HEADERS += …
Alex Nevskiy
  • 347
  • 1
  • 2
  • 10
2
votes
2 answers

qbs QML debugging doesn't work

After migration to QBS my QML debugging stopped working. I made sure that: I'm building a debug build, C++ debugging works I've checked "Enable QML Debugging" in qt creator's Project tab I've even tried to add qbs properties manually…
Ivan Fateev
  • 1,032
  • 1
  • 10
  • 26
2
votes
2 answers

Qbs custom module not working

I want to make a module to use the QtRO repc compiler to produce .h files from .rep files. I coded the module but when I try to load it in an application product it does not load and disable the product. the modules are in C:\Users\User\qt\qbs Qbs…
Houss_gc
  • 727
  • 5
  • 27
2
votes
0 answers

qbs single precompiled header for multiple subprojects

i want use single precompiled header for multiple subprojects. If i add to project FileTagger { patterns: "/absolute/path/to/header.h" fileTags: ["cpp_pch_src"] } then pch is not generated. If i add header.h to directory of each subproject then…
AustinPowers
  • 145
  • 8
2
votes
2 answers

Qbs: install files preserving hierarchy

I have directory with files in subdirectories to be deployed with my application (qml plugins). The trouble is: if I try to install dirs: Group { name: "somegroup" files: ["mysrc/dir"] qbs.install: true qbs.installDir: "mybuild" } I…
Andrei R.
  • 2,374
  • 1
  • 13
  • 27
1
2 3 4 5 6 7 8