tgockel / zookeeper-cpp

A ZooKeeper client for C++.
http://tgockel.github.io/zookeeper-cpp/
Apache License 2.0
148 stars 40 forks source link

Could not find Apache Ivy when run with cmake #126

Open ggandycong opened 3 years ago

ggandycong commented 3 years ago

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$ 
tgockel commented 3 years ago

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.

ggandycong commented 3 years ago

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.