eclipse-iceoryx / iceoryx

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

File `source/roudi/roudi_config.cpp` is not being compiled - linker error. #311

Closed elfenpiff closed 3 years ago

elfenpiff commented 3 years ago

Required information

Observed result or behaviour:

usr/bin/ld: /usr/bin/ld: DWARF error: could not find variable specification at offset a16f6
/usr/bin/ld: DWARF error: could not find variable specification at offset a170b
/usr/bin/ld: DWARF error: could not find variable specification at offset 6c4d
/usr/bin/ld: DWARF error: could not find variable specification at offset 6e8d
CMakeFiles/larry-ui.dir/src/larry-ui.cpp.o: in function `void iox::helper::SetDefaults<iox::config::RouDiConfig>::apply<iox::Config<iox::mepoo::SegmentConfig, iox::config::RouDiConfig> >(iox::Config<iox::mepoo::SegmentConfig, iox::config::RouDiConfig>*)':
/home/elchris/Development/larry-ui/build/_deps/iceoryx-src/iceoryx_posh/include/iceoryx_posh/iceoryx_posh_config.hpp:44: undefined reference to `iox::config::RouDiConfig::setDefaults()'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/larry-ui.dir/build.make:411: larry-ui] Error 1
make[1]: *** [CMakeFiles/Makefile2:332: CMakeFiles/larry-ui.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
elfenpiff commented 3 years ago

We introduced iceoryx_posh_config. Linking against this target solves the problem.