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
158 stars 85 forks source link

celix 2.4.0 installation problem #702

Closed xinzhou0714 closed 6 months ago

xinzhou0714 commented 6 months ago

Hallo, can anyone offer help for installation?

I just followed the instructions in the online document https://celix.apache.org/docs/2.4.0/celix/documents/building/README.html

to compile and install celix source code on my ubuntu 20 laptop. And I follow the second approach(directly using CMake). I didn't get any error messages when compiling and installing.

when i type celix in my terminal, the Celix framework starts, but no Bundle was loaded.

celix

This means also that I cannot use the commands of Apache Celix Shell to interact with the framework , for example lb install ....

Can some explain to me why this happens und how to load bundles when starting the framework?

PengZheng commented 6 months ago

Your installation is OK.

Our documentation is a little out of date, it states that celix should give the following output: “Error: invalid or non-existing configuration file: ‘config.properties’.No such file or directory”, which is not the case any more. What actually happens is that the framework starts successfully with an empty configuration.

Using celix executable to try out Celix is not the easiest way of playing with Celix, since a properly written config.properties is needed. I suggest trying hello_world_c first. Once you grasp the hello_world example, adding USE_CONFIG option to the add_celix_container of hello_world_c_container will generate a valid config.properties example for you.

xinzhou0714 commented 6 months ago

Thanks!

rlenferink commented 6 months ago

@xinzhou0714 Welcome to Celix!

As @PengZheng explained, it is sometimes hard to keep documentation up to date, so if there is anything you find during the process of trying out Celix, you are most welcome to let us know by creating an issue ! Of course if you already found a solution for it yourself (or maybe via a reply in an issue), you are also more than welcome to submit a pull request for it.

The source for the release specific documentation is stored here: https://github.com/apache/celix/tree/master/documents

And the source for the other documentation on the website is stored here: https://github.com/apache/celix-site/