OpenSCADAWiki: Home Page En/Doc/ Build From Source ...

Home | Index | Changes | Comments | Users | Registration | Login  Password:  
 
This is an old revision of HomePageEn/Doc/BuildFromSource from 2010-08-16 10:11:42..

Manual for OpenSCADA building from sources


Russian (1 Kb) Русская версия?
Ukrainian (1 Kb) Українська версія

Introduction

This manual made for help on OpenSCADA building from sources. In process of accumulation of experience of building for different OS Linux distributions and others platforms generally, this document will be complement for tips and details of building for different environments.


The document also contain information about preset configuration of builded system of OpenSCADA, for complete start with using of present, included to sources, demo DB.

System OpenSCADA building

Build system must be executed from normal system user name. Thus described variants of installing and execution how global and local, to user directory. Get what user login is - "user".


Before building enter as common user and change user login to your, get sources (from ftp/http-server or SVN-repository), select install method (global or local) and follow instruction:


OpenSCADA building procedure is consist this steps:

  1. Make directory for project building:
    $ mkdir ~/projects; cd ~/projects
  2. Download sources package. It may be made from two ways:
  3. Resolve OpenSCADA dependents for build, on according demands. Exclude dependents in case of inability its by help of option --disable-{ModName} into comman "configure" below, for example --disable-SoundCard.
  4. Change current directory to project's directory and build system generation, if it need:
    $ cd OpenSCADA/
    $ autoreconf -ivf

    or

    $ cd openscada-0.6.3.3
  5. Configuring building system of OpenSCADA:
    • for global building:
      $ ./configure CFLAGS="-O2" CXXFLAGS="-O2"
    • for local building make work project's directory and start configuration:
      $ mkdir ~/OScadaW; ./configure CFLAGS="-O2" CXXFLAGS="-O2" --prefix=/home/user/OScadaW
  6. Make OpenSCADA project:
    $ make
  7. Install OpenSCADA:
    • for global building:
      $ su; make install
    • for local building:
      $ make install
  8. Copy start script and configuration file of demonstration:
    • for global building:
      $ cp demo/openscada_demo /usr/bin
      $ cp demo/oscada_demo.xml /etc
    • for local building:
      $ cp demo/openscada_demo_local ~/OScadaW/bin/openscada_demo
      $ mkdir ~/OScadaW/etc; cp demo/oscada_demo_local.xml ~/OScadaW/etc/oscada_demo.xml
  9. Make data directory and fill it:
    • for global building:
      $ mkdir /var/spool/openscada
      $ mkdir /var/spool/openscada/{DATA,DEMO,icons}
      $ cp demo/*.db /var/spool/openscada/DEMO
      $ cp data/icons/* /var/spool/openscada/icons
      $ install -m 777 -d /var/spool/openscada/ARCHIVES/{MESS,VAL}
    • for local building:
      $ mkdir ~/OScadaW/share/openscada
      $ mkdir ~/OScadaW/share/openscada/{DATA,DEMO,icons}
      $ cp demo/*.db ~/OScadaW/share/openscada/DEMO
      $ cp data/icons/* ~/OScadaW/share/openscada/icons
      $ install -m 777 -d ~/OScadaW/share/openscada/ARCHIVES/{MESS,VAL}
  10. System ready to start:
    • for global building:
      $ exit; openscada_demo
    • for local building:
      $ cd ~/OScadaW/bin; ./openscada_demo

Links

Referring pages: HomePageEn/Doc
HomePageEn/Doc/ModuleBuild


 
There are no files on this page.[Display files/form]
There is no comment on this page. [Display comments/form]