eclipse-iceoryx / iceoryx

Eclipse iceoryx™ - true zero-copy inter-process-communication
https://iceoryx.io
Apache License 2.0
1.65k stars 384 forks source link

dds_gateway build error #209

Closed dolmens closed 3 years ago

dolmens commented 4 years ago

ubuntu 18,04 commit: 8995625153cb49163fc70e5b5746cf7486690557 cmake -Bbuild -Hiceoryx_meta -DTOML_CONFIG=ON -Ddds_gateway=ON

toml_gateway_config_parser.hpp:22:10: fatal error: cpptoml.h: No such file or directory

dolmens commented 4 years ago

I guess it is a bug in dds_gateway cmake, posh build successfully.

orecham commented 4 years ago

I'm not able to reproduce your error.

It seems that for some reason cpptoml is not being fetched / found properly. Is cpptoml.h present in build/dependencies/install/include ? What do the cmake logs say to about fetching cpptoml when you run cmake -Bbuild -Hiceoryx_meta -DTOML_CONFIG=ON -Ddds_gateway=ON ? The first thing it should do is fetch cpptoml.

Alternatively, have you tried using the script tools/iceoryx_build_test.sh ? You should be able to build with simply: tools/iceoryx_build_test.sh release with-dds-gateway

dolmens commented 4 years ago

@ithier cpptoml.h is in the right directory. I finnaly surpassed this by modifying the iceoryx_dds/CMakeLists.txt to add target_link_libraries cpptoml to the target iceoryx_dds and others.

orecham commented 4 years ago

That's strange given cpptoml is a header-only library.

mossmaurice commented 3 years ago

@dolmens Can I close this issue?

orecham commented 3 years ago

Unable to reproduce.