This page is under heavy revision. Please refer to
http://doc.desktopgrid.hu/
for up-to-date information and documentation.
Application development for the BOINC environment

In this section the procedure of compiling a BOINC application using the DC-API will be demonstrated. You can find the test application - Uppercase-example - in the following directory: /usr/share/doc/libdcapi-common-dev/examples/uppercase-with-callback

Preparing the environment

If you haven't done so yet at the server installation section, add the following line to the /etc/apt/sources.list file:
  deb http://www.desktopgrid.hu/debian/ squeeze szdg
Run
  apt-get update
Install the DC-API development package, that contains the necessary libraries.
	apt-get install build-essential
	apt-get install libdcapi-boinc-dev
	apt-get install libdcapi-doc
	apt-get install make
	apt-get install autoconf
	apt-get install libtool
  
This will also install some other packages that are needed for compiling. You can compile applications under your own user account, no special privileges are required for application compiling. Create a directory named 'uppercase' in your home directory and copy the contents of /usr/share/doc/libdcapi-common-dev/examples/uppercase-with-callback into it.

Compiling

Uncompress the source files, execute autoconf, configure and finally make to get the sources compiled.
    gzip -d *.gz 
    autoreconf -if
    ./configure
    make
 
After the compilation finishes, you can find the executable of the master and client application in the same directory under the names 'uppercase-example-master' and 'uppercase-example-client', respectively.

The source of the applications is prepared to be easy to understand and modified. After you've become familiar with compiling the applications, you can modify the functionality of them as necessary.

After the application is compiled, you can continue on the next page with the deployment of the application.