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
After giving a second thought for this, I think it's not very common use case to cross compile samples. Samples might be tested on the host system rather than in the target system. Using -Dskip_samples=on parameter for CMake might the desired way to get the libraries for the target system.
Development Machine, OS, Compiler (and Other Relevant Toolchain Info)
Ubuntu 22.04 on WSL2
Cross Compiled using GCC 12.3 (buildroot based cross compiler)
SDK Version (Please Give Commit SHA if Manually Compiling)
master
1.10.1
1.11.0
Protocol
MQTT
Describe the Bug
iothub_client_sample_mqtt_dm sample generates error while cross-compiling because of the include path "-I/usr/include/azureiot"
The actual error message is: "ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/azureiot'"
The path is set in the sample's CMakeLists.txt file:
CMake project configured with the command
cmake -S . -B corss_build -G Ninja --toolchain custom-toolchain.cmake -DCMAKE_BUILD_TYPE=Release -Duse_http=off -Dskip_samples=off
MCVE
Console Logs
The text was updated successfully, but these errors were encountered: