Hi,
from the CMake "stack trace" you can see that the wrong CTKConfig.cmake
file is included. This file was configured for install trees and would
be copied to its proper location by a "make install" within the CTK build.
I don't know where "c:/mitk/2015.05.0/cmake/mitkConfig.cmake"is coming
from, it doesn't look like the official MITK directory layout. Anyway,
the find_package(CTK) call (which is probably in that file) picks up the
wrong CTKConfig.cmake file (the one intended for CTK install trees). The
MITK super-build does not support CTK install trees yet, we are
including the CTK-build/CTKConfig.cmake file (at least, that's the file
which is supposed to be found by find_package).
You could check your CMAKE_INSTALL_PREFX and CTK_DIR variables. On
Windows, also check the registry...
The external MITK-ProjectTemplate and the PluginGenerator are part of
the nightly test builds. So yes, every build is usually tested against
two external projects.
Best,
Sascha
On 06/12/2015 07:38 PM, Ingmar Wegner wrote:
Hi everyone,
as I was too desperate to wait longer for the release I checked out
git tag v2015.05.
I have setup ITK, VTK and DCMTK as external projects. For this I had
to fix external library dirs [1].
Then I deactivated OpenViewCore module in ModuleList.cmake and
integrated open pull request of bug 16811 (print out base data
properties).
Now I am facing a cmake error that I think comes from the folder
restructuring (ep subfolder).
CMake Error at
C:/mitk/2015.05.0/build/ep/src/CTK-build/CTK-build/CMakeFiles/CTKConfig.cmake:19
(message):
File or directory
C:/mitk/2015.05.0/build/ep/src/lib/ctk-0.1/CMake
referenced by variable CTK_CMAKE_UTILITIES_DIR does not exist !
Call Stack (most recent call first):
C:/mitk/2015.05.0/build/ep/src/CTK-build/CTK-build/CMakeFiles/CTKConfig.cmake:32
(set_and_check)
c:/mitk/2015.05.0/cmake/mitkConfig.cmake:41 (include)
After restructuring there is only one folder "ctk-0.1" located at
build/ep/src/CTK-build/CTK-build/CMake/LastConfigureStep/CMakeFiles/Export/lib/ctk-0.1/CMake
but it looks at
build/ep/src/lib/ctk-0.1/CMake
so
/CTK-build/CTK-build/CMake/LastConfigureStep/CMakeFiles/Export
would be missing after "src".
The line where the error occurs is:
set_and_check(CTK_CMAKE_DIR "${PACKAGE_PREFIX_DIR}/lib/ctk-0.1/CMake")
and the following lines as well.
When I use the superbuild this file doesn't cause problems.
Is the build already tested against an external project (external
Project Template)?
I can keep on testing if it makes sense and send the error reports /
bug reports or pull requests but I don't want to run into a false
direction here...
Best Regards and a great weekend,
Ingmar
[1]
https://github.com/MITK/MITK/commit/775ab3134299581a1ac3aa4680c47e4e1447af6a
------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users