Skip to content

Compilation error with AWS SDK 1.9 #719

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
marco-ceriani opened this issue Jul 1, 2021 · 2 comments
Open

Compilation error with AWS SDK 1.9 #719

marco-ceriani opened this issue Jul 1, 2021 · 2 comments

Comments

@marco-ceriani
Copy link

marco-ceriani commented Jul 1, 2021

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

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.

I already opened an issue on the upstream project aws/aws-sdk-cpp#1695.

@alex-chew
Copy link
Contributor

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?

@marco-ceriani
Copy link
Author

Hello Alex. I will try to compile the aws-c-common separately in the next days.

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

2 participants