-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use CMake to build c++-ros2-dataflow #446
Comments
I'm not familiar with cmake, so I'm not sure if I can help you with the details, but I try to take a look. Maybe @XxChang can help? |
Please run it with LoL. My negligence. The case of out-of-tree compile fails because the To fix these bugs, please modify DoraTargets.cmake
with
replace
with
and how to build with a existing cmake project? May be you can learn more from this repo |
Thanks a lot!
So we should perform these changes in the repo? |
There is no problem with but when people want to do it on a separate project, it will fail. So please perform these changes. Thanks. |
@XxChang with current latest code from main , to add above changes in DoraTargets.cmake, When I run
then I change to run
It may also caused by my Ubuntu environment. Let me verify this with another ubuntu 20.04 |
You should run or
or just
The former will build the dora with the existing dora project. |
I got different error when running
|
see PR #453 |
fix it on #460 |
We are trying to start dora integration with examples/c++-ros2-dataflow
There are some C++ existing system built with cmake while dora c++-ros2-dataflow is built with cargo. Can this c++-ros2-dataflow example provide a cmake example so that dora modules can be easily integrated to cmake system?
There is a similar one in examples/cmake-dataflow which may be used as a base , however
when running the below from a Ubuntu 20.04 with Cmake 3.28
cd build && cmake ..
make install
I got error: failed to run custom build command for
dora-node-api-cxx v0.3.2 (/home/demo/Public/github_dora/dora/examples/cmake-dataflow/build/dora/src/Dora/apis/c++/node)
It will be great if this cmake example cmake build issue can be resolved. And then apply to c++-ros2-dataflow exmaple ? Please provide instructions how to build and run , for example the current command to run is
cargo run --example cxx-ros2-dataflow --features ros2-examples
After applied to cmake, do we still run with this or different command ?
The text was updated successfully, but these errors were encountered: