maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Cmake build error (https://talk.maemo.org/showthread.php?t=61352)

pingu 2010-08-29 15:31

Cmake build error
 
Hi,
I am trying to build a package from sourc on my n900 using cmake.
I succesfully installed cmake and cmake-data packages. when I type "cmake" in maemo's terminal I get:
Quote:

cmake version 2.6-patch 3
Usage

cmake [options] <path-to-source>
cmake [options] <path-to-existing-build>

Options
-C <initial-cache> = Pre-load a script to populate the cache.
-D <var>:<type>=<value> = Create a cmake cache entry.
...
--version [file] = Show program name/version banner and exit.

Generators

The following generators are available on this platform:
Unix Makefiles = Generates standard UNIX makefiles.
CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
Eclipse CDT4 - Unix Makefiles
= Generates Eclipse CDT 4.0 project files.
KDevelop3 = Generates KDevelop 3 project files.
KDevelop3 - Unix Makefiles = Generates KDevelop 3 project files.
but when I try to build someting ("cmake /path/to/source/dir/") I get this error:
Quote:

Make Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:/home/opt/blender/build_cmake/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:/home/opt/blender/build_cmake/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
CMake Error: Unable to open cache file for save. /home/opt/blender/build_cmake/CMakeCache.txt
CMake Error: : System Error: Permission denied
/home/opt/blender/build_cmake $ sudo cmake ../blender-2.50a1
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:/home/opt/blender/build_cmake/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:/home/opt/blender/build_cmake/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
I think I am missing a package or need to set a parameter because the generator exists.
Someone knows how to solve it?

BTW: I have gcc and g++ installed.

pingu 2010-08-31 18:59

Re: Cmake build error
 
Anyone knows. I think I just miss a package. But which?

kopele 2010-08-31 20:55

Re: Cmake build error
 
Looks like you might be missing make, see here: https://bbs.archlinux.org/viewtopic.php?id=71305


All times are GMT. The time now is 04:57.

vBulletin® Version 3.8.8