Azure / azure-c-shared-utility

Azure C SDKs common code
Other
111 stars 203 forks source link

Question: wolfSSL in custom dir on Linux #517

Closed tiolan closed 3 years ago

tiolan commented 3 years ago

Is there any chance to use wolfSSL, in case it is not installed to /usr/ in Linux, but to a custom directory? Similar to what is done for Windows: https://github.com/Azure/azure-c-shared-utility/blob/071f479548c895f700c294363a8e7f064111beda/CMakeLists.txt#L425

It is not able to find the headers and I assume it will also not find the library when linking. /root/source/azure-iot-sdk-c/c-utility/adapters/tlsio_wolfssl.c:6:10: fatal error: wolfssl/options.h: No such file or directory 6 | #include "wolfssl/options.h"

CIPop commented 3 years ago

With regards to include files on Linux, no. You can either link the include files to the proper paths so they are not copied or copy them in one of the include folders our build system searches.

Libs are picked up based on LD_LIBRARY_PATH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/wolfssllibs