juha-h / libbaresip-android

libbaresip for Android
Other
40 stars 29 forks source link

Could NOT find OpenSSL #30

Closed tbswork1 closed 1 year ago

tbswork1 commented 1 year ago

When building libbaresip I get the following error:

-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found suitable version "3.1.0", minimum required is "1.1.1")
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENSSL_CRYPTO_LIBRARY (ADVANCED)
    linked by target "retest" in directory /home/user/git/baresip-studio/libbaresip-android/re/test
OPENSSL_SSL_LIBRARY (ADVANCED)
    linked by target "retest" in directory /home/user/git/baresip-studio/libbaresip-android/re/test

CMake Error at CMakeLists.txt:681 (add_library):
  Target "re-shared" links to target "OpenSSL::SSL" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?

CMake Error at CMakeLists.txt:681 (add_library):
  Target "re-shared" links to target "OpenSSL::Crypto" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?

...

Also is it possible to resume the build from where it left off? Currently make install rebuilds everything.

lababidy commented 1 year ago

I applied a system variable "export OPENSSL_SSL_LIBRARY=<path_to _openssl/libbaresip-android/openssl>" and fixed the issue

juha-h commented 1 year ago

Mohannd Lababidy writes:

I applied a system variable "export OPENSSL_SSL_LIBRARY=<path_to _openssl/libbaresip-android/openssl>" and fixed the issue

Good that you got the bild working.