I'm trying to make an simple program to recognize smiles and frowns in photos using affectiva's sdk, the documentation states that the sdk works on ubuntu, i am on debian and i thought that it would compile, it didnt. The compiler message is this:
/usr/bin/ld: warning: libcrypto.so.1.0.0, needed by /home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so, not found (tryusing -rpath or -rpath-link)
/usr/bin/ld: warning: libwebp.so.6, needed by /usr/lib/libGraphicsMagick.so, may conflict with libwebp.so.7
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_MD_CTX_set_flags@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `CRYPTO_get_id_callback@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_CIPHER_CTX_ctrl@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_CIPHER_CTX_free@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_DigestUpdate@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_sha256@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_DigestInit_ex@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `RAND_bytes@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `CRYPTO_set_id_callback@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_CIPHER_CTX_init@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_DigestFinal@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_DecryptInit_ex@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `CRYPTO_set_locking_callback@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_aes_256_ecb@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `HMAC_Update@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `HMAC_Init_ex@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_CIPHER_CTX_cleanup@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_aes_256_ctr@OPENSSL_1.0.1'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_CIPHER_CTX_set_padding@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_MD_CTX_create@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `OPENSSL_add_all_algorithms_noconf@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_CIPHER_CTX_new@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_DecryptUpdate@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_DecryptFinal_ex@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `HMAC_CTX_init@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `CRYPTO_num_locks@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_EncryptInit_ex@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `ERR_error_string_n@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_EncryptUpdate@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `HMAC_Final@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_CIPHER_CTX_copy@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `RAND_poll@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `CRYPTO_get_locking_callback@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `HMAC_CTX_cleanup@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_aes_256_gcm@OPENSSL_1.0.1'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `ERR_get_error@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_EncryptFinal_ex@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `ERR_load_CRYPTO_strings@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_aes_256_cbc@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_MD_size@OPENSSL_1.0.0'
/home/gabriel/affectiva/affdex-cpp-sdk-4.0-75-ubuntu-xenial-xerus-x86_64bit/lib/libaffdex-native.so: undefined reference to `EVP_md5@OPENSSL_1.0.0'
collect2: error: ld returned 1 exit status
The reason for this error is the fact that the sdk is for Ubuntu or is it something about the libraries?
I had to compile libwebp because i am using Magick++ in my program.
The sdk is avaiable as pre-compiled binaries, it comes with the include files and the .so files.
About the first question i'm not sure how to check that, but i had to get libcrypto with aptitude.
I had to compile libwebp because i am using Magick++ in my program.
What Magick++?
Your error reveals that you have GraphicsMagick package and I'm sure that Debian has ImageMagick packages as well. You should not need to compile their dependencies.
i installes a package for debian but the compiler gives the same error, and the most strange thing, libcrypto.so.1.0.0 is in /lib, i tryed compilling with -Wl,-rpath=/lib and it didn't work too