scipr-lab / libsnark

C++ library for zkSNARKs
Other
1.8k stars 570 forks source link

No package 'libcrypto' found on Windows #165

Open KimiWu123 opened 4 years ago

KimiWu123 commented 4 years ago

I got the same error as #99. The only difference is that I'm running on Windows. The solution of #99 seems not working for me.

I got the following error,

$ cmake -DWITH_PROCPS=OFF ..
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18362.
CMake Warning (dev) at CMakeLists.txt:104 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "MSVC" will no longer be dereferenced when the policy
  is set to NEW.  Since the policy is not set the OLD behavior will be used.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Checking for module 'libcrypto'
--   No package 'libcrypto' found
CMake Error at C:/Program Files/CMake/share/cmake-3.15/Modules/FindPkgConfig.cmake:458 (message):
  A required package was not found
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.15/Modules/FindPkgConfig.cmake:637 (_pkg_check_modules_internal)
  CMakeLists.txt:133 (pkg_check_modules)

I followed the instruction and installed g++, libgmp, cmake, and git in readme. I followed this post to install pkg-config and I also installed openssl under c:\program files\openssl-win32 and c:\program files (x86)\openssl-win64

Thanks

xuzhitong commented 3 years ago

Did u slove this problem?I tried to build on windows but failed.If you succeed,please share the build steps,thanks very much!