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 .../install-root/MyProject: error while loading shared libraries: foobar.so: cannot open shared object file: No such file or directory

Question is for solving this issue in qbs: Here is a file generated by QtCreator. I added in cpp.dynamicLibraries:[ "/usr/lib/qconsoledesigner/libqconsoletoolkit.so" ] in CppApplication { Depends { name: "Qt.core" } Depends { name:…
Anon
  • 2,267
  • 3
  • 34
  • 51
0
votes
1 answer

For QBS, What parameters would I set in my DynamicLibrary{} to install headers and libraries upon build?

I am migrating my Qt Libraries over from qmake to qbs, and I am trying to find a decent template that will help me understand what parameters are needed for streamlining the building and installing of said libraries. Currently a qbs file for one of…
Anon
  • 2,267
  • 3
  • 34
  • 51
0
votes
3 answers

Qt QBS and android

I'm trying to find a simple tutorial: how to make a simple application for android using gbps. The following links were found: Stack oferflow. The answer to this question has not been received, although the version of the cbs has already been…
Roman Ozhegov
  • 231
  • 3
  • 15
0
votes
1 answer

Include AVFoundation in an iOS qbs project

I am using Xcode 9.4.1 and Qt 5.11 and currently have a working .pro file for running my Qt application on iOS. Just for fun I wanted to try qbs as I really like the syntax. I have now tried to write a .qbs file that mirrors my .pro file. Everything…
uniquenamehere
  • 1,869
  • 3
  • 31
  • 60
0
votes
1 answer

import OpenCV .lib in Qtcreator qbs file in Windows 10

I need to use OpenCV in a Qt application that uses Qbs and QML in Windows I am using the MVSC2017 (64-bit) compiler that got installed with Qt 5.11 and I have OpenCV 3.41 (I have to link against opencv_world341.lib) I know it's in C:\opencv\build,…
David-EL
  • 31
  • 1
  • 2
0
votes
1 answer

Can't include static lib in new qbs version (1.12)

Please help me. I have a static lib builded with qt earlier, and it uses Qt libs. And the next app is compilable in qbs 1.11 versions and isn't in new qbs 1.12: Application { qbsSearchPaths: "path_to_my_modules" Depends { name: "Qt.widgets" …
Alex Nevskiy
  • 347
  • 1
  • 2
  • 10
0
votes
1 answer

Can I safely run qbs with sudo?

Backstory (You can skip) I am a bit more cautious these days when I am attempting to solve a what I presume to be a permissions limitation by running an application with sudo, ever since I ran this command: sudo qtcreator That completely borked my…
Anon
  • 2,267
  • 3
  • 34
  • 51
0
votes
1 answer

What does, "Cannot extract the mkspecs directory." when running `qbs setup-qt /usr/bin/qmake qt` mean?

I am following this tutorial, and the first command qbs setup-qt /usr/bin/qmake qt returns this error: Cannot extract the mkspecs directory. What is this trying to tell me, and is this something I need to fix?
Anon
  • 2,267
  • 3
  • 34
  • 51
0
votes
1 answer

Error compiling Visual Studio solution generated by Qt qbs

I am using Qt qbs to generate Visual Studio solution for my new project. I use QtCreator to create a new qbs-based project, then use the command line below to generate the .sln file: qbs generate -g visualstudio2015 profile:qt595 config:Release Of…
Jimmy Chen
  • 490
  • 3
  • 13
0
votes
1 answer

Repeater-like qbs item

I am looking for a way to instantiate several qbs items whose quantity and properties are based on some product properties, something like: Repeater { model: ["module1", "module2", "module3"] delegate: Depends { name: model[index]…
Andrei R.
  • 2,374
  • 1
  • 13
  • 27
0
votes
1 answer

How do I use a different library path for 32-bit builds in QBS?

In my QBS file I currently have: cpp.libraryPaths: ["C:/Foo/x64/lib"] which works OK with the 64-bit MinGW-w64 kit auto-detected by QT Creator. But building with the 32-bit kit fails since the 32-bit libraries are in a different directory…
M.M
  • 138,810
  • 21
  • 208
  • 365
0
votes
1 answer

qbs build: TypeError: Result of expression 'lib' [undefined] is not an object

I'm having a strange problem: I have a cmake-built submodule that will produces some static libraries (named A1, A2, A3) (I followed here) I write some source code to wrap A then build it as static library B by qbs I have a program C which depends…
thamht4190
  • 11
  • 5
0
votes
1 answer

add submodule (built with cmake) in qbs project

I'm using cmake to build my project now and I want to migrate to qbs in the future. I have some opensource sub-modules from github, which are currently built with cmake, and are included in my project using cmake's add_subdirectory. I've tried to…
thamht4190
  • 11
  • 5
0
votes
1 answer

Qt Creator: deselect some Qt Tests in qbs?

Qt Creator has the possibility to "Run Selected Tests". Is there any option in qbs to deselect some tests as default?
so2017
  • 21
  • 3
0
votes
1 answer

How to get outputs of one Rule item as inputs of another one?

I want to create automatic crossplatform installation builder for my project. For this reason I made this file myprojectpackage.qbs: Product { type: "mypackage" Depends { name: "myproject" } // <- this one has type "application" Depends {…