Environment: Ubuntu 12.04, CMake version: 2.8.7, MITK v2012.12.0
Using the latest MITKPluginGenerator, generate a project.
Change the MITK_GIT_TAG to v2012.12.0 in CMake - the other parameters leave it by default values.
Configure-Generate
make -j8
Two errors occures:
- in <project>-superbuild/MITK/CMake/FindGit.cmake Command " rev-list -n 1 HEAD" in directory /home/fhauler/working_sand_box/MITK/PETCT_MR_Registration failed with output:
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
Temporary solution: in 40th line of FindGit.cmake : in execute_process put the command in quotation marks like: COMMAND '${GIT_EXECUTABLE} rev-list -n 1 HEAD'
if will build successfully.
- CMake Error at CMake/mitkFunctionGetVersion.cmake:43 (string): string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
CMakeLists.txt:368 (mitkFunctionGetVersion)
I didn't find the solution for this one yet. :(