./cyber/examples/cyber_example_talker: symbol lookup error: /home/fengmao/rima/CyberRT/build/libcyber.so: undefined symbol: _ZN8eprosima7fastcdr3Cdr9serializeEPKcm
fengmao31 opened this issue · 4 comments
fengmao31 commented
fengmao@fengmao-ThinkPad-S5:~/rima/CyberRT/build$ ./cyber/examples/cyber_example_talker
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0307 17:10:15.216253 17417 class_loader_utility.h:79] []registerclass:Circle,Base,
I0307 17:10:15.216567 17417 class_loader_utility.h:79] []registerclass:Rect,Base,
I0307 17:10:15.216598 17417 class_loader_utility.h:79] []registerclass:Triangle,Base,
I0307 17:10:15.216619 17417 class_loader_utility.h:79] []registerclass:Star,Base,
I0307 17:10:15.216645 17417 class_loader_utility.h:79] []registerclass:Apple,Base,
I0307 17:10:15.216668 17417 class_loader_utility.h:79] []registerclass:Pear,Base,
I0307 17:10:15.216696 17417 class_loader_utility.h:79] []registerclass:Banana,Base,
I0307 17:10:15.216722 17417 class_loader_utility.h:79] []registerclass:Peach,Base,
I0307 17:10:15.217905 17417 global_data.cc:153] [cyber_example_talker]host ip: 192.168.0.137
W0307 17:10:15.219364 17417 scheduler_factory.cc:63] [cyber_example_talker]Scheduler conf named /home/fengmao/rima/CyberRT/build/share/conf/cyber_example_talker_17417.conf not found, use default.
I0307 17:10:15.220091 17421 processor.cc:42] [cyber_example_talker]processor_tid: 17421
I0307 17:10:15.220281 17422 processor.cc:42] [cyber_example_talker]processor_tid: 17422
I0307 17:10:15.220412 17423 processor.cc:42] [cyber_example_talker]processor_tid: 17423
I0307 17:10:15.220486 17424 processor.cc:42] [cyber_example_talker]processor_tid: 17424
I0307 17:10:15.220587 17425 processor.cc:42] [cyber_example_talker]processor_tid: 17425
I0307 17:10:15.220665 17426 processor.cc:42] [cyber_example_talker]processor_tid: 17426
I0307 17:10:15.220737 17427 processor.cc:42] [cyber_example_talker]processor_tid: 17427
I0307 17:10:15.220804 17428 processor.cc:42] [cyber_example_talker]processor_tid: 17428
I0307 17:10:15.220911 17429 processor.cc:42] [cyber_example_talker]processor_tid: 17429
I0307 17:10:15.220997 17430 processor.cc:42] [cyber_example_talker]processor_tid: 17430
I0307 17:10:15.221072 17431 processor.cc:42] [cyber_example_talker]processor_tid: 17431
I0307 17:10:15.221174 17432 processor.cc:42] [cyber_example_talker]processor_tid: 17432
I0307 17:10:15.221251 17433 processor.cc:42] [cyber_example_talker]processor_tid: 17433
I0307 17:10:15.221333 17434 processor.cc:42] [cyber_example_talker]processor_tid: 17434
I0307 17:10:15.221407 17435 processor.cc:42] [cyber_example_talker]processor_tid: 17435
I0307 17:10:15.221480 17436 processor.cc:42] [cyber_example_talker]processor_tid: 17436
W0307 17:10:15.221537 17417 environment.h:33] [cyber_example_talker]Environment variable [sysmo_start] not set, fallback to
I0307 17:10:15.221568 17417 init.cc:113] [cyber_example_talker]Register exit handle succ.
./cyber/examples/cyber_example_talker: symbol lookup error: /home/fengmao/rima/CyberRT/build/libcyber.so: undefined symbol: _ZN8eprosima7fastcdr3Cdr9serializeEPKcm
minhanghuang commented
hi @fengmao31 , you can try the following steps
cd CyberRT
source install/setup.bash
cd build
source setup.bash
./cyber/examples/cyber_example_talker
fengmao31 commented
yes. if you want to run the application, you also need source install/setup.bash, setup.bash.
I propare to make a new setup.bash to deployment.
minhanghuang commented
yes. if you want to run the application, you also need source install/setup.bash, setup.bash. I propare to make a new setup.bash to deployment.
if you third_party install /usr/local, you not need source install/setup.bash
Poet-LiBai commented
我也遇到同样的问题,应该是你的~/.bashrc里将ros的/opt/ros/foxy/setup.bash依赖添加到环境变量里了,即使你执行cyber的setup.bash,启动cyber示例仍然是会调用到/opt/ros/foxy的libfastcdr.so,可以使用ldd libcyber.so查看具体的连接库版本,要解决这个问题先注释掉加载ros的setup.bash命令,然后仅加载cyber的setup.bash,应该可以运行cyber示例了,希望对你有帮助