Notes |
|
(0039886)
|
Clinton Stimpson
|
2015-11-19 13:57
|
|
Your sample project is missing the qt5_wrap_ui() call. |
|
|
(0039887)
|
Brad King
|
2015-11-19 14:05
|
|
Furthermore, qt5_wrap_ui is provided by Qt5 packages and not by CMake. If there is a problem it needs to be reported to Qt folks.
|
|
|
(0039888)
|
Joshua Pedrick
|
2015-11-19 14:11
|
|
Ok,I added it in my own copy and it's still not working. Will report to Qt project.
```
cmake_minimum_required( VERSION 3.4 )
set(CMAKE_CXX_COMPILER g++)
set(CMAKE_C_COMPILER gcc)
project( example CXX )
set(CMAKE_AUTOMOC OFF)
set(CMAKE_AUTOUIC OFF)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Qt5Widgets REQUIRED)
qt5_wrap_ui( ui_example.h ui_example.h )
add_library( example example.cpp ui_example.h )
```
running make:
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jpedrick/Development/uncompress/ui_example/build
Scanning dependencies of target example
[ 50%] Building CXX object CMakeFiles/example.dir/example.cpp.o
/home/jpedrick/Development/uncompress/ui_example/example.cpp:1:24: fatal error: ui_example.h: No such file or directory
#include "ui_example.h"
^
compilation terminated. |
|
|
(0039889)
|
Brad King
|
2015-11-19 14:18
|
|
> cmake_minimum_required( VERSION 3.4 )
Does the problem occur with CMake 3.3? |
|
|
(0039890)
|
Joshua Pedrick
|
2015-11-19 14:19
|
|
@brad.king I believe I'm reporting a bug in cmQTWrapUICommand.cxx cmQTWrapUICommand.h, which is part of cmake...
I'm not sure how or where else to report this bug. |
|
|
(0039891)
|
Clinton Stimpson
|
2015-11-19 14:24
|
|
Its a bug in your example.
The documentation for this is found here:
http://doc.qt.io/qt-5/cmake-manual.html [^]
For example.
qt5_wrap_ui( UI_SRCS ui_example.h )
add_library( example example.cpp ${UI_SRCS} )
A discussion on a mailing list seems more appropriate for this than a bug report.
Since its documented by Qt, bringing it up on their mailing list is better. |
|
|
(0039892)
|
Brad King
|
2015-11-19 14:25
|
|
|
|
(0039893)
|
Joshua Pedrick
|
2015-11-19 14:43
|
|
Ok, seems like using qt_wrap_ui also is a no op for me. I'll investigate and see if I can narrow it down to an actual bug or not. |
|
|
(0039894)
|
Joshua Pedrick
|
2015-11-19 14:52
|
|
Ok, looks like it was just ambiguous documentation. Looking at QtDialog/CMakeLists.txt cleared it up.
I agree that this is not a bug. |
|
|
(0040964)
|
Robert Maynard
|
2016-05-02 08:30
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|