Page MenuHomePhabricator

CMake Errors during the project build (v2012.12.0 release, CMake version:2.8.7)
Closed, DuplicatePublic

Description

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:

  1. 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.

  1. 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. :(

Event Timeline

Thank you for reporting this, unfortunately I won't be able to look after this bug before June 15th.