Questions tagged [qmake]

`qmake`, part of the Qt framework, is a tool for generating Makefiles and IDE project files.

Filter by
Sorted by
Tagged with
-3 votes
0 answers
94 views

Qt App: The second black window appears when I run the application in release mode [closed]

The second black window appears when I run the application in release mode: How can I prevent it from appearing? I removed all qDebug statements to prevent it from appearing. However, I have not ...
Mabel_589's user avatar
0 votes
0 answers
26 views

.pro file fails to read when switching to webassembly from desktop kit Qt Creator 6.6.0

I just configured Qt for WebAssembly, but whenever I switch the kit to webassembly it fails to read the .pro file, and despite my efforts I just can't figure out why. [when I switch to webassembly kit]...
humand09's user avatar
0 votes
1 answer
31 views

How to use libnfc in a Qt qamke project on macOS

I have a Qt project (QMAKE) that works perfectly on my Raspberry Pi OS. I would like to be able to run the same project on a MacBook. The project works, except when I include libnfc, I get the linker ...
Soren's user avatar
  • 1
-3 votes
0 answers
52 views

Clang: Unsupported option -fopenmp Qt MacOS

I'm working on a project in Qt creator, and in the .pro file I have the following: QMAKE_CXXFLAGS+= -fopenmp -Wall LIBS += -fopenmp and I am getting the error: Clang error: unsupported option 'fopenmp....
blov's user avatar
  • 1
0 votes
1 answer
49 views

Cannot use INSTALL_ROOT with qmake on Azure DevOps Pipelines in Windows Agent

I have a Qt (5.15) project that is building with qmake on Azure DevOps Piplelines on a self-hosted Windows Agent. My build and install step looks as follows... - script: | call C:\"Program ...
Logan's user avatar
  • 178
0 votes
0 answers
25 views

qmake generated makefile edits itself, breaking build

I've had this problem with qmake generated make files where when I run qmake it generates a makefile with the correct OBJECTS_DIR and DESTDIR variables set but when I run make on the generated ...
ridderhoff's user avatar
0 votes
1 answer
24 views

Qt not finding include files after qmake and jom

I am having the following problem after trying to install Qt in a new machine. My process was following: I am using MSVC 2019 and Qt 5.15.2, so I downloaded both like I had in my old machine. I ...
churro's user avatar
  • 11
1 vote
1 answer
138 views

Installing PyQt5 on 'arm64' stopped working all of a sudden (some 'sip' issue)

this is a pretty macOS specific question, but I didn't know where to put it. I have an Python script that uses PyQt5. Unfortunately there is no wheel for pyqt5 to install it with pip so you have to ...
gernophil's user avatar
  • 218
2 votes
1 answer
760 views

Qmake failing with SDK 14 / Ventura 13.5.2

So today I installed Ventura 13.5.1 update, and with it SDK 14, and now if I try and run qmake I get the error: Project ERROR: failed to parse default search paths from compiler output Is seems that ...
keith969's user avatar
  • 191
0 votes
0 answers
29 views

