8000 Openssl could not find Error - Cross-compiling · Issue #6 · baresip/baresip-win32 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Openssl could not find Error - Cross-compiling #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jasper-mistral opened this issue Aug 26, 2022 · 8 comments
Open

Openssl could not find Error - Cross-compiling #6

jasper-mistral opened this issue Aug 26, 2022 · 8 comments
8000

Comments

@jasper-mistral
Copy link

The libraries libcrypto.a & libssl.a generated in openssl folder using 'make openssl' command
Got below errors in 'make' command

Error Log :

j@LAP3U:~/baresip_win32/baresip-win32$ make
cmake
-S re
-B re/build
-DCMAKE_TOOLCHAIN_FILE=/home/j/baresip_win32/baresip-win32/cmake/mingw-w64-x86_64.cmake
-DOPENSSL_ROOT_DIR=/home/j/baresip_win32/baresip-win32/openssl
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- 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 version "1.1.1m")
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:
LIB_EAY (ADVANCED)
linked by target "re" in directory /home/j/baresip_win32/baresip-win32/re
linked by target "re-shared" in directory /home/j/baresip_win32/baresip-win32/re
SSL_EAY (ADVANCED)
linked by target "re" in directory /home/j/baresip_win32/baresip-win32/re
linked by target "re-shared" in directory /home/j/baresip_win32/baresip-win32/re

-- Configuring incomplete, errors occurred!
See also "/home/j/baresip_win32/baresip-win32/re/build/CMakeFiles/CMakeOutput.log".
See also "/home/j/baresip_win32/baresip-win32/re/build/CMakeFiles/CMakeError.log".
make: *** [Makefile:104: libre.a] Error 1

@sreimers
Copy link
Member

Which system do you use? Works with CI and my test systems. Are there any openssl compile errors?

@jasper-mistral
Copy link
Author

System Info :
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
x86_64 GNU/Linux

Attached the openssl logs (make openssl)
Got few warnings, no errors. Library files are generated.
log.txt

@alfredh
Copy link
Collaborator
alfredh commented Sep 4, 2022

can you check if your openssl dir is in the list of ROOT_PATH variable?

https://github.com/baresip/baresip-win32/blob/main/cmake/mingw-w64-x86_64.cmake#L17

@zaped212
Copy link

I am having this same issue:
I added: message( ${CMAKE_FIND_ROOT_PATH} ) to the cmake/mingw-w64-x86_64.cmake file

Heres the log I see.
`
cmake
-S re
-B re/build
-DCMAKE_C_FLAGS="-Werror"
-DCMAKE_TOOLCHAIN_FILE=/home/user/source/baresip-win32/cmake/mingw-w64-x86_64.cmake
-DOPENSSL_ROOT_DIR=/home/user/source/baresip-win32/openssl

/usr/x86_64-w64-mingw32/home/user/source/baresip-win32/re/../openssl/home/user/source/baresip-win32/re/../re/build/home/user/source/baresip-win32/re/../rem/build

-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- 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 "1.1.1m", minimum required is "1.1.1")
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- 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 "1.1.1m", minimum required is "1.1.1")
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:
LIB_EAY (ADVANCED)
linked by target "retest" in directory /home/user/source/baresip-win32/re/test
SSL_EAY (ADVANCED)
linked by target "retest" in directory /home/user/source/baresip-win32/re/test

-- Configuring incomplete, errors occurred!
See also "/home/user/source/baresip-win32/re/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/source/baresip-win32/re/build/CMakeFiles/CMakeError.log".
make: *** [Makefile:88: libre.a] Error 1
`

@zaped212
Copy link

It may also be neat if you had a pre-generated version available for download through github as well.

@sanbroz
Copy link
sanbroz commented May 8, 2024

I also recommend a precompiled windows binary in github

@iTommix
Copy link
iTommix commented May 29, 2024

Have the same Problem on Ubuntu "Jammy":

`-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- 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 "1.1.1m", 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:
LIB_EAY (ADVANCED)
linked by target "retest" in directory /home/esil/sip/baresip-win32/re/test
SSL_EAY (ADVANCED)
linked by target "retest" in directory /home/esil/sip/baresip-win32/re/test

-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
make: *** [Makefile:88: libre.a] Error 1
`

@sreimers
Copy link
Member

How does find openssl -name "*.a" looks like? Can you re-try with updated readme and newer openssl?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
0