Page MenuHomePhabricator

Building MITK-ProjectTemplate gives CmakeError
Closed, InvalidPublic

Description

Hello all,
I'm a newbie to building MITK project. I performed git clone on the MITK-ProjectTemplate. I did cmake with a MITK-pt-sb as the build folder for Visual Studio 12 2013 Win64 environment. I'm getting the following error.
My QT is version 5.4.2 64-bit Debug mode.

CMake Error at D:/qtVS13/build542DB64/qtbase/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:15 (message):

The imported target "Qt5::Gui" references the file

   "D:/qtVS13/build542DB64/qtbase/include//QtANGLE"

but this file does not exist.  Possible reasons include:

* The file was deleted, renamed, or moved to another location.

* An install or uninstall procedure did not complete successfully.

* The installation package was faulty and contained

   "D:/qtVS13/build542DB64/qtbase/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake"

but not all the files it references.

Call Stack (most recent call first):

D:/qtVS13/build542DB64/qtbase/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:5 (_qt5_Gui_check_file_exists)
D:/qtVS13/build542DB64/qtbase/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:153 (include)
D:/qtVS13/build542DB64/qtbase/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:92 (find_package)
D:/qtVS13/build542DB64/qtbase/lib/cmake/Qt5OpenGL/Qt5OpenGLConfig.cmake:92 (find_package)
D:/qtVS13/build542DB64/qtbase/lib/cmake/Qt5/Qt5Config.cmake:26 (find_package)
CMakeExternals/MITK.cmake:60 (find_package)
SuperBuild.cmake:93 (include)
CMakeLists.txt:112 (include)

I then tried performing cmake with MITK2016.03 source cloned. With QT 5.4.2, cmake says
CMake Error at CMakeLists.txt:211 (find_package):

Could not find a configuration file for package "Qt5" that is compatible
with requested version "5.6.0".

The following configuration files were considered but not accepted:

  D:/qtVS13/build542DB64/qtbase/lib/cmake/Qt5/Qt5Config.cmake, version: 5.4.2

Thanks in advance for any help to solve this error.
R.Sriprabha

Event Timeline

kislinsk added a subscriber: kislinsk.

The first issue seems to happen because of a custom built Qt version. We can only support the official Qt binaries, though. Please try again with the official Qt installer.

MITK 2016.03 doesn't require Qt 5.6. So probably you cloned the master instead of the release tag.

Hope that already helps you out.

kislinsk changed the task status from Invalid to Spite.Jun 27 2018, 1:29 PM
kislinsk added a project: Bulk Edit.
kislinsk changed the task status from Spite to Invalid.Jun 27 2018, 1:35 PM
kislinsk removed a project: Bulk Edit.