Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
1 answer
412 views

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
126 views

I have a file who look like this : ... #ifdef IS_COMPILE_FOR_SPECIAL_TARGET #include "ui_myPage_special.h" #else #include "ui_myPage.h" #endif The ...
iElden's user avatar
  • 1,300
0 votes
1 answer
509 views

I have a C++ CMake MinGW_64 msys2 project for setting up a camera with lumisuite and QT6 for a gui, which resulted in the following error [cmake] CMake Error: AUTOMOC for target mainwindow: Test run ...
0 votes
1 answer
828 views

I would wish to use qt5_wrap_cpp (much faster) than CMake's AUTOMOC feature, but I have a problem. In one of the libraries (other compile fine) some of generated moc files with qt5_wrap_cpp are ...
-1 votes
1 answer
859 views

Currently, I have Qt dlls and include headers as a dependency in my repo. I wanted to make use of CMake's CMAKE_AUTOMOC functionality providing a moc.exe binary along with dlls and include files. ...
IC_'s user avatar
  • 1,899
0 votes
0 answers
945 views

This is a debugging question. I am trying to integrate Qt moc'ing into a CMake managed project using the AUTOMOC feature. I have not managed to generate a project which includes moc rules, though I ...
1 vote
1 answer
1k views

I have directory aaa and aaa/bb. I want CMake to create the moc_compilation.o file only for aaa/*.cxx files, but it scans recursively aaa/bb/*.cxx files also. How can I disable the recursive scan for ...
Gayane's user avatar
  • 657
0 votes
1 answer
315 views

I want to use CMake to build this QHttp project, I wrote a minimum set of CMakeLists.txt for build the basic-server example but is not linking. I created an OBJECT library for the 3rdparty library ...
1 vote
1 answer
537 views

I'm using Qt 5 and I put all my headers in separate include folders, and AUTOMOC is unable to find my headers. src |- sim |- include |- sim |- client.h (contains Q_OBJECT) ...
6 votes
0 answers
2k views

I have a QT project with that is built with CMake. One of the targets have 142 files that need to have moc. When I use qt5_wrap_cpp on source files and build it the process gets finished in around 15 ...
Teivaz's user avatar
  • 5,712
2 votes
3 answers
3k views

I have a project that is being generated via CMake that also uses the AutoMOC flag. However, when I open the solution and try to build the project (using the Visual Studio 15 2017 x64 generator), this ...
andyopayne's user avatar
  • 1,378
1 vote
2 answers
5k views

I have a simple C++ Qt program and I get undefined reference when I use private slots. Can anyone help me? I am learning GUI design using Qt5 from the book C++ GUI Programming with Qt4. I am using ...
sutradhar's user avatar
12 votes
2 answers
3k views

Our project is using very strict set of warnings, but Qt5 generated moc files produce code that violates these warnings. We could obviously turn off the warnings globally, but I'd like to just ...

AltStyle によって変換されたページ (->オリジナル) /