Building opensync 0.39

by

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
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: