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

Module cpp could not be loaded in qbs

Im trying to compile my project using the clang compiler with Qbs on Windows 10 x64. I configured the tool using the QtCreator interface, and the error Module cpp could not be loaded appeared. This is my configuration: What is happening?
LionsWrath
  • 45
  • 7
0
votes
1 answer

Qbs 1.10 module cpp not be loaded

After upgrading QtCreator from 4.4.1 to version 4.5.0 and then updating Qbs from 1.9.0 to version 1.10.0, an error appeared: "... warning: Module cpp could not be loaded." "Product 'ProductName' had errors and was disabled." It was possible to find…
Roman Ozhegov
  • 231
  • 3
  • 15
0
votes
2 answers

Qbs StaticLibrary on MacOS

I try to move an existing project from qmake to qbs, everything works fine so far but i can't link to google test static library in that project on MacOS while on windows it works fine. On MacOS i get :-1: error: symbol(s) not found for architecture…
emKaroly
  • 756
  • 1
  • 10
  • 22
0
votes
1 answer

Rule Item: how to check if it has to be re-run?

In my case, Rule has to be invoked upon environment changes (svn revision of working directory) instead of changes of input files. So, depending on alwaysRun, my rule is invoked either never (failing build) or always (forcing dependers to be…
Andrei R.
  • 2,374
  • 1
  • 13
  • 27
0
votes
1 answer

dependency qt.core not found for product

I get a lot of same errors when try to compile my project using qbs. Like this: Dependency "Qt.core" not found for product "dist". Please create a Qt profile using the qbs-setup-qt tool if you haven't already done so. Product 'dist' had errors and…
Jajavar
  • 3
  • 1
  • 2
0
votes
1 answer

Qbs >= 1.8 new property override syntax fails for modules

I have an app with product myproduct, depending on custom module mymodule: // myproduct.qbs Product { name: "myproduct" Depends { name: "mymodule" } } // mymodule.qbs Module { name: "mymodule" property string value: "" validate: {…
Andrei R.
  • 2,374
  • 1
  • 13
  • 27
0
votes
1 answer

Qbs, How to check byte order

How can byte order (big or little endianness) be checked from within Qbs? I do not know any other way to do it in Qbs or pure JavaScript. The idea is to avoid any other dependency from within Qbs, e.g. node.js' os.endianness().
Amani
  • 16,245
  • 29
  • 103
  • 153
0
votes
2 answers

Qbs setting target machine type

I'm trying to build Qbs example collidingmice on Windows 10 x64 and got the following error message: Qt5Cored.lib(Qt5Cored.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86' I tried setting the following…
Amani
  • 16,245
  • 29
  • 103
  • 153
0
votes
1 answer

Qbs, How can .h.in files be configured on Windows?

I have a C/C++ project that was written to be configured with CMake. I'm trying to learn Qbs by converting it to use Qbs. It happen there are .h.in files that in CMake are configured using the configure_file() function. For example in CMake a file…
Amani
  • 16,245
  • 29
  • 103
  • 153
0
votes
1 answer

Qbs, non-existance base profile error

I'm learning Qbs by compiling a Qt based open source library. I set my Qbs project as below. import qbs 1.0 Project { Product { name: "communi" type: "dynamiclibrary" files: [ "include/IrcCore/irc.h", …
Amani
  • 16,245
  • 29
  • 103
  • 153
0
votes
1 answer

Subclassing Probe doesn't work

I am trying to subclass Probe to clone custom repositories from the net before starting the build. GitProbe: import qbs import qbs.File import qbs.Process Probe { property string gitUrl property string wd property string name …
Houss_gc
  • 727
  • 5
  • 27
0
votes
1 answer

qbs does not invoke qdoc

All is in question I provided a simple qdocconf file along with my project but, qbs does not invoke qdoc while the qdocconf is in the files property of the project. Project.qbs import qbs Project { name: "LoggingMessageHandler" Product { …
Houss_gc
  • 727
  • 5
  • 27
0
votes
1 answer

Set a property declared in one qbs project from another

I have a typical application dev scenario, a library + application, both are qbs projects. In the library project I declared a Boolean property staticBuild default to true as follow: Project { // the library property bool staticBuild: true …
Houss_gc
  • 727
  • 5
  • 27
0
votes
1 answer

add a file in the files collection of a product

My question is simple, I want to manipulate the files stringList of a product from a Rule. I tried to use product.files.push(file), product.files.append(file), but neither solution worked for me. thank you for your help. EDIT: I created a module…
Houss_gc
  • 727
  • 5
  • 27
0
votes
0 answers

Does Qbs support loops?

I am currently porting my qmake files to Qbs. In my qmake setup I have created few defineTest in a single .pri file that is included by all other project files. These typicially just call one of the functions with a parameter (usually a project…
Resurrection
  • 3,916
  • 2
  • 34
  • 56