Questions tagged [qmake]

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

qmake, part of the Qt framework, is a multi-platform tool for generating GNU Makefiles, Microsoft Visual Studio project files, and Apple XCode project files from a common .pro project file.

Among other features specific to the Qt framework, qmake automates the process of running moc on source files that contain the Q_OBJECT macro.

qmake manual can be found here for Qt 4.8 and here for Qt 5.

1860 questions
0
votes
1 answer

QMake / jom force extra MIDL compiler to run before RC

I'm converting an old OCX project to QMake (as it's getting the "new" standard in my company). In my Button.pro file, I add the MIDL compiler by the means of idl_c.output = $${DESTDIR}/${QMAKE_FILE_BASE}.tlb idl_c.input = IDL idl_c.commands =…
NonoxX
  • 134
  • 10
0
votes
1 answer

Undefined symbols for architecture x86_64: "hex(QTextStream&)", referenced from: (Installing PyQwt-5.2.0 on Mac)

I am trying to install the emzed python package for LC/MS analysis. This package is dependent on PyQt4 and PyQWT. I have installed everything but have not been able to build PyQWT. I have jumped through so many errors and I have been stuck on this…
Danny Diaz
  • 375
  • 1
  • 4
  • 12
0
votes
0 answers

File part of multiple installation targets not correctly deployed to device

in a Qt project (qmake) there are database files that is part of a install target: dbs.CONFIG += no_check_exist dbs.path = $$OUT_PWD/../dist/DB dbs.files = \ $$PWD/a.sqlite \ $$PWD/b.sqlite \ $$PWD/c.sqlite \ $$PWD/d.sqlite INSTALLS…
T. N.
  • 66
  • 7
0
votes
1 answer

Qt5Quickd.lib(Qt5Quickd.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86'

I'm trying to build Qt application with command line rather than QtCreator GUI tools. I'm using Developer Command Prompt for VS 2017 by running these commands: "C:\Qt\Qt5.13.0\5.13.0\msvc2017_64\bin\qmake.exe" ..\qt3dsceneeditor.pro -spec win32-msvc…
Megidd
  • 7,089
  • 6
  • 65
  • 142
0
votes
1 answer

Qt subdir project structure

My project structure is currently this: -project |--apps |--app1 |--test |--libs |--lib1_subdir |--lib1_lib |--lib1_test |--test1 |--test2 |--lib1_examples ... It works fine and dependencies are easily…
Moia
  • 2,216
  • 1
  • 12
  • 34
0
votes
0 answers

Can not sign a profile with Xcode after using qmake

I am using QtCreator and I created an app following those steps ("https://doc.qt.io/qtcreator/qt-creator-accelbubble-example.html") and it works fine in the simulator but to use it on my iPhone I have to install it through xCode, there is a way with…
Mk Berou
  • 11
  • 1
  • 6
0
votes
2 answers

how to define a config in pro file?

how to define a config in pro file ? by default, we have two config, debug and release. I want to add 2 other config but not in pro.user ! in pro file.
Behrouz.M
  • 3,445
  • 6
  • 37
  • 64
0
votes
1 answer

In Qt's QMake pro files, how can I differentiate between android for 32-bit arm and android for 64-bit arm?

In a Qt .pro file, I can distinguish between android and windows like: linux:android { LIBS += -L[...] } win32 { LIBS += -L[...] } How can I distinguish between android for 32-bit ARM platform aka armeabi7v and anddroid 64-bit ARM aka…
Ross Rogers
  • 23,523
  • 27
  • 108
  • 164
0
votes
0 answers

Qmake not linking Qt static library

I am putting together an example project structure for a desktop application stack including Qt, Googletest, CMake, and C++. The goal here is to have a cross-platform project structure that people can copy from github to insert their code for their…
Sam Rappl
  • 1
  • 1
0
votes
1 answer

QMAKE_QMAKE with symbolic link to qmake

I need to get path of folder with my qt in pro file. I used QMAKE_QMAKE and everything worked. But now I created a symbolic link to qmake in ~/.local/bin to make it easier to call qmake. qmake-linux ->…
Andrey Yankovich
  • 868
  • 9
  • 13
0
votes
1 answer

Build configuration is always adding debug symbols

I used to run my application on Qt 5.10.0 and I don't remember facing this issue, I do release build and I get the binary without symbols. I downgraded to 5.9.2 with qt creator 4.1 because it is the standard version that comes with CentOS 7 repo so…
3bdalla
  • 407
  • 1
  • 10
  • 28
0
votes
1 answer

QMake and pkg-config

I am using libqtermwidget in one of my Qt applications. It so happens that in version 0.8.0 of the library, some new features have been introduced, which are absent in 0.6.0 version. Since libqtermwidget does not provide any version macros, I would…
Marcus
  • 1,685
  • 1
  • 18
  • 33
0
votes
1 answer

How can I give precise instructions to qmake to build a lib file using MSVC lib.exe, e.g. "lib.exe /DEF:mylib.def /OUT:mylib.lib

I want to know how to give qmake precise platform-specific instructions to build a library file using MSVC tools. I want to be able to build a .lib from a downloaded third-party library (specifically SQLite 3, direct download includes .dll and .def…
Paul Galbraith
  • 128
  • 1
  • 10
0
votes
1 answer

How to add successfully pcl library to a qt project with qmake

i am trying to include pcl library to my qt application project using qmake. I found some similar questions, however none of the answers help to solve my problem. I have tried to add to the .pro file the paths from pcl lib as well as the 3rd party…
Elena Valari
  • 173
  • 2
  • 2
  • 11
0
votes
0 answers

Switching compiler in QMake file

I am running CentOS 6 and would like to switch c++ compilers to ver 4.7 using a conditional (contains) in the qmake file. This superuser question shows how to set some environment variables to use a later compiler - but I don't think this will work…
TSG
  • 4,242
  • 9
  • 61
  • 121