Building OpenPanel from source

From Openpanel Documentation Wiki

Jump to: navigation, search

The OpenPanel build process is centered around our Mercurial repository. To get started you should install Mercurial on your machine. Once you have these up, you can use the wharf tool to create builds. First order of business is cloning wharf:

bash% hg clone http://hg.openpanel.com/wharf
bash% cd wharf

Now to create a full build, just type "make" and wharf will clone/pull all the necessary components and compile them. You should end up with a complete build tree inside the wharf/tree directory. Note that some dependencies (libgrace&co, lima) will be -installed- by typing "make" here.

Dependencies

An incomplete list of build dependencies for Debian/Ubuntu:

libdb4.3-dev libgdbm-dev libgdbmg1 libmysqlclient15-dev libpcre3-dev libsqlite3-dev libssl-dev sqlite3 strace zlib1g-dev

Installing a tree

Easiest way to go from a built tree to an operational installation of openpanel (sans GUI) is to copy wharf/tree/opencore to /var/opencore and start the swupd, authd and opencore daemons. Note that the build system does not handle any of the dependencies on external components (that's all packaging-based).

Building from the source tarballs

Although building from the individual source tarballs is a possibility (we recommend keeping all expanded source trees in the same directory), the components lack a 'make install' target, so getting from that to an installation tree will imply some studying of the inner workings of wharf.

Personal tools