zookeeper-cpp icon indicating copy to clipboard operation
zookeeper-cpp copied to clipboard

Could not find Apache Ivy when run with cmake

Open ggandycong opened this issue 5 years ago • 2 comments

I have some trouble when run project with cmake. the errors listed as follows. Can anyone give me some advices about it,please?

cong@pc:~/Program/zookeeper-cpp$ cmake .
-- Software Version: 0.2.3
CMake Deprecation Warning at CMakeLists.txt:21 (cmake_policy):
  The OLD behavior for policy CMP0037 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Error at cmake/modules/ZooKeeper.cmake:30 (message):
  Could not find Apache Ivy
Call Stack (most recent call first):
  CMakeLists.txt:30 (include)


-- Configuring incomplete, errors occurred!
See also "/home/cong/Program/zookeeper-cpp/CMakeFiles/CMakeOutput.log".
cong@pc:~/Program/zookeeper-cpp$ cmake --version
cmake version 3.17.0

CMake suite maintained and supported by Kitware (kitware.com/cmake).
cong@pc:~/Program/zookeeper-cpp$ 

ggandycong avatar Nov 18 '20 17:11 ggandycong

Does /usr/share/java/ivy.jar exist on your system? If not, you need to install it (apt install ivy) or use the Docker environment with ./config/dev-env ubuntu-18.04.

tgockel avatar Nov 19 '20 18:11 tgockel

Does /usr/share/java/ivy.jar exist on your system? If not, you need to install it (apt install ivy) or use the Docker environment with ./config/dev-env ubuntu-18.04.

You are right ! I install ivy and then cmake again, some errors occurred, that could not find GTest and lcov. so much extra librariys to need.

ggandycong avatar Nov 24 '20 03:11 ggandycong