You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compilation of the encryption sdk fails when using latest 1.9.x versions of the AWS SDK. They recently switched the compilation of c libraries (e.g. as aws-c-common) to static linkage always, regardless of the value of BUILD_SHARED_LIB. But the config.cmake they produce is wrong, since it still depends on BUILD_SHARED_LIB, and produces an invalid path when building as shared libraries.
The result is the following error
Performing configure step for 'encryption_sdk'
CMake Error at <install_prefix>/aws-c-common/cmake/aws-c-common-config.cmake:8 (include):
include could not find load file:
<install_prefix>/aws-c-common/cmake/shared/aws-c-common-targets.cmake
Call Stack (most recent call first):
CMakeLists.txt:38 (find_package)
The path cmake/shared/aws-c-common-targets.cmake does not exist, since the library was compiled statically. A file exists under cmake/static/aws-c-common-targets.cmake.
Thanks for reaching out. Can you try building aws-c-common as a shared library separately, using -DBUILD_SHARED_LIB=on (i.e. independent of aws-sdk-cpp), and then try building the Encryption SDK again?
Uh oh!
There was an error while loading. Please reload this page.
Problem:
The compilation of the encryption sdk fails when using latest 1.9.x versions of the AWS SDK. They recently switched the compilation of c libraries (e.g. as aws-c-common) to static linkage always, regardless of the value of BUILD_SHARED_LIB. But the config.cmake they produce is wrong, since it still depends on BUILD_SHARED_LIB, and produces an invalid path when building as shared libraries.
The result is the following error
The path cmake/shared/aws-c-common-targets.cmake does not exist, since the library was compiled statically. A file exists under cmake/static/aws-c-common-targets.cmake.
I already opened an issue on the upstream project aws/aws-sdk-cpp#1695.
The text was updated successfully, but these errors were encountered: