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

Qbs cannot get PWD file on MacOS

I want to use my script as cpp.compilerWrapper: ["../../script"] I'm using relative path (from my .qbs file) to point the script. It works OK na linux. but on macOS doesn't. Also when I'm using var path = Environment.getEnv("PWD") on linux return…
AnDevi
  • 67
  • 7
0
votes
1 answer

Qbs support on MacOS with M1

I'm trying to build my project (which I can build successfully on intel) on my Mac with M1 chip. I have same version of qbs (1.22.1) on M1 nad intel, but on M1 parsing my qbs file ends with enigmatic error during parsing…
AnDevi
  • 67
  • 7
0
votes
0 answers

Incompatible qt versions with qbs

I work on a github action. I need to compile a programm against a specific qt version. The program is build with qbs. I have a problem to configure qbs such that it uses the correct Qt version. There are two versions installed. The first one is…
SebastianH
  • 734
  • 5
  • 23
0
votes
1 answer

determining the properties used by a previous build

After some time, I went to a project to redo a build and the command I give results in: qbs build -p archive config:release modules.cpp.useRPaths:false Restoring build graph from disk ERROR: Property values set on the command line differ from the…
giallu
  • 152
  • 1
  • 7
0
votes
0 answers

How to disable strip after lipo in qbs?

I've noticed some problems with qbs on macOS: building universal binary leads to inevitable strip for the universal binary. qbs.exec: Running external process; full command line is: "/usr/bin/lipo -create -output…
Paul Kamp
  • 101
  • 5
0
votes
1 answer

How to install universal binary artifacts in qbs?

There is my qbs project: Project { StaticLibrary { name: "targetLib" files: "main.cpp" bundle.isBundle: false multiplexByQbsProperties: "architectures" aggregate: true Group { …
Paul Kamp
  • 101
  • 5
0
votes
1 answer

How do I fix this error `warning: Dependency 'Qt.webengine' not found for product '. `?

I am getting this error when saving QBS: warning: Dependency 'Qt.webengine' not found for product 'anime-dl'. Here is the profile in the settings:: This should not be happening because I built this explicitly, as well as it does not happen if I…
0
votes
1 answer

QBS profiles are not saved and updated at any time

I have QtCreator on a PC running Windows and Ubuntu. Ubuntu I use to build a project for Linux and for RaspberryPi. A Windows PC is used to build the project in x86, x86_64 and android: armv7a, arm64, x86 (for the emulator). Also windows is used to…
Roman Ozhegov
  • 231
  • 3
  • 15
0
votes
0 answers

Using dynamic runtimeLibrary despite "static" in cpp.runtimeLibrary in qbs profile

I have some qbs project and I've met with some strange behavior of linking with runtime library. I used Qt static libraries and custom modules //---------MyQtGuiApplication.qbs import qbs MyQtApplication { Depends { name: "Qt.gui" } …
EmmaStone
  • 23
  • 8
0
votes
1 answer

QBS build system, can't initialize environment with vcvars64.bat

I'm trying to implement my own module to build C++ on Windows with clang-cl toolchain as there's no built-in support in QBS right now. I chose to use lld-link instead of microsoft linker, so I have to supply it with all the MS library include paths…
sunny moon
  • 1,313
  • 3
  • 16
  • 30
0
votes
1 answer

Can I use QBS for creating user defined run configuration files?

I am building a program in QT that is going to need a user definable run configuration file, similar to .vimrc. In short, it will need to define what keypresses are responsible for basic commands in a curses like interface. I have not quite decided…
Anon
  • 2,267
  • 3
  • 34
  • 51
0
votes
1 answer

How to set qrc compression settings in a qbs project?

In a qmake based project, I could do this: #QMAKE_RESOURCE_FLAGS += -threshold 0 -compress 1 But searching around, I don't seem to find how to do this for a qbs project. Any ideas?
dtech
  • 47,916
  • 17
  • 112
  • 190
0
votes
0 answers

QBS: qbs-setup-qt fails to detect target platform

Background I have cross-compiled Qt for ARM target using the arm-linux-gnueabihf-gcc toolchain. running qmake -query gives (among other values) QMAKE_XSPEC:arm-linux-gnueabihf-g++. When running qbs-setup-qt armqt I get empty ("")…
john smith
  • 13
  • 4
0
votes
1 answer

QBS: Explicitly setting qbs.profiles inside Products causing build to fail

My use-case is this: I have a static library which I want to be available for some profiles (e.g. "gcc", "arm-gcc", "mips-gcc"). I also have an application which links to this library, but this applications should only build using a specific…
john smith
  • 13
  • 4
0
votes
1 answer

QBS create static library for static link MSVC

I need build application as standalone module with boost(already complied in static mode with /MT flag). Using Visual studio 17(MSVC) My project consists of a static library and a console application. import qbs 1.0 Project { property string…
Kopysov Evgeniy
  • 247
  • 1
  • 19