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

How to build Qmake for Visual studio project? specifically for QGLViewer for octomap library

I need to build an octomap on visual studio 2017. According to website they have asked to do the following open a windows shell (e.g., from the START-Menu -> QT) cd octovis/src/extern/QGLViewer qmake -t vclib QGLViewer.pro -spec…
Joker
  • 715
  • 1
  • 14
  • 31
0
votes
0 answers

qmake install ignores android /res folder

I found out that I can use INSTALLS to replace ANDROID_PACKAGE_SOURCE_DIR. But for some reason it ignores /res folder. My project has 2 android related folders. /android and /android_extra. At first it was all one folder that was included in the…
light01
  • 155
  • 1
  • 3
  • 17
0
votes
1 answer

Qt won't run example application after I installed Visual Studio 2019 and Unreal Engine

Qt (Qt Creator 4.10.1 and Qt 5.13.1) stopped running applications found in its examples catalog after I installed Visual Studio 2019. Before I installed Visual Studio 2019, Qt was working fine. Now it tells me…
JVE999
  • 3,327
  • 10
  • 54
  • 89
0
votes
0 answers

How do i translate cmake to qmake file?

I have a cmake file that generates some executables, they work. I have a Qt application that compiles but it keeps on crashing upon start up. I think the application isn't picking up the correct files. Could you please assist in translating the…
agent_bean
  • 1,493
  • 1
  • 16
  • 30
0
votes
1 answer

Qt and OpenCV linking error undefined reference in mat.inl.hpp

I use Qt creator with it's qmake system. I'm on Windows 10 and use MinGW. I want to add some libs to my project and opencv is in the list. This is my .pro file: QT += core gui 3dcore 3drender 3dextras multimedia…
Tobbor
  • 110
  • 7
0
votes
1 answer

How do I integrate a local Qt project with Google Test?

I'm trying to integrate Google Test into my Qt project. I have basic (EXPECT_EQ(1, 1)) tests running with Google Test, but am confused how I can integrate my Qt project (which uses qmake) into the test's CMake build. Google Test is currently added…
0
votes
1 answer

:-1: error: LNK1104: cannot open file 'MyProject.obj'

I use Qt Creator 4.10.0 in windows 7. The name of my project is MyProject. #------------------------------------------------- # # Project created by QtCreator 2015-12-23T11:43:59 # #------------------------------------------------- QT += core…
DjangoYang
  • 17
  • 1
  • 6
0
votes
1 answer

Qt creator pure C project

I am trying to use the Qt Creator for Ansi C program development. My problem is that I am still getting typical for g++ warnings, such as variable length array used. Is there a way to force the Qt Creator to use gcc only and never g++ at any stage…
Łukasz Przeniosło
  • 2,725
  • 5
  • 38
  • 74
0
votes
0 answers

Can not find -lann and -lcvm

I can't figure it out this problem while compiling from qmake /usr/bin/ld: cannot find -lann /usr/bin/ld: cannot find -lcvm I have been through a lot of similar questions but still no luck. I don't have .so library instead got…
Dhiren Hamal
  • 874
  • 1
  • 12
  • 31
0
votes
1 answer

Generate moc file for header only class outside the project tree

I have some classes defined only using a headers file that inherits the QObject class and uses the Q_OBJECT macro. They are placed in a certain folder on my PC. I want to include these classes in my qt project. I have written a .pri file (located in…
0
votes
0 answers

Linking with external library using absolute position in QMake

I want to link to an external library like this: win32-g++: PRE_TARGETDEPS += $$(LOCALAPPDATA)/External_program/lib/external_lib.dll.a When I deploy the executable it won't work unless it's in the same directory as the .dll, even if it is where…
0
votes
0 answers

I can't include VTK headers in my Qt algorithm

I am using Qt Creator and I want To do some Image Processing using VTK, so after building and installing VTK with Cmake and Visual studio... I added the lib and bin Path in the .PRO, but when I include the headers in my algorithm it still give me…
Salma Hakim
  • 105
  • 8
0
votes
1 answer

qmake : gcc command too long because of unusual -isystem"" options

I have a QtCreator project which uses qmake and MingW and gcc (and Qt 5.9.4). When I run qmake in Debug mode, it generates a gcc command that is so long that it gets truncated. The truncated bit is the name and path of the source file, and so…
Charles
  • 988
  • 1
  • 11
  • 28
0
votes
1 answer

Qt Quick 2 : Creating and adding a shared library

SITUATION I tried to create a dll for my project, but idk what am i doing wrong. 1 Step : Create a shared Lib I went to create new project -> library -> c++ library -> added some test method that returns a const int -> built Realse…
Zer0
  • 1,146
  • 6
  • 15
0
votes
1 answer

error: cannot find -lc++ clang++: error: linker command failed with exit code 1

I'm having no luck running the Qt examples with Qt Creator. I've tried three so far, but I have been unable to build and run any of them. and also it showing as QML module not found for QtQuickVirtualKeyboard import. i have attached the error…