From OpenSCADAWiki
Jump to: navigation, search

Building steps:

1. Create a directory to build the program:
mkdir ~/build
cd ~/build
2. Download the sources packages. It may be made from two ways:
wget http://ftp.oscada.org/OpenSCADA/Work/openscada-1+r2920.tar.xz
wget http://ftp.oscada.org/OpenSCADA/Work/openscada-res-1+r2920.tar.xz
tar -xvf openscada-1+r2920.tar.xz
cd openscada-1+r2920
tar -xvf ../openscada-res-1+r2920.tar.xz
  • [SVN] obtain the project source tree from the SVN-repository:
svn co http://oscada.org/svn/trunk/OpenSCADA/
cd OpenSCADA
3. Selection the building type:
  • binary files in one package:
ln -s data/debian debian
  • binary modules files in separate packages:
ln -s data/debian_mod debian
4. Resolve the OpenSCADA dependencies for the building, in accordance to the demands. Arguments for the command "configure" you can specify into the file "debian/rules".
5. Building:
  • build from the beginning:
dpkg-buildpackage -rfakeroot
  • skip the building and repack, it is convenient for the debugging "debian/rules":
fakeroot debian/rules binary
fakeroot debian/rules build
6. Packages are ready and available in the level above directory.