Hi Marcel,
On Wed, Feb 9, 2022 at 12:54 PM Marcel Bootsma <[email protected]> wrote: > Hello, > > I just started on a project that uses Celix bundles, so I wanted to get > accounted into the system. > > I Followed the Building and Installing guide ( > https://github.com/apache/celix/blob/master/documents/building/README.md). > I tried both on a VM's running Ubuntu 18.04 and Ubuntu 20.04 > > I got the following error: Missing rapidJson > I was able to build and install this package. > Yes, the instruction to install rapid json is missing in the current build readme. I am working on an update for the documentation, which also contains an updated building info. This updated currently can be found on the following branch and location: https://github.com/pnoltes/celix/tree/feature/update_documentation/documents/building Please note that I have not tested the instruction on a clean ubuntu environment. > > After this I could build Celix and run and install it. > > Going on I tried create a simple Celix bundle ( > https://celix.apache.org/docs/2.2.1/celix/documents/getting_started/creating_a_simple_bundle.html > ) > > I get the following error: > > CMake Error at CMakeLists.txt:17 (find_package): > By not providing "FindCELIX.cmake" in CMAKE_MODULE_PATH this project has > asked CMake to find a package configuration file provided by "CELIX", but > CMake did not find one. > > Could not find a package configuration file provided by "CELIX" with any > of > the following names: > > CELIXConfig.cmake > celix-config.cmake > > Add the installation prefix of "CELIX" to CMAKE_PREFIX_PATH or set > "CELIX_DIR" to a directory containing one of the above files. If "CELIX" > provides a separate development package or SDK, be sure it has been > installed. > > From older Celix versions I see that there is a findCelix present. > Where did it go? > Did I forget something? > Something changed? > The FindCelix.cmake has been replaced with a CelixConfig.cmake file. CMake supports two ways to find packages using find_package (Module mode and a Config mode). For more info see: https://cmake.org/cmake/help/latest/command/find_package.html Do you know where you installed Celix? So is this /usr or /usr/local or /opt, /opt/local, etc I expect that if you add a CMAKE_PREFIX_PATH environment variable pointing to the Celix install location, Celix will be found. e.g.: export CMAKE_PREFIX_PATH=/opt > > Thank you in advance for any help. > > Greetings, > > Marcel Bootsma Greetings, Pepijn > > > > > > > > -------- Disclaimer -------- > This email and any files transmitted may contain proprietary and > confidential information of ICT Group or any of its subsidiaries ("ICT") > and is intended only for the (use of the) named recipient(s) above. If you > have received this message in error or are not the intended or named > recipient(s) of this message, please immediately notify the sender by > return and delete this email message from your computer. Any views or > opinions presented are solely those of its author and do not necessarily > represent those of ICT. You are hereby notified that unauthorized > disclosure, use, dissemination, forwarding, printing or copying of this > e-mail and its attachments either whole or partial of its contents is > strictly prohibited. ICT cannot guarantee that email communications are > secured and error-free and does not accept any liability for damages > resulting from the use of email. The general terms and conditions of > purchase respectively sale and delivery of ICT are applicable to all > transactions and undertakings resulting therefrom. > >
