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

Qt Subdirs where one project generates source/header files used in another project

I have a Qt project that contains many sub-projects. I'm having an issue where one of the projects generates files (.cpp and .h files) that are used in a few of the other projects. Here's an example of the directory structure: src \- master.pro \-…
Stanton
  • 904
  • 10
  • 25
0
votes
1 answer

cmake analogues to qmake string literals

there is a .pri as a part of qmake project which contains some global string definitions : STR1 = string literal 1 STR2 = string literal 2 GIT_VERSION = $$system($$ENV_GIT_EXE_PATH describe --long) and these strings used in a code : QString str1 =…
amigo421
  • 2,429
  • 4
  • 26
  • 55
0
votes
0 answers

application compiled with qmake does not run if compiled from console but runs if compiled from QtCreator

I have developed an application using QT (5.11.2) and QtCreator. When I compile and run the application directly from QtCreator everything works fine in both, debug and release build. I can also start the application from the console if it is…
user7431005
  • 3,899
  • 4
  • 22
  • 49
0
votes
0 answers

MTd Vs MDd - Static linking win32 library in QT Creator

I have a static library built with Visual Studio as a static library (built with Run Time Librbary:Multi-threaded Debug (/MTd)). But when I am using it in my QT project, it says mismatch. xerces-c_static_3d.lib(XMLString.obj):-1: error: LNK2038:…
Jimson James
  • 2,937
  • 6
  • 43
  • 78
0
votes
1 answer

Use qmake variable in #include preprocessor command

I have a project coreApp using two libraries lib1 and lib2. Each lib has a file Version.h specifying the lib version, each in the library namespace, example : namespace lib1{ static const QString Version = "1.2"; } In my coreApp .pro I have…
ElevenJune
  • 423
  • 1
  • 4
  • 21
0
votes
1 answer

minGW (g++) Linking Error with QT-qmake auto-generated Makefile in Windows

I am trying to build a simple QT program with MinGW compiler. I want to eventually port my Linux developed QT/C++ program in to windows. I downloaded QT_4.3.5 (This what my program uses) and MinGW from their site. I believe this a 32 bit compiler. I…
nmr
  • 133
  • 2
  • 11
0
votes
1 answer

Using Qt Creator to Cross Compilation for Non-Qt Projects

I use qt creator for cross compilation non-qt projects.But I built qt-everywhere for arm to generate qmake because I couldn't use default qmake(for Desktop) for arm. Is there any way cross compiling non-qt project without building qt-everywhere?
overlord
  • 489
  • 1
  • 7
  • 20
0
votes
0 answers

Add MFC to Qt Creator (QMake) project

I need to add some huge classes (non-GUI) that use CString, CArray etc. to my Qt project on Windows, but I am not sure how to use MFC outside of Visual Studio, via Qt Creator QMake (with VS 2017 compiler). What libraries do I need to link for…
Alex P.
  • 3,697
  • 9
  • 45
  • 110
0
votes
1 answer

QMake/QtCreatir What's the good strategy to copy a binary to a given location

I'm compiling a library for Android using QtCreator. After it's built, I need it to be copied to a specific location. I was using QtCreator 4.0.3 with Qt 5.6 and NDK r11b I'm now migrating my code to QtCreator 4.8.0 with Qt 5.12 and NDK r18b With…
jpo38
  • 20,821
  • 10
  • 70
  • 151
0
votes
1 answer

QMake result (makefile) differs when executing from bash instead of QtCreator

My goal is to add my Qt project to a Jenkins buildserver, for nightly builds. Therefore I want to compile my project from the command line. I copied the buildsteps located in the build configuration: …
Vincent Beltman
  • 2,064
  • 13
  • 27
0
votes
0 answers

How to import Qml plugins lib into another project?

I have a 2 qml files in a lib and I want to export those to another project and was unable to import in my QuickQmlTest project. I want to use those qml files from QmlPlugin lib in QuickQmlTest project. Is there any additional step I need to do ? …
Rubina
  • 123
  • 1
  • 17
0
votes
0 answers

Sort version strings in CMake

I am converting a qmake project to cmake, and I am able to get it work, except the part that equivalent to !versionAtLeast(QT_VERSION, 5.11): error("Use at least Qt version 5.11". The issue here is that I am currently using a user-supplied variable…
Jerry Ma
  • 511
  • 4
  • 15
0
votes
2 answers

Adding JSON file to plugin qmake project

When writing plugin libraries with Qt one can attach a JSON file containing some meta data to it using the Q_PLUGIN_METADATA macro. This JSON file is then linked into the library, for later usage with QPluginLoader::metaData(). Unfortunately when…
Kamajii
  • 1,826
  • 9
  • 21
0
votes
0 answers

ERROR: C:\OpenCV-Qt\build\bin\libopencv_core320.dll:-1: error: LNK1107: invalid or corrupt file: cannot read at 0x3D0

I have been following this tutorial and I did all of them carefully. But afterwards I ran the simple code: I saw this error and how can I fix it? Tutorial: https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows I removed qt and opencv and I used…
0
votes
0 answers

Reuse sources which already have CMakelists everywhere to create a nother CMake project with them

Note: I am terribly new at CMake. So I have this project's source repo in my hands, which is already armed with CMakeLists everywhere. I need to reuse the sources for a different aim (but still perform the functionality that this source offers). So…
Charles
  • 988
  • 1
  • 11
  • 28
1 2 3
99
100