Reputation: 804
-- Build of crashreporter disabled.
-- Found Qt5 core, checking for further dependencies...
-- Using Qt 5!
-- GIT_SHA1 40cdbda31285d9090d8109b10b244aa4740a5891
-- Using Qt 5.4.x
-- We would not require Neon in this setup, compile without!
CMake Error at /usr/local/Cellar/cmake/3.1.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR: Found unsuitable version "0.9.8zc", but
required is at least "1.0.0" (found
/usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.1.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:372 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.1.3/share/cmake/Modules/FindOpenSSL.cmake:318 (find_package_handle_standard_args)
CMakeLists.txt:146 (find_package)
-- Configuring incomplete, errors occurred!
Tried to install the openssl latest version 1.0.2 using "brew" and also using "mac ports" but still no luck.
Also tried to give the path as prefix to "cmake" FAILED
Replacing the dylib of "openssl" and "libcrypto" with latest version and making aliases of them FAILED
So anyone have a solution??? I'm trying to build https://github.com/owncloud/client
Upvotes: 3
Views: 1994
Reputation: 804
Okay, So i solve the problem, i was using http://ohmyz.sh and updating "PATH" in zsh is a mess. After uninstalling the zsh and reinstalling everything with "brew" solve the problem. Everything works perfectly now :)
Upvotes: 1
Reputation: 6339
Why not take the advice cmake gives you? Before running cmake, run export OPENSSL_ROOT_DIR=$(brew --prefix openssl)
in the same terminal session.
Upvotes: 8