PengZheng opened a new pull request, #580:
URL: https://github.com/apache/celix/pull/580
This PR fixes the error when building examples standalone:
1. build and install Celix
```bash
sudo apt-get install -yq --no-install-recommends \
build-essential \
git \
curl \
uuid-dev \
libjansson-dev \
libcurl4-openssl-dev \
default-jdk \
libffi-dev \
libzip-dev \
libxml2-dev \
libczmq-dev \
libcpputest-dev \
rapidjson-dev
cd celix
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_INSTALL_PREFIX=/home/peng/Desktop/celix ..
make -j
make install
cd ../
```
2. build our examples
```bash
cd examples
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_INSTALL_PREFIX=/home/peng/Desktop/celix ..
```
```
CMake Error at CMakeLists.txt:35 (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.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]