fprime-community/system-reference Building libcamera component #2359
-
Hi, I am using the fprime-system-refernece libcamera component and when building I get this error:
The undefined reference to latomic error, indicates that the binary executable isn't properly linked to the "latomic" package provided by the cross-compiler (which I've confirmed it has). To resolve the error I have to put a "-latomic" flag and it successfully builds, but since I am running that command manually, it's not automatically copying into build artifacts. So I have to get the binary from the build-fprime-automatic directory as well as the XML instead of the build-artifacts directory. It works, but is there a way to add the latomic flag in the CMake files so I don't have to do it manually? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, you can add: |
Beta Was this translation helpful? Give feedback.
Yes, you can add:
-latomic
to yourMOD_DEPS
list for your executable (wherever you call register_fprime_deployment).