This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Fix for cmake linking for Mesh SDK 3.2.0

When I tried building the Mesh 3.2.0 SDK on MacOS with cmake, I got link errors with the static libraries rtt and uECC.

The fix I discovered was to change the CMakeLists.txt in each example in the Mesh SDK from this:

target_link_libraries(${target}

    rtt_${PLATFORM}

    uECC_${PLATFORM})

to this:

target_link_libraries(${target}

    -Wl,--whole-archive

    rtt_${PLATFORM}

    uECC_${PLATFORM}

    -Wl,--no-whole-archive

)

It would be great if you could fix this in the next release of the Mesh SDK!

Parents Reply Children
No Data
Related