apache / celix

Apache Celix is a framework for C and C++14 to develop dynamic modular software applications using component and in-process service-oriented programming.
https://celix.apache.org/
Apache License 2.0
162 stars 86 forks source link

[cmake] Use a service (ad hoc) can not find CalcProviderBundle #578

Closed tonychen0924 closed 1 year ago

tonychen0924 commented 1 year ago

My project dir is RegisterService UseService RegisterService build successfully and generate CalcProviderBundle.zip in build dir . but UseService CMakeLists,txt can not find RegisterService , why ? I try to update "CalcProviderBundle" to "../RegisterService/build/RegisterService " and "RegisterService " , also can not find . / add_celix_container(CalcUserContainer BUNDLES Celix::ShellCxx Celix::shell_tui CalcProviderBundle CalcUserBundle )

PengZheng commented 1 year ago

Could you provide a sample project (in your GitHub repository) so that I can figure out what your problem is. At the first sight, it seems like a basic CMake usage issue rather than a Celix specific one. CalcProviderBundle should be a target defined by add_celix_bundle.

tonychen0924 commented 1 year ago

This demo is under celix acephere rte : Use service .

PengZheng commented 1 year ago

I still don't quite understand your issue. However, when trying to build our examples standalone, I found and fixed another seemingly unrelated issue: #580. I suggest you follow the build steps given there and build against the latest trunk.

If your issue remains, please provide us detailed build steps and command line output like #580.

PengZheng commented 1 year ago

After #580 and #581(CXX examples default off before this PR) merged, I build readme_cxx_examples successfully. If the issue remains, feel free to reopen it.

tonychen0924 commented 1 year ago

Thank you for your helping . Celix is my first open source project , so I'm not very familiar . I already test this demo successfully !

PengZheng commented 1 year ago

You're welcome.