User Tools

Site Tools


Building owncloud client for Raspberry pi's raspbian

I use my Raspberry pi as an owncloud client to synchronize my NAS and my server. Unfortunately, the official package is not up-to-date so I have to build it by myself.

Download binaries

If you don't want to compile by yourself, you can get the installer from (See README for details).


Note: this page has been updated for client 1.7.0.

Most of the build instructions are from owncloud official website ( with some adjustments for RPI.

Get owncloud client sources from official web site here:

This tutorial assumes that the work is done on raspbian in folder /home/pi/dev/owncloud-client:

cd /home/pi/dev/owncloud-client

If not, change all paths.

On your pi:


Some dependencies are necessary to build the two packages.

For ocsync:

sudo apt-get install libsqlite3-dev libneon-dev

For mirall:

sudo apt-get install libqt4-dev libqtkeychain0 qtkeychain-dev libqt4-sql-sqlite

You will need to install cmake if not already done to build both:

sudo apt-get install cmake

Also iniparser 3.1 is required. It can be downloaded from here:


Let's build

tar -xjf mirall-1.7.0.tar.bz2
mkdir mirall-build
cd mirall-build
cmake -DCMAKE_BUILD_TYPE="Release" ../mirall-1.7.0
make install

You can also prepare a redistribuable package easily:

make package

Then, library pathes must be rebuilt using ldconfig:

sudo ldconfig

Launch at startup

If you want to launch owncloud client automatically at startup, just add this line:


at the end of /etc/xdg/lxsession/LXDE/autostart

Note that owncloud client needs a graphical session to be launched so if you want to launch the client at raspi boot, it must be configured to start X automatically.

building_owncloud_client_for_raspberry_pi_170.txt · Last modified: 2016/01/07 21:52 by sgripon

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki