pantor / ruckig

Motion Generation for Robots and Machines. Real-time. Jerk-constrained. Time-optimal.
https://ruckig.com
MIT License
675 stars 162 forks source link

Typo in Cmake example (undefined reference to ruckig::CloudClient) #198

Open JornJorn opened 2 months ago

JornJorn commented 2 months ago

examples/CMakeLists-installed.txt contains the following line target_link_libraries(example-position PRIVATE ruckig::ruckig)

However, this gives me an error about an undefined reference to ruckig::CloudClient. Changing the line to target_link_libraries(example-position PRIVATE ruckig) solves the issue.

I didn't create a PR, as I am unsure whether the example or the implementation is incorrect.

pantor commented 2 weeks ago

Hi @JornJorn - sorry for the late response. It seems that you have installed Ruckig system-wide, and that the shared library was compiled with the BUILD_CLOUD_CLIENT =OFF flag. By changing ruckig::ruckig to ruckig, you are now compiling the source files yourself that doesn't have this flag mismatch anymore. An alternative would be to disable the cloud client in your build - assuming you don't need that feature.