No such file or directory error for <private/*.h> includings when build in Qt

I'm newbie and never build from source files before, and tried to build QtCharts. I downloaded source for QtCharts 5.12, and it has prepared .pro file. So I launched this .pro file in Qt Creator, did ...
willy_j's user avatar
  • 25
0 votes
0 answers
32 views

CMake and QMake building same project differently [duplicate]

I have a project, that when compiled with CMake, works as expected (the only command is add_executable(program main.cpp class.cpp class.h data.h)) however, when compiled with QMake (SOURCES += main....
God I Am Clown's user avatar
0 votes
1 answer
15 views

How to copy built DLL from one SUBDIR to another?

I have following project architecture project.pro | |--app.pro | |--lib1.pro | |--lib2.pro lib1 is a shared library. lib2 depends on lib1. app depends on lib1 and lib2 project.pro: SUBDIRS = \ ...
Redman's user avatar
  • 47
0 votes
0 answers
27 views

cmake compilation errors on Raspberry Pi

I'm trying to build this project from source and running into errors. I've built and installed all listed dependencies but the build process fails with errors including: error: ‘co_await’ cannot be ...
James Robinson's user avatar
0 votes
0 answers
28 views

"module is not installed" error with subdirs

I am working on a large Qt Application. It consists of an App.pro file, which defines some subdirs. In one of the subdirs, I declare a QML module with some qmldir files. I want to use Module1 in my UI....
Bene 's user avatar
  • 43
0 votes
0 answers
31 views

How to to target_compile_definitions() in qmake?

In CMake I use: #target_compile_definitions(appsap_rtf PRIVATE SAPwithUNICODE UNICODE _UNICODE SAPwithTHREADS) target_compile_definitions(appsap_rtf PRIVATE SAPwithUNICODE) target_compile_definitions(...
Jiri Zaloudek's user avatar
2 votes
1 answer
77 views

How to turn off unicode flag in g++ in QT Creator?

When I compiling some project I see command like g++ -c -fno-keep-inline-dllexport -g -std=gnu++11 -Wall -Wextra -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -...
Tommmmmm's user avatar
  • 101
1 vote
0 answers
808 views

Qt6, qmake seems to ignore configurations specified in the .pro file

I am using qt6 in Mac OS Ventura 13.5. I was looking for the cause of the error message "Project ERROR: failed to parse default search paths from compiler output". In the .qmake.stash file, ...
Frances S-'s user avatar
0 votes
0 answers
47 views

Calling C++ function with ctypes returns different results when compiling with qmake vs. GCC

I am working on a project that requires interfacing a C++ library with Python using ctypes, like in this tutorial (Disclaimer: I know that ctypes is originally meant to be used with C, not C++). I am ...
Guadalupe Romero's user avatar
0 votes
1 answer
20 views

Undefined Reference when Using Crypto++ in Qt Creator

I am trying to use crypto++ on windows in my Qt Creator project. I am using qmake, so I have a .pro file and have included the following lines: INCLUDEPATH += "C:\Users\username\Downloads\...
Ryan's user avatar
  • 11
1 vote
1 answer
180 views

How to display tree folder to QT treeview

Sometimes I need to backup file, If the size of all the files in a certain directory is too large, it would take a considerable amount of time to back up all the files in this directory every time., ...
Tom's user avatar
  • 473
1 vote
1 answer
28 views

qmake: detect whether the kit uses a static or dynamic Qt version

Is there a way to check whether the active kit uses a static or dynamic Qt build? Something like this: contains(SOME_QMAKE_VARIABLE, STATIC_QT_BUILD) { message("static build detected!") }
dtech's user avatar
  • 48.3k
0 votes
1 answer
18 views

Get drive letter/host install location of MSYS from terminal or Qmake?

I have a QT Qmake project which has a lot of blocks like this for MSYS compatibility: # VTK win32 { INCLUDEPATH += c:/msys64/mingw64/include/vtk-$${VTKVERSION} LIBS += -Lc:/msys64/mingw64/lib } ...
Tyler Shellberg's user avatar
0 votes
0 answers
29 views

Qt QMainWindow: In included file: field has incomplete type 'QString'

i have a new project build in Qt version 6.4.1 The only thing i did was adding 2 new classes "ressource" and "process". Process uses ressources. When i generated them, directly ...
Jona's user avatar
  • 1
0 votes
0 answers
62 views

Qt 5.5.1 not compiling on Ubuntu 22.04

I need to compile Qt 5.5.1 on Ubuntu 22.04 and facing issues because of openssl. The answer here didn't fix the problem for me: SO question Here is what I did: download qt5.5.1 download openssl from ...
luffy's user avatar
  • 2,256
0 votes
1 answer
41 views

Make a String define in QT pro File with QMAKE_HOST.version_string

I want something like: DEFINES += makeOs=$$QMAKE_HOST.version_string So I can use it in my code. Do you have any Ideas how to realize something like this. My Problem is, that I need to check which ...
jakob moehlenkamp's user avatar
0 votes
1 answer
35 views

How to embed sub-project frameworks through cli?

I'm working with Qt which generates its own XCode project to make an iOS app. For this app I want to include a cocoapod dependency (Sentry). But I can't figure out how to add the sub-project ...
cj-'s user avatar
  • 175
1 vote
1 answer
111 views

How do I write a .pro file(used by QT) to compile pybind11 related c++ code?

I actually have a C++ project that is setup in QT Creator and has a .pro file. I would like to write python bindings for some of its functions and import them in python. I am trying to use pybind11. I ...
sumit kshirsagar's user avatar
0 votes
0 answers
158 views

Creating mysql driver for Qt 6.5.1

I have confirmed that those folders have all the necessary dile like mysql.h, libmysql.lib, libmysql.dll. But when ever I try to run this qmake code, it does nothing but just show this texts. How can ...
SR Saad's user avatar
  • 11
1 vote
1 answer
78 views

How to use a lambda function with QObject::connect()? Error: no matching function for call to connect()

I am trying to pass a parameter (a reference to QMainWindow) to a slot callback method using a lambda function. Here is a minimal example: #include "Start.hpp" int main(int argc, char *argv[...
Håkon Hægland's user avatar
0 votes
1 answer
32 views

What could be causing my QT program to compile and run successfully in debug mode but not in release mode using qmake?

I made a QT soft under linux. I also compil it for windows. I really don't understand why it compil and run fine in debug mode : https://github.com/surfzoid/QtVsPlayer/actions/runs/5120917271/jobs/...
Eric Petit's user avatar
1 vote
1 answer
155 views

Partial build of project in qt instead of rebuilding the whole project

How can i stop rebuilding the whole project when there are only some changes in a small part of it like MSVS does? QMake just keeps rebuilding all the files. Using qt 6.4.2 and qt creator.
ureadulose's user avatar
0 votes
1 answer
127 views

Why QtCreator (qmake) links to different libraries than the ones listed on Kit's Qt version?

I am trying to compile my Qt application and package it for distribution on QtCreator using qmake. I have a single Kit, configured (whole config details on the table below) to link to the Qt libraries ...
rgcalsaverini's user avatar
0 votes
1 answer
45 views

how do I control compiling behavior depending on hostname?

I am sharing my Qt C++ development folders over nfs, to several hosts which have different CPUs, and I'd like to configure my project .pro file to make statements therein conditional on on the ...
montanaviking's user avatar
0 votes
0 answers
45 views

QT qmake start a process on target afer deploy

I'm working on a embedded Yocto Linux project that runs QT applications. Here are my requirements: I need to deploy binaries and all of their systemd units as well as a custom target for some of ...
Sarge324's user avatar
0 votes
0 answers
79 views

qmake not finding right mkspec

I am trying to use the qmake that I just compiled from opensource. I compiled on a RH9 host, building it for arm64 so that I could cross compile for Raspberry. My pwd was /raspi/build when I ran the ...
TSG's user avatar
  • 4,362
2 votes
1 answer
98 views

Select different kit in QMake from CLI

When I develop in Qt Creator I can easily select my build kit from the left kit icon. However, I want to try to do the same from the command line. In particular, I will be compiling using either Qt5 ...
TSG's user avatar
  • 4,362
0 votes
0 answers
115 views

How to use an external static library in a Qt project in Qt Creator?

I am trying to import an external static library in my project. I have added .h files in my Qt Project and added the static library via the import external library option. test.h: #ifndef TEST_LIB_H #...
syrine dhouib's user avatar
2 votes
1 answer
474 views

No qmake option found in qt quick application

i have to create a qt project for qml and python (i'm new at this), i saw in various tutorials that when creating a qt quick application, i should select qmake as builder for the project, but it won't ...
massi's user avatar
  • 23
0 votes
1 answer
93 views

error files are installed but cannot be shipped with packages

I am using Yocto Build system to build my Linux distribution. I am using Qt C++ to develop my application. I have one file which has to be part of my package which I will send after my build. I have ...
Krupal Kadam's user avatar
2 votes
1 answer
44 views

QT .pro file: show files from sub directory project in Qt Creator tree without compiling them

Imagine you have a directory sturcture of: top_level_project/ ├── top_level_project.pro ├── files/ ├── ... ├── sub_project/ ├── sub_project.pro ├── files/ ├── ... and a ...
Zane Phillips's user avatar
0 votes
0 answers
98 views

Porting Qmake to Cmake - Gstreamer - External Board

i'm currently trying to port a Qmake project to Cmake. I'm facing problems including the gstreamer library through pkgconfig. My Qmake, which works, is : INCLUDEPATH += $$PWD DEPENDPATH += $$PWD ...
mungimatte's user avatar
0 votes
1 answer
113 views

DSO missing from command line with QMake

I'm trying to build my Qt app using libcamera on Raspberry Pi, but the qt project won't build, instead showing error: DSO missing from command line. I have build libcamera from source (it's a .so lib),...
robotanical's user avatar
8 votes
1 answer
2k views

Could not connect "org.freedesktop.IBus" to globalEngineChanged(QString) error

I was trying to follow a Qt tutorial but I get this error: Could not connect "org.freedesktop.IBus" to globalEngineChanged(QString) which I don't understand, my code seems fine enough so I ...
LuisDSS's user avatar
  • 85
0 votes
0 answers
52 views

Moving QT C++ folder out of existing project to make a new project, problems with PRO file paths

Working on some legacy code that has a big C++ QT project with many subfolders, where some subfolders build into libraries and others into applications. One of the folders is a kind of experiment ...
Smrt's user avatar
  • 7
1 vote
1 answer
34 views

QMake: sudden conflict between system and project headers

While switching from gcc 6 to gcc 8 a Qt project stopped to compile with following error being the culprit: In file included from /usr/include/qt4/QtCore/qstring.h:46, from /usr/...
Swift - Friday Pie's user avatar
0 votes
1 answer
85 views

Unable to build my C++ project with jom. qmake problem?

I am using qtcreator to compile a large c++ project, the OS is windows, the compiler is visual studio. There is an option in qtcreator to compile with jom instead of nmake, when it is activated the ...
François's user avatar
  • 471
0 votes
0 answers
75 views

Display only the text items of an SVG file with QT

I'm new to QT and I'm trying to display only the text items of an SVG file but it only works with the rectangle items. I use QSvgRenderer and the method setElementId of the class QGraphicsSvgItem. ...
Lynoux's user avatar
  • 1
0 votes
1 answer
313 views

Qt 5.15.2 Windows 11 qmake stuck

I'm trying to build a newly created empty project on my pc, but the build stucks with this command -> 11:55:02: Starting: "C:\Qt\5.15.2\mingw81_64\bin\qmake.exe" C:\Progetti\untitled\...
Fausto01's user avatar
  • 171
0 votes
0 answers
79 views

Add library builded with meson to Qt

I have a library that I build using meson and i want to add that library in my Qt project. So, only with one make call, being able to build the library with meson and link to it. So far, I tried ...
BinaryTalk's user avatar

1
2 3 4 5
38