Reply
Thread Tools
Posts: 79 | Thanked: 6 times | Joined on Nov 2009
#1
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:
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:
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.
 
Posts: 79 | Thanked: 6 times | Joined on Nov 2009
#2
Anyone knows. I think I just miss a package. But which?
 
Posts: 38 | Thanked: 17 times | Joined on Oct 2009 @ Missouri
#3
Looks like you might be missing make, see here: https://bbs.archlinux.org/viewtopic.php?id=71305
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:02.