cmocka installation issues

Asked by Ashok Kumar on 2014-06-27

Hi Didier, I am getting the following error during installation. What is that build directory which is mentioned in that installation procedure? Am I doing right??

bcg@BCGA53:~/Ashok_Kumar/ROHC_Codes/ROHC-1.7.0/rohc-1.7.0/cmocka-0.4.1/build$ sudo cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
[sudo] password for bcg:
-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error at CMakeLists.txt:31 (include):
  include could not find load file:

    DefineCMakeDefaults

CMake Error at CMakeLists.txt:32 (include):
  include could not find load file:

    DefinePlatformDefaults

CMake Error at CMakeLists.txt:33 (include):
  include could not find load file:

    DefineCompilerFlags

CMake Error at CMakeLists.txt:34 (include):
  include could not find load file:

    DefineInstallationPaths

CMake Error at CMakeLists.txt:35 (include):
  include could not find load file:

    DefineOptions.cmake

CMake Error at CMakeLists.txt:36 (include):
  include could not find load file:

    CPackConfig.cmake

CMake Error at CMakeLists.txt:39 (include):
  include could not find load file:

    MacroEnsureOutOfSourceBuild

CMake Error at CMakeLists.txt:40 (macro_ensure_out_of_source_build):
  Unknown CMake command "macro_ensure_out_of_source_build".

-- Configuring incomplete, errors occurred!

Also tried as root,

root@BCGA53:/root# cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error at CMakeLists.txt:31 (include):
  include could not find load file:

    DefineCMakeDefaults

CMake Error at CMakeLists.txt:32 (include):
  include could not find load file:

    DefinePlatformDefaults

CMake Error at CMakeLists.txt:33 (include):
  include could not find load file:

    DefineCompilerFlags

CMake Error at CMakeLists.txt:34 (include):
  include could not find load file:

    DefineInstallationPaths

CMake Error at CMakeLists.txt:35 (include):
  include could not find load file:

    DefineOptions.cmake

CMake Error at CMakeLists.txt:36 (include):
  include could not find load file:

    CPackConfig.cmake

CMake Error at CMakeLists.txt:39 (include):
  include could not find load file:

    MacroEnsureOutOfSourceBuild

CMake Error at CMakeLists.txt:40 (macro_ensure_out_of_source_build):
  Unknown CMake command "macro_ensure_out_of_source_build".

-- Configuring incomplete, errors occurred!

Please help...

Question information

Language:
English Edit question
Status:
Answered
For:
rohc Edit question
Assignee:
No assignee Edit question
Last query:
2014-06-27
Last reply:
2014-06-27

Hi,

This is not a ROHC problem, but a cmocka one. Please send your questions about cmocka to the cmocka mailing-list next time (see http://cmocka.org/).

You encountered a problem because you didn't follow the installation instructions of cmocka. The http://git.cryptomilk.org/projects/cmocka.git/tree/INSTALL file tells you to run the command:
    cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ..
but you typed the command:
    sudo cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
The sudo command is useless. And the 2 dots at the very end are missing.

Regards,
Didier

Can you help with this problem?

Provide an answer of your own, or ask Ashok Kumar for more information if necessary.

To post a message you must log in.