Hi,
I have seen this error recently myself. The issue is with CMake 3.0,
where to provided UseQt.cmake files have changed. Until we find a
solution for this issue, please use CMake < 3.0.
CMake 3.0 and newer is unfortunately not officially supported yet.
Best,
Sascha
On 08/26/2014 04:24 PM, Nil Goyette wrote:
I have the exact problem as Michael Boyarkin on one of my computer.
The only difference is that I'm running Windows 7.
Anyone found a solution to this problem? It's hard to say if Qt, MITK
or one of the compilation flag is the problem and compiling takes a
long time, so it's not practical at all to test.
Le 2014-07-21 10:02, Michael Boyarkin a écrit :
Hello, I'm trying to build MITK for further MITK-plugin development
and got some errors.
Q and A:
1. On what system do you work? (Linux/Windows/Mac, which OS-Version,
32 or 64 bit)
Windows 8 x64.
2. What compiler do you use? (e.g. gcc, VC9, VC10, clang)
VS 11 2012
3. Which tool did you use to build the project? (e.g. cmake, also
provide the version number)
CMake 3.0.0
4. Which version of MITK did you try to build/compile? (please also
provide the branch name or the hash value of the git version)
MITK Release v2014.03.0
5. If you used a current version of MITK (branch master): did you
check the MITK dashboard (cdash.mitk.org <http://cdash.mitk.org>), if
the version did compile on the continous dart clients?
No. There is a version with VC11 Qt 4.8.5, but there isn't with the
Qt 4.8.6.
6. What build failed? (superbuild or normal build)
SuperBuild
7. What was the error output?
During building MITK plugin "org.mitk.gui.qt.segmentation" i got
these errors:
error C2039: 'qt_check_for_QOBJECT_macro' : is not a member of
'mitk::PlanePositionManagerService'
(..src\Plugins\org.mitk.gui.qt.segmentation\src\internal\QmitkSegmentationView.cpp)
[..bin\Plugins\org.mitk.gui.qt.segmentation\org_mitk_gui_qt_segmentation.vcxproj]
c:\qt\4.8.6_vc11_x32\include\qtcore\qobject.h 378
error C2039: 'qt_check_for_QOBJECT_macro' : is not a member of
'mitk::PlanePositionManagerService'
(..src\Plugins\org.mitk.gui.qt.segmentation\src\internal\QmitkSegmentationView.cpp)
[..bin\Plugins\org.mitk.gui.qt.segmentation\org_mitk_gui_qt_segmentation.vcxproj]
c:\qt\4.8.6_vc11_x32\include\qtcore\qobject.h 378
error C2039: 'staticMetaObject' : is not a member of
'mitk::PlanePositionManagerService'
(..src\Plugins\org.mitk.gui.qt.segmentation\src\internal\QmitkSegmentationView.cpp)
[..bin\Plugins\org.mitk.gui.qt.segmentation\org_mitk_gui_qt_segmentation.vcxproj]
c:\qt\4.8.6_vc11_x32\include\qtcore\qobject.h 380
error C2039: 'staticMetaObject' : is not a member of
'mitk::PlanePositionManagerService'
(..src\Plugins\org.mitk.gui.qt.segmentation\src\internal\QmitkSegmentationView.cpp)
[..bin\Plugins\org.mitk.gui.qt.segmentation\org_mitk_gui_qt_segmentation.vcxproj]
c:\qt\4.8.6_vc11_x32\include\qtcore\qobject.h 380
error C2228: left of '.cast' must have class/struct/union
(..src\Plugins\org.mitk.gui.qt.segmentation\src\internal\QmitkSegmentationView.cpp)
[..bin\Plugins\org.mitk.gui.qt.segmentation\org_mitk_gui_qt_segmentation.vcxproj]
c:\qt\4.8.6_vc11_x32\include\qtcore\qobject.h 380
error C2228: left of '.cast' must have class/struct/union
(..src\Plugins\org.mitk.gui.qt.segmentation\src\internal\QmitkSegmentationView.cpp)
[..bin\Plugins\org.mitk.gui.qt.segmentation\org_mitk_gui_qt_segmentation.vcxproj]
c:\qt\4.8.6_vc11_x32\include\qtcore\qobject.h 380
Extra:
I tried to use sources from site download page (MITK Release
v2014.03.0) and a Git latest sources (18.07.14) from master branch -
same errors.
Building is going on Win8 x64 machine with Visual Studio 2012 Premium
Update 4 and in the VS interface (not command prompt).
CMake Generator - "Visual Studio 11 2012" (NOT x64).
On CMake advanced configuration I'm checking everything except
"OpenCL", "Python", "SYSTEM_boost".
Qt 4.8.6 is compiled using instructions from
http://docs.mitk.org/nightly-qt4/BuildInstructionsPage.html with
VS2012 x86 Native Tools Command Prompt, so it's x32 Qt 4.8.6.
Anyone has an idea what's wrong?
With Regards, Boyarkin Mikhail.
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users