Skip to content

Build dependency missing from aws-iot-device-sdk-cpp-v2 #7

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

Closed
wants to merge 5 commits into from
Closed

Build dependency missing from aws-iot-device-sdk-cpp-v2 #7

wants to merge 5 commits into from

Conversation

Kevin-Tacheny
Copy link

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@@ -15,6 +15,7 @@ endif()

set(IS_SUBDIRECTORY_INCLUDE true)
find_package(aws-crt-cpp REQUIRED)
find_package(aws-c-cal REQUIRED)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be getting exported by aws-crt-cpp and not exposed outside of that. So if it’s not being picked up, we need to fix it there.

@Kevin-Tacheny
Copy link
Author

Kevin-Tacheny commented Mar 1, 2019 via email

@JonathanHenson
Copy link
Contributor

now I'm actually confused. The HEAD of aws-crt-cpp already exports aws-c-cal. Were you just finding this error on the tag we recommended?

@Kevin-Tacheny
Copy link
Author

Kevin-Tacheny commented Mar 5, 2019 via email

@Kevin-Tacheny
Copy link
Author

Here is the failure when building v2: As I am new to CMake I don't know how this should be fixed and/or where. My explicit inclusion of aws-c-cal was so we could move forward.

cmake -DCMAKE_INSTALL_PREFIX=/projects/out -DCMAKE_PREFIX_PATH=/projects/out -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug ../ -- The CXX compiler identification is GNU 6.3.0 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found LibCrypto: /usr/lib/arm-linux-gnueabihf/libcrypto.so -- Libcrypto Include Dir: /usr/include -- Configuring done CMake Error at jobs/CMakeLists.txt:42 (add_library): Target "IotJobs-cpp" links to target "AWS::aws-c-cal" 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 shadow/CMakeLists.txt:42 (add_library): Target "IotShadow-cpp" links to target "AWS::aws-c-cal" 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 samples/jobs/describe_job_execution/CMakeLists.txt:10 (add_executable): Target "describe-job-execution" links to target "AWS::aws-c-cal" 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 samples/shadow/shadow_sync/CMakeLists.txt:10 (add_executable): Target "shadow-sync" links to target "AWS::aws-c-cal" 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 jobs/CMakeLists.txt:42 (add_library): Target "IotJobs-cpp" links to target "AWS::aws-c-cal" 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 shadow/CMakeLists.txt:42 (add_library): Target "IotShadow-cpp" links to target "AWS::aws-c-cal" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

@justinboswell
Copy link
Contributor

The above linked PR, which is now merged to master, should resolve the issues in this PR. If not, please open an issue ticket.

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

Successfully merging this pull request may close these issues.

4 participants