Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

MacOS -- openssl root directory flag not set for homebrew version #80

Open
gcperrin opened this issue Oct 18, 2020 · 1 comment
Open

Comments

@gcperrin
Copy link

gcperrin commented Oct 18, 2020

$ CC=gcc-10 npm install

[email protected] postinstall /Users/gcperrin/dev/crypto/koinos-miner
rm -rf build && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=.. -DCMAKE_BUILD_TYPE=Release .. && cmake --build . --target install --config Release && cd .. && rm -rf build

-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is AppleClang 12.0.0.12000032
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/bin/gcc-10 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/local/Cellar/cmake/3.18.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.18.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.18.4/share/cmake/Modules/FindOpenSSL.cmake:486 (find_package_handle_standard_args)
miner/CMakeLists.txt:2 (find_package)

-- Configuring incomplete, errors occurred!

@leviable
Copy link

I fixed this by setting the root and lib envs:

export OPENSSL_ROOT_DIR=/usr/local/opt/openssl
export OPENSSL_LIBRARIES=/usr/local/opt/openssl/lib

This did fix this error, but then let to new errors with gcc/clang and openmp

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants