herumi / mcl

a portable and fast pairing-based cryptography library
BSD 3-Clause "New" or "Revised" License
450 stars 151 forks source link

java build broken: 'openssl/hmac.h' file not found #169

Closed levyfan closed 1 year ago

levyfan commented 1 year ago

Hi, I build java by cmake following readme but found it is broken:

Q4T9J22DT6:build levyfan$ make
[ 14%] Building CXX object CMakeFiles/mcljava.dir/mcl_wrap.cxx.o
[ 28%] Linking CXX shared library libmcljava.dylib
[ 28%] Built target mcljava
[ 42%] Building CXX object CMakeFiles/mclelgamaljava.dir/elgamal_wrap.cxx.o
In file included from /Users/levyfan/github/mcl/ffi/java/elgamal_wrap.cxx:243:
/Users/levyfan/github/mcl/ffi/java/../../include/cybozu/crypto.hpp:30:10: fatal error: 'openssl/hmac.h' file not found
#include <openssl/hmac.h>
         ^~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/mclelgamaljava.dir/elgamal_wrap.cxx.o] Error 1
make[1]: *** [CMakeFiles/mclelgamaljava.dir/all] Error 2
make: *** [all] Error 2
herumi commented 1 year ago

test_elgamal requires openssl is installled and I modified some parameters at https://github.com/herumi/mcl/commit/4931725784769da6f7194ac0b3bddc83008ed328 . But I don't maintain test_elgamal, so I may remove the test.