MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014535 | CMake | (No Category) | public | 2013-10-31 14:47 | 2014-06-02 08:37 |
Reporter | Janne Rönkkö | ||||
Assigned To | Stephen Kelly | ||||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | Linux | OS | Archlinux | OS Version | |
Product Version | CMake 2.8.12 | ||||
Target Version | CMake 2.8.12.1 | Fixed in Version | CMake 2.8.12.1 | ||
Summary | 0014535: Definitions Not Defined In Qt Automoc | ||||
Description | With CMake 2.8.12 (and with tested git version from commit 8a6e82724c42920855c2348e914636f52a0c55d5) automoc does not set definitions for moc properly. With CMake 2.8.11.2 this problem does not exist. I have created example project that demonstrates the issue. With CMake 2.8.12 (or with the git version I tried) the plugin is not created properly because QT5 define is not set while moc runs. | ||||
Steps To Reproduce | $ tar xf example.tar.gz $ mkdir example/build $ cd example/build $ cmake --version cmake version 2.8.11.2 $ cmake .. -DUSE_AUTOMOC=false -- The C compiler identification is GNU 4.8.2 -- The CXX compiler identification is GNU 4.8.2 ... -- Found Qt4: /usr/bin/qmake-qt4 (found version "4.8.5") Not using automoc MocSrc /home/janne/tmp/example/build/moc_PluginImpl.cxx -- Configuring done -- Generating done -- Build files have been written to: /home/janne/tmp/example/build $ make $ ./loadplugin libtestplugin.so Loading plugin from "libtestplugin.so" fileName(): "/home/janne/tmp/example/build/libtestplugin.so" isLoaded(): false err: "Unknown error" Success! $ cmake .. -DUSE_AUTOMOC=true -- The C compiler identification is GNU 4.8.2 -- The CXX compiler identification is GNU 4.8.2 ... -- Found Qt4: /usr/bin/qmake-qt4 (found version "4.8.5") Using automoc -- Configuring done -- Generating done -- Build files have been written to: /home/janne/tmp/example/build $ make $ ./loadplugin libtestplugin.so Loading plugin from "libtestplugin.so" fileName(): "/home/janne/tmp/example/build/libtestplugin.so" isLoaded(): false err: "Unknown error" Success! $ cmake --version cmake version 2.8.12 $ cmake .. -DUSE_AUTOMOC=false -- The C compiler identification is GNU 4.8.2 -- The CXX compiler identification is GNU 4.8.2 -- Found Qt4: /usr/bin/qmake-qt4 (found version "4.8.5") Not using automoc MocSrc /home/janne/tmp/example/build/moc_PluginImpl.cxx -- Configuring done -- Generating done -- Build files have been written to: /home/janne/tmp/example/build $ make $ ./loadplugin libtestplugin.so Loading plugin from "libtestplugin.so" fileName(): "/home/janne/tmp/example/build/libtestplugin.so" isLoaded(): false err: "Unknown error" Success! $ cmake .. -DUSE_AUTOMOC=true -- The C compiler identification is GNU 4.8.2 -- The CXX compiler identification is GNU 4.8.2 -- Found Qt4: /usr/bin/qmake-qt4 (found version "4.8.5") Using automoc -- Configuring done -- Generating done -- Build files have been written to: /home/janne/tmp/example/build $ make $ ./loadplugin libtestplugin.so Loading plugin from "libtestplugin.so" fileName(): "/home/janne/tmp/example/build/libtestplugin.so" isLoaded(): false err: "Unknown error" !! No plugin found. | ||||
Additional Information | The issue exists with Qt4 and Qt5. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | example.tar.gz (2,525) 2013-10-31 14:47 https://public.kitware.com/Bug/file/4935/example.tar.gz | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-10-31 14:47 | Janne Rönkkö | New Issue | |||
2013-10-31 14:47 | Janne Rönkkö | File Added: example.tar.gz | |||
2013-11-02 08:59 | Stephen Kelly | Assigned To | => Stephen Kelly | ||
2013-11-02 08:59 | Stephen Kelly | Status | new => assigned | ||
2013-11-02 08:59 | Stephen Kelly | Note Added: 0034311 | |||
2013-11-02 09:00 | Stephen Kelly | Status | assigned => feedback | ||
2013-11-02 13:32 | Janne Rönkkö | Note Added: 0034335 | |||
2013-11-02 13:32 | Janne Rönkkö | Status | feedback => assigned | ||
2013-11-03 15:48 | Stephen Kelly | Note Added: 0034338 | |||
2013-11-03 21:31 | Jason Haslam | Note Added: 0034339 | |||
2013-11-04 05:46 | Stephen Kelly | Note Added: 0034340 | |||
2013-11-05 11:20 | Brad King | Note Added: 0034394 | |||
2013-11-05 11:40 | Brad King | Note Added: 0034395 | |||
2013-11-05 11:47 | Brad King | Target Version | => CMake 2.8.12.1 | ||
2013-11-05 12:07 | Brad King | Note Added: 0034397 | |||
2013-11-05 13:36 | Brad King | Status | assigned => resolved | ||
2013-11-05 13:36 | Brad King | Resolution | open => fixed | ||
2013-11-05 13:36 | Brad King | Fixed in Version | => CMake 2.8.12.1 | ||
2014-06-02 08:37 | Robert Maynard | Note Added: 0036005 | |||
2014-06-02 08:37 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|