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
0 answers

C++ 14 keywords under CentOS 6

I'm trying to compile a C++ project under different Linux OS's. Under Fedora 27 all compiles great. Under CentOS 6 it fails with error: ‘nullptr’ was not declared in this scope which I read means the wrong compiler is being used. But, my qmake…
TSG
  • 4,242
  • 9
  • 61
  • 121
0
votes
0 answers

Different Warning flags for different files in Qt

I have one large codebase project in Qt. I have been using two third party libraries: json and QSimpleUpdater. Since, these libraries are external, their source files generates alot of warnings. I can't and don't want to change those external…
abhiarora
  • 9,743
  • 5
  • 32
  • 57
0
votes
2 answers

Problem with configuring c++ project in QtCreator

I have some c++ code (Snowboy demo - demo.cc) and successfully build it on my RaspPI Zero using g++: g++ -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -I../../ -std=c++0x -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Winit-self -rdynamic…
Bleach
  • 156
  • 3
  • 15
0
votes
1 answer

QMake - Find library names based on kit/target as well as build type

I am trying to link against libraries that are all in the same directory and use the following naming convention: libFoo64.a # 64-bit release libFoo32.a # 32-bit release libFood64.a # 64-bit debug libFood32.a #…
M.M
  • 138,810
  • 21
  • 208
  • 365
0
votes
1 answer

How to make Makefile generated by qmake on windows? (nmake and mingw-make)

OS: Windows 10, x64 I have a simple demo of qt console project, which simply print hello world. This project can be built and run correctly(with MSVC kit), but I want to separate the process. First, I click "execute qmake" in the right-click menu on…
T.Worm
  • 382
  • 2
  • 11
0
votes
0 answers

Cannot Open Source File no such file or directory

I have a project that I am trying to build within a subdirectory structure. The structure goes as follows: Project - Project.pro | Base | -base.pro | | | Object | | -object.pro | | | | | Dependency1 | | | -…
Sailanarmo
  • 1,139
  • 15
  • 41
0
votes
2 answers

Allowing undefined symbols in qmake

I use qmake and .pro files to generate my VisualStudio .vcxproj files. I have created a static library which contains helper functions for all my error handling. This includes wrappers for fetching error codes out of QSqlTableModel and…
Techniquab
  • 843
  • 7
  • 22
0
votes
1 answer

Trying to build a Qt project on a raspberry pi, why is it throwing errors about qmake?

I have a C++ Qt 5 project that was written, tested, and built on a windows machine. It works perfectly there. I also have to make the project work on a Linux environment and I was handed a raspberry pi 3 model b. I managed to get Qt 5 on it (I…
Herides
  • 5
  • 3
0
votes
1 answer

check checkBox using ffh.getFieldType() == "/Btn" with qpdf lib

I use the qpdf it works when I use /Tx for filling text field. But it doesn't work for checking a checkBox : Lib header : https://github.com/qpdf/qpdf/blob/aa602fd107a622a3f12e6530220bb0303b95b520/include/qpdf/QPDFFormFieldObjectHelper.hh My code …
smawell
  • 43
  • 10
0
votes
1 answer

Build Qt application on MacOS with debug symbols

How could I build an application for macOS written using Qt framework in Release mode with debug symbols information ? I have tried what is suggested in Qt Doc: # debug symbols QMAKE_CFLAGS_RELEASE +=…
RuLoViC
  • 825
  • 7
  • 23
0
votes
1 answer

Building in different linux-based OS

I'm not experienced in C, qt and cmake. I spent last 10 hours trying to build this project: https://github.com/moonlight-stream/moonlight-qt May main goal is to build it myself and run it on Ubuntu. README describes that in order to build I need to…
C D
  • 145
  • 2
  • 8
0
votes
1 answer

QtSql program doesn't work with shared lib configuration

I wrote a sample program using QSqlDatabase object two years ago with a Qt configuration that depended on static libraries. It compiled ran as expected. Some time last year, I rebuilt the configuration using shared libraries and now I am getting the…
jetimms
  • 417
  • 1
  • 5
  • 23
0
votes
1 answer

Qt 5.12.1 MSVC Static Build .qmake.super

After building Qt 5.12.1 static using MSVC 2015, I can successfully build all of my Qt projects except one that includes the svg module. Running qmake on that project produces Project ERROR: Unknown module(s) in QT: svg If I move the project under…
0
votes
1 answer

How to automatically install my plugin to "plugins" directory after build?

Now it building successfully, but I need to copy it in destination directory by hand. I want to automate this process, but not so familiar with qmake (prefer cmake instead).
tr1cks
  • 97
  • 2
  • 7
0
votes
1 answer

QT - "No rule to make target" after renaming file in hierarchy

I'm willing to create subfolders in Qt Creator, using answers from the following thread : How to create a folder or a subdirectory for a project in QtCreator? I created a folder in my explorer, then renamed my existing file…
Greg
  • 579
  • 5
  • 26