Starting from a freshly installed Raspbian image. What I am really interested in are the Python bindings, so I am not trying particularly hard to build the other bindings.
First, let’s make sure everything is up-to-date:
sudo apt-get update
Then we need to install the packages that are required to build the core library and the Python bindings:
sudo apt-get install cmake uuid-dev libssl-dev swig python-dev
Download the latest release from: http://qpid.apache.org/proton/
wget http://mir2.ovh.net/ftp.apache.org/dist/qpid/proton/0.8/qpid-proton-0.8.tar.gz
tar xf qpid-proton-0.8.tar.gz
cd qpid-proton-0.8
Then run the following commands to build the library:
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DSYSINSTALL_BINDINGS=ON
make all
This will configure the build system to install the library and bindings in /usr/local
. To install the things, run the following command:
sudo make install
Note that the project is set up to install in /usr/local
, which makes things easier to find/uninstall later, but it means you will probably need to set LD_LIBRARY_PATH
for Python to find the shared library.
export LD_LIBRARY_PATH=/usr/local/lib
That’s all folks!