Skip to content
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

[CAPI][DEBUG] Loading interface library "liblocal__commonapi_HelloWorld:v1_0__test.so" failed (liblocal__commonapi_HelloWorld:v1_0__test.so: cannot open shared object file: No such file or directory) #44

Open
wzc81614 opened this issue Nov 21, 2023 · 1 comment

Comments

@wzc81614
Copy link

Hi,

I already checkout software to latest version
vsomeip: origin/update_3.1.37.1
capicxx-core-runtime:origin/master
capicxx-someip-runtime:origin/master

With default commonapi.ini,
will@ubuntu:~/work/capi/helloworld/build$ sudo ./HelloWorldService [CAPI][INFO] Loading configuration file '/etc/commonapi.ini' [CAPI][INFO] Using default binding 'dbus' [CAPI][INFO] Using default shared library folder '/usr/local/lib/commonapi' [CAPI][INFO] Registering function for creating "commonapi.HelloWorld:v1_0" stub adapter. [CAPI][INFO] Registering stub for "local:commonapi.HelloWorld:v1_0:test" 2023-11-21 15:29:29.572903 [info] Parsed vsomeip configuration in 0ms 2023-11-21 15:29:29.573670 [info] Configuration module loaded. 2023-11-21 15:29:29.573773 [info] Security disabled! 2023-11-21 15:29:29.574185 [info] Initializing vsomeip (3.4.9.1) application "". 2023-11-21 15:29:29.574436 [info] Instantiating routing manager [Proxy]. 2023-11-21 15:29:29.574998 [info] Client [ffff] is connecting to [0] at /tmp/vsomeip-0 2023-11-21 15:29:29.575314 [info] Application(unnamed, ffff) is initialized (11, 100). Successfully Registered Service! Waiting for calls... (Abort with CTRL+C) 2023-11-21 15:29:29.577417 [info] Starting vsomeip application "" (ffff) using 2 threads I/O nice 255 2023-11-21 15:29:29.579745 [info] main dispatch thread id from application: ffff () is: 7fe600bc1700 TID: 93654 2023-11-21 15:29:29.580360 [info] shutdown thread id from application: ffff () is: 7fe5fbfff700 TID: 93655 2023-11-21 15:29:29.581798 [info] io thread id from application: ffff () is: 7fe6013c2700 TID: 93653 2023-11-21 15:29:29.581919 [info] io thread id from application: ffff () is: 7fe5fb7fe700 TID: 93656 2023-11-21 15:29:32.584155 [warning] Client 0xffff request client timeout! Trying again... 2023-11-21 15:29:32.585372 [info] local_uds_client_endpoint_impl::receive_cbk Error: Operation canceled 2023-11-21 15:29:35.598540 [warning] Client 0xffff request client timeout! Trying again... 2023-11-21 15:29:35.599779 [info] local_uds_client_endpoint_impl::receive_cbk Error: Operation canceled 2023-11-21 15:29:39.608971 [warning] Client 0xffff request client timeout! Trying again... 2023-11-21 15:29:39.610129 [info] local_uds_client_endpoint_impl::receive_cbk Error: Operation canceled

But we want to use someip in commonapi, so I would like push below setting file to /etc/commonapi.ini, so the error occuring in the console.
[default]
binding=someip

[logging]
console = true
file = ./mylog.log
dlt = true
level = verbose

//log
will@ubuntu:/work/capi/helloworld/build$ ./HelloWorldService
./HelloWorldService: error while loading shared libraries: libboost_thread.so.1.82.0: cannot open shared object file: Permission denied
will@ubuntu:
/work/capi/helloworld/build$ sudo ./HelloWorldService
[CAPI][INFO] Loading configuration file '/etc/commonapi.ini'
[CAPI][INFO] Using default binding 'someip'
[CAPI][INFO] Using default shared library folder '/usr/local/lib/commonapi'
[CAPI][DEBUG] Added address mapping: local:commonapi.HelloWorld:v1_0:test <--> [1234.5678(1.0)]
[CAPI][INFO] Registering function for creating "commonapi.HelloWorld:v1_0" stub adapter.
[CAPI][DEBUG] Loading library for local:commonapi.HelloWorld:v1_0:test stub.
[CAPI][DEBUG] Loading interface library "liblocal__commonapi_HelloWorld:v1_0__test.so" failed (liblocal__commonapi_HelloWorld:v1_0__test.so: cannot open shared object file: No such file or directory)
[CAPI][INFO] Registering stub for "local:commonapi.HelloWorld:v1_0:test"
2023-11-21 15:27:28.292096 [info] Parsed vsomeip configuration in 0ms
2023-11-21 15:27:28.292810 [info] Configuration module loaded.
2023-11-21 15:27:28.293149 [info] Security disabled!
2023-11-21 15:27:28.293247 [info] Initializing vsomeip (3.4.9.1) application "".
2023-11-21 15:27:28.293472 [info] Instantiating routing manager [Proxy].
2023-11-21 15:27:28.294012 [info] Client [ffff] is connecting to [0] at /tmp/vsomeip-0
2023-11-21 15:27:28.294294 [info] Application(unnamed, ffff) is initialized (11, 100).
Successfully Registered Service!
Waiting for calls... (Abort with CTRL+C)
2023-11-21 15:27:28.296454 [info] Starting vsomeip application "" (ffff) using 2 threads I/O nice 255
2023-11-21 15:27:28.298264 [info] main dispatch thread id from application: ffff () is: 7ff3008d0700 TID: 93633
2023-11-21 15:27:28.298770 [info] shutdown thread id from application: ffff () is: 7ff2fbfff700 TID: 93634
2023-11-21 15:27:28.299906 [info] io thread id from application: ffff () is: 7ff3010d1700 TID: 93632
2023-11-21 15:27:28.300060 [info] io thread id from application: ffff () is: 7ff2fb7fe700 TID: 93635
2023-11-21 15:27:31.308967 [warning] Client 0xffff request client timeout! Trying again...
2023-11-21 15:27:31.310161 [info] local_uds_client_endpoint_impl::receive_cbk Error: Operation canceled

#22 , I also try to add local:commonapi.HelloWorld:v1_0:HelloWorld-someip.so to commonapi.ini, seem don't fix the issue.

Anyone has solution for this issue? Could you share the fix? Thanks.

@dibpinto
Copy link
Collaborator

dibpinto commented Feb 8, 2024

The CMakeLists.txt file was updated and a new line was added: "set(PRJ_NAME HelloWorld)".
Please verify if it's now working as expected.

@Gustavo1515 @goncaloalmeida

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants