open-license-manager / licensecc

Software licensing, copy protection in C++. It has few dependencies and it's cross-platform.
http://open-license-manager.github.io/licensecc/
BSD 3-Clause "New" or "Revised" License
947 stars 300 forks source link

Build error (undefined reference to `EVP_PKEY_CTX_set_rsa_keygen_bits') #146

Open fineless71 opened 1 year ago

fineless71 commented 1 year ago

I'm trying to build licensecc on Arch Linux and I get an error. I've tried on the develop branch and v2.0.0. First I ran cmake .. -DCMAKE_INSTALL_PREFIX=../install -DOPENSSL_INCLUDE_DIR=/usr/include/openssl -DOPENSSL_SSL_LIBRARY=/usr/lib -DOPENSSL_CRYPTO_LIBRARY=/usr/lib/libcrypto.so.1.1, from this comment, which worked. Then I ran make and got this error:

[ 11%] Building CXX object extern/license-generator/src/license_generator/CMakeFiles/lccgen.dir/open-license-main.cpp.o
[ 12%] Linking CXX executable lccgen
/usr/bin/ld: liblicense_generator_lib.a(crypto_helper_ssl.cpp.o): in function `license::CryptoHelperLinux::generateKeyPair()':
crypto_helper_ssl.cpp:(.text+0xf4): undefined reference to `EVP_PKEY_CTX_set_rsa_keygen_bits'
/usr/bin/ld: liblicense_generator_lib.a(crypto_helper_ssl.cpp.o): in function `license::CryptoHelperLinux::signString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const':
crypto_helper_ssl.cpp:(.text+0x6f4): undefined reference to `EVP_DigestSignUpdate'
collect2: error: ld returned 1 exit status
make[2]: *** [extern/license-generator/src/license_generator/CMakeFiles/lccgen.dir/build.make:106: extern/license-generator/src/license_generator/lccgen] Error 1
make[1]: *** [CMakeFiles/Makefile2:1220: extern/license-generator/src/license_generator/CMakeFiles/lccgen.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
wenkane commented 1 year ago

I also ran into this problem, how did you fix it?

fineless71 commented 1 year ago

I also ran into this problem, how did you fix it?

I didn't :frowning_face: