Author Topic: cmake error  (Read 2065 times)

0 Members and 1 Guest are viewing this topic.

Offline jamesc

I'm getting a basic cmade error.  I guess this is not BitShares related, but I don't see anything like it on the web.  Does this make any since?

Ubuntu 12.04

 # cmake .
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:/BitShares/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:/BitShares/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!

This is in a minimal ubuntu environment, so I may be missing a dependancy that one might usually expect.  This is how to recreate the entire environment and build error:

# BitShares
sudo su
# https://help.ubuntu.com/lts/serverguide/lxc.html
apt-get install lxc --assume-yes
lxc-create -n bitshares -t ubuntu -- --release precise
lxc-start -n bitshares -d
lxc-wait  -n bitshares
lxc-attach -n bitshares
# https://github.com/InvictusInnovations/BitShares
apt-get install g++-4.6 --assume-yes
apt-get install wget --assume-yes
# http://www.boost.org/users/history/version_1_54_0.html
wget -O boost_1_54_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.54.0/boost_1_54_0.tar.gz/download
tar xzf boost_1_54_0.tar.gz
rm boost_1_54_0.tar.gz
pushd boost_1_54_0/
#???
popd
# https://github.com/InvictusInnovations/BitShares
apt-get install cmake --assume-yes
apt-get install uuid-dev
apt-get install git --assume-yes
git clone https://github.com/InvictusInnovations/BitShares.git
cd BitShares
git clone https://github.com/InvictusInnovations/fc.git
cmake .
make