-
Hello. I'm having some errors when trying to build the library with a toolchain generated with yocto. I can successfully build and use the library for x86_64 with the following commands:
Then, I repeat the steps for aarch64, using the toolchain created by yocto:
When running the folllowing command (output in attached output.log):
It builds and installs S2N correctly. However, when running the build command, it builds some libraries correctly until I get this error:
It looks like it can't find the s2n.h header. The full output with the error is in the attached output2.log file. I have been able to build other libraries with the yocto toolchain and cmake with no issues. Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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:
This way, the find_package works and finds s2n, and the library builds and installs correctly. |
Beta Was this translation helpful? Give feedback.
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:
This way, the find_package works and finds s2n, and the library builds and installs correctly.