Skip to content

Error cross compiling the library with yocto toolchain #765

Answered by martxel
martxel asked this question in Q&A
Discussion options

You must be logged in to vote

It seems the issue is that when building and linking aws-iot-device-sdk-cpp-v2, it can't find the s2n library that has been built in the first step.

It may be related to the cmake toolchain file.

As a temporary fix, I have modified the cmake toolchain file and appended the following:

list(APPEND CMAKE_FIND_ROOT_PATH "/home/user/src/src/aws-iot-device-sdk-cpp-v2/build/deps/S2N/install/")

This way, the find_package works and finds s2n, and the library builds and installs correctly.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jmklix
Comment options

Answer selected by jmklix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants