I downloaded the source code of cpp-ethereum.
then "mkdir build", "cd build"
but I got the error message below when I run "cmake .."
$ cmake ..
CMake Error at CMakeLists.txt:9 (include):
include could not find load file:
EthPolicy
CMake Error at CMakeLists.txt:10 (eth_policy):
Unknown CMake command "eth_policy".
-- Configuring incomplete, errors occurred!
Anyone can give me a help?
Thanks.
0 ·
Comments
CMake Error at CMakeLists.txt:10 (eth_policy):
Unknown CMake command "eth_policy".
git clone https://github.com/ethereum/cpp-ethereum-cmake
https://github.com/ethereum/cpp-ethereum/wiki/Building-on-Ubuntu
git clone --recursive https://github.com/ethereum/webthree-umbrella cd webthree-umbrella mkdir build cd build cmake .. make -j 8
Or if you only want a specific binary, replace the last command by
make -j 8 solc
# set cmake_policies
include(EthPolicy)
eth_policy()
for the webthree-umbrella CMakelist.txt
I have no problem compiling cpp-ethereum that CMakelist.txt contains the same include.
Any ideas?
I have followed the instruction on the WIKI and I also get the error:
CMake Error at CMakeLists.txt:10 (eth_policy):
Unknown CMake command "eth_policy".
I see THREE different software repositories, one the cpp-ethereum-cmake is under username and password from github.
Can some one Please, post the correct software repository, that cmake correctly functions in.
it would be best to have some one update the WIKI and place all of the code under one github repository.
Thank You
i copied eth_policy.cmake from the cpp-ethereum-cmake DIR, and renamed it to eth_policy
I did the same with the next files appearing in the CMakeLists.txt
It worked till the end, but finally some other errors appeared
1. git clone https://github.com/ethereum/webthree-umbrella
2. run getstuff.bat in webthree-umbrella\webthree-helpers\extdep directory
3. create webthree-umbrella\build
4. run "cmake .." from webthree-umbrella\build
webthree-umbrella\webthree-helpers\extdep directory is empty
- the .bat file shows errors
- the cdmake creates a further mess of recursive folders
There are 2 ways to build our projects as of this moment. Check here for details.
In Windows you do need to go inside the extdep directory and run the .bat file in order to obtain all of the dependencies.
Please do not manually copy around stuff, it is not required (and will probably cause other issues which we will be unable to help you with)
you need git clone --recursive https://github.com/ethereum/webthree-umbrella
The --recursive flags adds all the modules .Otherwise they will be EMPTY!