Skip to main content

All Questions

Tagged with
0 votes
1 answer
31 views

qt6apptestqt_debug_metatypes.json: illegal value

EDIT My CMake file looks like this: cmake_minimum_required(VERSION 3.16) project(testqt VERSION 0.1 LANGUAGES CXX) set(CMAKE_AUTOMOC ON) set(CMAKE_CXX_STANDARD_REQUIRED ON) find_package(Qt6 6.4 ...
user1558325's user avatar
0 votes
0 answers
91 views

How to resolve architecture incompatibility errors when building Qt from source on Windows 10?

I have been trying to install Qt on my Windows 10 laptop. I originally downloaded the online installer and used it to get Qt and Qt Creator, but I was not able to add a plugin that I needed: QtSQL: ...
ajitest's user avatar
  • 11
0 votes
0 answers
46 views

Qt creator can not parse cmake version after update from Qt 6.5.3 to Qt 6.7.2

this issue has stocked to me for 2 days, I really want to fix this. Backgound I recently update Qt 6.5.3 to Qt 6.7.2 for Windows 10, there is a issue "error: The kit needs to define a CMake tool ...
P.Roger's user avatar
  • 79
0 votes
0 answers
22 views

QT Cmake Gstreamer "glib.h no such file or directory" error

I'm developing a project in qt and cmake and I needed to use gstreamer. That's why I downloaded gstreamer. But when I add it to cmake.txt, it gives the error "glib.h no such file or directory&...
mrhndsm's user avatar
0 votes
0 answers
25 views

Failed to find required Qt component "Qml" [duplicate]

I'm trying to build an application with Qt, using CMake on Linux (Ubuntu 23.04). For the Qt part, I want to use Qml. Inside my CMakeLists.txt file, I've got: find_package(Qt6 REQUIRED COMPONENTS Core ...
Phantom's user avatar
  • 875
-1 votes
0 answers
33 views

Different CMake linking behaviour in CLion and Visual Studio Code

I have a C++ project using CMake and QT. I have it running in CLion, but my license is ending and I wanted to run this in Visual Studio Code on Windows. Project is structured Proj CMakeLists.txt main....
Rad's user avatar
  • 1
0 votes
0 answers
20 views

"undefined reference to `vtable for MainWindow'" error when placing a header file in a separate directory [duplicate]

I am trying to build my Qt application using CMake. It works fine when the CMakeLists.txt and the project files are in the same directory, but as soon as I split everything into subdirectories, it ...
Fares Hesham Abdelmoneim's user avatar
0 votes
1 answer
32 views

How to deploy files along with the current application in a portable way with Qt CMake build?

I have two big files I want to pack/deploy with my application. On desktop, that would be as easy as copying them to deployment archive, but I am also targeting Android. I don't want to make these ...
Tomáš Zato's user avatar
  • 52.1k
0 votes
0 answers
25 views

Cross-compile Qt5 with CMake: qt5 Qt5MultimediaConfig.cmake search lib is a absolute path

i use mount make target lib mount on /mnt ,and use CMAKE_SYSROOT make sysroot as /mnt path . then i try to cross compile, cmake throw a error massage: .... "/usr/include/arm-linux-gnueabihf/qt5/...
Xrtero's user avatar
  • 1
0 votes
0 answers
25 views

How to Build libQGLViewer as a Static Library (.lib) for MSVC in a Qt Project

I need help building libQGLViewer as a static library (.lib) instead of a DLL. Context: Project Setup: I'm working on a Qt project and we are migrating from MinGW to MSVC. Qt Version: 5.15.2 Compiler:...
Polymood's user avatar
  • 459
0 votes
0 answers
14 views

How to get symbolicated crash reports for Microsoft Store app built with Qt

I have a Qt app that I publish via the Microsoft Store. Within the Microsoft Partner Centre, the Insights > Health page shows crash/hang reports. Whenever these occur, they are indicated on the top ...
Paul Masri-Stone's user avatar
0 votes
1 answer
36 views

CMake and AUTOGEN not working with certain project structure

I have an interesting problem with a CMake project that uses QT and the AUTOGEN approach (AUTOMOC and AUTOUIC in my case). I have this minimal sample structure: MinimalCMakeProject/ ├── CMakeLists.txt ...
gk017's user avatar
  • 87
0 votes
0 answers
36 views

QT Creator CMAKE When I build a release for my application, it says that "The code execution cannot proceed because libunwind.dll was not found"

I am using QT Creator version 6 and CMAKE. When I build the release application and then try to run the .exe, it pops up these two errors: My PATH variable is: C:\Qt\6.7.1\mingw_64\bin After manually ...
Alan Shiah's user avatar
  • 1,086
0 votes
0 answers
42 views

How to set MainWindow Icon using CMAKELists.txt and QT6

I am trying to set the MainWindow icon using QT6. My main.cpp has this: QApplication a(argc, argv); QIcon icon(":/Icons/web/favicon.ico"); a.setWindowIcon(icon); My CMakeLists.txt ...
Alan Shiah's user avatar
  • 1,086
0 votes
0 answers
43 views

How to use qwt 6-3.0 with cmake

I am trying to use Qwt 6-3.0 with Qt 6.7.0 on Kubuntu 24.04, using KDevelop 5.12.23 and cmake version 3.28.3. I compiled qwt-6.3.0 from sources with qmake: /usr/lib/qt5/bin/qmake. I think qt5 is ...
Loke's user avatar
  • 19

15 30 50 per page
1
2 3 4 5
86