vsomeip用例不能连接/tmp/vsomeip-0

1.

2021-10-30 11:52:51.308093 [info] Parsed vsomeip configuration in 0ms
2021-10-30 11:52:51.309115 [info] Using configuration file: "/etc/vsomeip.json".
2021-10-30 11:52:51.309454 [info] Configuration module loaded.
2021-10-30 11:52:51.309645 [info] Initializing vsomeip application "World".
2021-10-30 11:52:51.309885 [info] Instantiating routing manager [Proxy].
2021-10-30 11:52:51.310282 [info] Client [ffff] is connecting to [0] at /tmp/vsomeip-0
2021-10-30 11:52:51.310622 [info] Application(World, ffff) is initialized (11, 100).
2021-10-30 11:52:51.311284 [info] Starting vsomeip application "World" (ffff) using 2 threads I/O nice 255
2021-10-30 11:52:51.312993 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2021-10-30 11:52:51.312972 [info] shutdown thread id from application: ffff (World) is: 7f4f94065700 TID: 10839
2021-10-30 11:52:51.314157 [info] io thread id from application: ffff (World) is: 7f4f9681d740 TID: 10837
2021-10-30 11:52:51.313092 [info] main dispatch thread id from application: ffff (World) is: 7f4f94866700 TID: 10838
2021-10-30 11:52:51.314674 [info] routing_manager_proxy::on_disconnect: Client 0xffff calling host_->on_state with DEREGISTERED
2021-10-30 11:52:51.314547 [info] io thread id from application: ffff (World) is: 7f4f93864700 TID: 10840
2021-10-30 11:52:51.317177 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2021-10-30 11:52:51.318232 [info] routing_manager_proxy::on_disconnect: Client 0xffff calling host_->on_state with DEREGISTERED
2021-10-30 11:52:51.320024 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2021-10-30 11:52:51.321140 [info] routing_manager_proxy::on_disconnect: Client 0xffff calling host_->on_state with DEREGISTERED
2021-10-30 11:52:52.322762 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2021-10-30 11:52:52.323828 [info] routing_manager_proxy::on_disconnect: Client 0xffff calling host_->on_state with DEREGISTERED
2021-10-30 11:52:52.325413 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2021-10-30 11:52:52.325846 [info] routing_manager_proxy::on_disconnect: Client 0xffff calling host_->on_state with DEREGISTERED
2021-10-30 11:52:54.327077 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (No such file or directory / 2)
2021-10-30 11:52:54.328164 [info] routing_manager_proxy::on_disconnect: Client 0xffff calling host_->on_state with DEREGISTERED

原因:配置文件问题,检查配置文件,如果是service端执行命令加上 VSOMEIP_APPLICATION_NAME=程序名

即VSOMEIP_CONFIGURATION=配置文件 VSOMEIP_APPLICATION_NAME=程序名 ./程序名

2.

/usr/bin/ld: CMakeFiles/adu_service.dir/src/adu_service_main.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: 无法添加符号: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/adu_service.dir/build.make:94: recipe for target 'adu_service' failed
make[2]: *** [adu_service] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/adu_service.dir/all' failed
make[1]: *** [CMakeFiles/adu_service.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2


CMakeLists.txt中添加find_package(Threads REQUIRED)

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

linconi

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值