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

Qt plugin: From qmake to qbs. Linkage error

I have a .pro project consisting of two products: player.pro TEMPLATE = subdirs SUBDIRS = mediaplayer \ imageplayer imageplayer.depends = mediaplayer madiaplayer.pro - dll lib TEMPLATE = lib DEFINES += MEDIAPLAYER_LIBRARY HEADERS =…
0
votes
1 answer

How to use QtTest with qbs

I can't find clear example of building tests with qbs. I tried like this import qbs CppApplication { consoleApplication: true files: [ "TestTask.h", "TestTask.cpp" ] Depends { name: "Qt"; submodules: [ "core", "testlib" ] } } TestTask is a…
alez
  • 69
  • 7
0
votes
0 answers

Add precompiled dynamic library to APK when using QBS build system

I am trying to compile my SDL2 project for android using QBS. I built SDL2 as dynamic library using NDK's ndk-build tool. But can't figure out how to make QBS (which I use in my project) include libSDL2.so to the resulting APK. I have tried approach…
rtgbnm
  • 33
  • 6
0
votes
1 answer

Qbs: Rule for install step

In short: is it possible to make Rule item (or similar) to be executed at install step? As described here, I have issues with installing files via Group item. A simple Rule script will probably do, but it has to be run at some point, preferably…
Andrei R.
  • 2,374
  • 1
  • 13
  • 27
0
votes
2 answers

qbs avr compiling

I try to build simple project with qbs import qbs Project { name: "simple" Product { name: "micro" type: "obj" Group { name: "sources" files: ["main.c", "*.h", "*.S"] fileTags:…
0
votes
1 answer

Qbs Depends Item to affect products list

Assuming I have some project with tons of sub-projects, and in most cases I only need to compile few of them at once: Project { property stringList plugins: ["plugin3", "plugin4"] // this is set externally references: plugins.map(function(p)…
Andrei R.
  • 2,374
  • 1
  • 13
  • 27
0
votes
1 answer

Qbs analogue of qmake system() command

in qmake, there is system() function, which simply runs commands you pass at compile time. The question is: is there any qbs analogue of it? Qbs Rule/Artifact approach is designed for different purpose and is too verbose for simple use cases
Andrei R.
  • 2,374
  • 1
  • 13
  • 27
0
votes
1 answer

How I can attach PostgreSQL C library via QBS?

I have a project that should use postgresql c-library (libpq) and project is configured. How I can configure QBS module to import all required headers and libs into project?
Roman Volkov
  • 245
  • 1
  • 4
  • 12
0
votes
1 answer

Build everything : even builtByDefault: false

I have a project that contain lots of references to other qbs file. Project { name: "MyProject" references: ["SubProject1/SubProject1.qbs", "SubProject2/SubProject2.qbs", "SubProject3/SubProject3.qbs", …
BlueMagma
  • 2,392
  • 1
  • 22
  • 46
0
votes
0 answers

How to change the default ios plugin in Qt using qbs?

I have a Qt multi-platform mobile project that I want to build using qbs. I have managed to build it, but I want to link a different IOS plugin from the default one. In the linking step, the compiler has the flags -stdlib=libc++…
0
votes
1 answer

Qbs: How to enable Qt Quick Compiler?

With qmake you can enable Qt Quick Compiler by passing CONFIG += qtquickcompiler. How can I do this with Qbs? Or should I write a custom Rule for this?
Zak
  • 464
  • 3
  • 13
0
votes
1 answer

qbs qestion about library relative path and how to reuse a property string

I am trying to use several libraries in a project generated by qbs 1.5.1, Qt 5.6.1, Qt Creator 4.0.1 I currently have several questions regarding the qt building suit. First question: how can I reuse a property string? e.g I tried to define a…
r0n9
  • 2,505
  • 1
  • 29
  • 43
0
votes
1 answer

Select and build library

Using Qt Creator to open and build a Qbs project, I can select what product I want to build in the bottom left panel (alongside the kit to use, and the selection of debug or release) When I have more than one product of type "application" in a Qbs…
BlueMagma
  • 2,392
  • 1
  • 22
  • 46
0
votes
1 answer

qtcreator source from github - can't resolve qbs reference

always when I was trying to clone qtcreator repository I had a errors with submodule qbs, I was ignoring this because was not important on that moment. however today I need to check this out without issues. so the error is still there. not sure that…
amigo421
  • 2,429
  • 4
  • 26
  • 55
0
votes
1 answer

Update from Qt 5.5.1 to Qt 5.6 leads to linking errors

I just try to update a project from Qt5.5.1 to Qt5.6 and now it fails during linking. C:/Qt/Qt5.6.0/Tools/mingw492_32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find…
0rko
  • 168
  • 6