COVESA / vsomeip

An implementation of Scalable service-Oriented MiddlewarE over IP
Mozilla Public License 2.0
1.01k stars 647 forks source link

[BUG]: An incorrect filename causes a runtime failure #652

Open 007herelsp opened 2 months ago

007herelsp commented 2 months ago

vSomeip Version

v3.4.10

Boost Version

1.71

Environment

Android NDK+cmake

Describe the bug

vsomeip/CMakeLists.txt defined the output file name: add_library(${VSOMEIP_NAME}-cfg SHARED ${${VSOMEIP_NAME}-cfg_SRC}) add_library(${VSOMEIP_NAME}-sd SHARED ${${VSOMEIP_NAME}-sd_SRC}) add_library(${VSOMEIP_NAME}-e2e SHARED ${${VSOMEIP_NAME}-e2e_SRC})

However vsomeip/implementation/configuration/include/internal_android.hpp

define VSOMEIP_CFG_LIBRARY "libvsomeip_cfg.so"

define VSOMEIP_SD_LIBRARY "libvsomeip_sd.so"

define VSOMEIP_E2E_LIBRARY "libvsomeip_e2e.so"

This will not work at runtime because the file cannot be found

Reproduction Steps

Run the example in the Android environment after compiling using Android NDK+cmake

Expected behaviour

SD function can be enabled normally

Logs and Screenshots

no

goncaloalmeida commented 1 week ago

@007herelsp do you want to create a PR to fix this?

007herelsp commented 4 days ago

@goncaloalmeida We are working on a fix for this issue