Roland Turner

about | contact

Building opensync 0.39

The instructions (libopensync-0.39/README) suggest:

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$prefix /path/to/opensync/source/
make
make install

I have found the following to be more useful. Most importantly, the instructions above imply, incorrectly, that you can use them with an install directory of your choosing (as e.g. in ./configure –prefix in other projects). In fact, you need to use PKG_CONFIG_PATH to cause information about “installed” packages to be generated.

mkdir build
cd build
PKG_CONFIG_PATH=$(realpath ../../install)/lib/pkgconfig/ cmake -DCMAKE_INSTALL_PREFIX=$(realpath ../../install) $(realpath ..)
make
make install