This guide helps you to start develop your application with DCL immediately. Step by step, this guide shows you how to create the real application from scratch.
Before starting, be sure you have the following developer tools installed:
The following third-party libraries are highly recommended (or may be required) to be installed:
Be sure that you have development versions of these libraries if you are planning to build DCL from the source code.
This guide assumes that you are developing on the UNIX/Linux platform. To develop on the Windows platform, you should install and configure MingW and MSYS building environment (does not covered by this guide).
First, you should have the DCL installed. You can install the binary packages provided to your system or compile and install library by yourself.
The binary packages of the DCL are available as DEB packages (Ubuntu, Debian GNU/Linux) and RPM packages (RedHat, CentOS, OpenSuSE GNU/Linux).
You can download and install the binaries from the SourceForge download area and Launchpad repository.
tar -jxf libdcl-0.1.0.tar.bz2
cd libdcl-0.1.0 ./configure && make && make install
After building, the library will be installed into /usr/local directory.
The DCL provides the following types of applications:
Get the appropritate application template from the 'examples/hello_world' directory and copy it into your workplace.
First, you will need to customize template building environment. To do this, open the configure.ac file and edit it for your needs (refer to the comments in this file as the documentation).
Next, start the configuration script to generate building environment:
sh ./autogen.sh
After generating, you will have working build environment for your application. You will need to configure the application for building:
./configure
After configuring, you can build your application by simply executing 'make'.
Go to the 'src' folder and open 'main.cpp' file. It contains the 'execute' method that should contain the actual code to make your application doing something useful (i.e. it's the entry point).
Add your .cpp modules and register these into Makefile.am files; extend your application functionality with help of DCL classes as much as you need; translate text resources in the 'po' directory to a different languages; build and deploy!