Export translations
Views
Special page
From OpenSCADAWiki
Jump to:
navigation
,
search
Settings
Group
About
Documents
Documents/API
Documents/DAQ
Documents/FAQ
Documents/How to
Documents/How to/Build from source
Documents/How to/Crash report
Documents/How to/Create module
Documents/How to/Create multi language project
Documents/How to/Cyclic programming
Documents/How to/Debug
Documents/How to/Install
Documents/How to/Live disk
Documents/How to/Release
Documents/How to/Transferring project configuration
Documents/How to/Violations, alarms and notifications
Documents/Program manual
Documents/Quick start
Documents/Release 0.8.0
Documents/Release 0.8.0/Update10
Documents/Release 0.8.0/Update11
Documents/Release 0.8.0/Update12
Documents/Release 0.8.0/Update13
Documents/Release 0.8.0/Update14
Documents/Release 0.8.0/Update15
Documents/Release 0.8.0/Update16
Documents/Release 0.8.0/Update17
Documents/Release 0.8.0/Update18
Documents/Release 0.8.0/Update19
Documents/Release 0.8.0/Update20
Documents/Release 0.8.0/Update3
Documents/Release 0.8.0/Update4
Documents/Release 0.8.0/Update5
Documents/Release 0.8.0/Update6
Documents/Release 0.8.0/Update7
Documents/Release 0.8.0/Update8
Documents/Release 0.8.0/Update9
Documents/Release 0.9
Documents/Release 0.9/Update 7
Documents/Release 0.9/Update1
Documents/Release 0.9/Update2
Documents/Release 0.9/Update3
Documents/Release 0.9/Update4
Documents/Release 0.9/Update5
Documents/Release 0.9/Update6
Documents/Release 0.9/Updating 0.8.0 LTS
Documents/Terms
Documents/User API
Functions and demands
Home
Libs
Libs/Devices
Libs/Documents
Libs/Electrical elements
Libs/Generic list
Libs/LowLevelDevices
Libs/Main
Libs/Main graphical elements
Libs/Mnemo elements
Libs/Prescriptions
Libs/Regulation elements
Libs/Service procedures
Libs/Technological apparatuses
Modules
Modules/BFN
Modules/BlockCalc
Modules/Comedi
Modules/DAQGate
Modules/DBArch
Modules/DBF
Modules/DBGate
Modules/DCON
Modules/DiamondBoards
Modules/FireBird
Modules/FLibComplex1
Modules/FLibMath
Modules/FLibSYS
Modules/FSArch
Modules/GPIO
Modules/HTTP
Modules/ICP DAS
Modules/JavaLikeCalc
Modules/LDAP
Modules/LogicLev
Modules/ModBus
Modules/MySQL
Modules/OPC UA
Modules/PostgreSQL
Modules/QTCfg
Modules/QTStarter
Modules/SelfSystem
Modules/Serial
Modules/Siemens
Modules/SMH2Gi
Modules/SNMP
Modules/Sockets
Modules/SoundCard
Modules/SQLite
Modules/SSL
Modules/System
Modules/SystemTests
Modules/UserProtocol
Modules/VCAEngine
Modules/Vision
Modules/WebCfg
Modules/WebCfgD
Modules/WebUser
Modules/WebVision
Sub-projects
Sub-projects/Automatic Builder of OpenSCADA
Sub-projects/Automation Linux distributive
Sub-projects/Embedding and PLC
Sub-projects/Server
Sub-projects/VCA
User:RomanSavochenko
Using
Using/HouseSpirit
Using/Kramatorsk Ball Mills
Using/Kramatorsk Water
Using/Model AGLKS
Using/Model Boiler
Using/OpenWrt TELEOFIS RTU968
Using/Yaroslavskij broiler
Works
Works/Road map
Works/Technical Support
Works/Technical Support/Agreement
Works/To do
Language
aa - Afar
ab - Abkhazian
ace - Achinese
ady - Adyghe
ady-cyrl - адыгабзэ
aeb - Tunisian Arabic
aeb-arab - تونسي
aeb-latn - Tûnsî
af - Afrikaans
ak - Akan
aln - Gheg Albanian
am - Amharic
an - Aragonese
ang - Old English
anp - Angika
ar - Arabic
arc - Aramaic
arn - Mapuche
arq - Algerian Arabic
ary - Moroccan Arabic
arz - Egyptian Arabic
as - Assamese
ase - American Sign Language
ast - Asturian
av - Avaric
avk - Kotava
awa - Awadhi
ay - Aymara
az - Azerbaijani
azb - تۆرکجه
ba - Bashkir
bar - Bavarian
bbc - Batak Toba
bbc-latn - Batak Toba
bcc - Southern Balochi
bcl - Bikol Central
be - Belarusian
be-tarask - Belarusian (Taraškievica orthography)
bg - Bulgarian
bgn - Western Balochi
bho - Bhojpuri
bi - Bislama
bjn - Banjar
bm - Bambara
bn - Bengali
bo - Tibetan
bpy - Bishnupriya
bqi - Bakhtiari
br - Breton
brh - Brahui
bs - Bosnian
bto - Iriga Bicolano
bug - Buginese
bxr - буряад
ca - Catalan
cbk-zam - Chavacano de Zamboanga
cdo - Min Dong Chinese
ce - Chechen
ceb - Cebuano
ch - Chamorro
cho - Choctaw
chr - Cherokee
chy - Cheyenne
ckb - Central Kurdish
co - Corsican
cps - Capiznon
cr - Cree
crh - Crimean Turkish
crh-cyrl - Crimean Turkish (Cyrillic script)
crh-latn - Crimean Turkish (Latin script)
cs - Czech
csb - Kashubian
cu - Church Slavic
cv - Chuvash
cy - Welsh
da - Danish
de - German
de-at - Austrian German
de-ch - Swiss High German
de-formal - German (formal address)
diq - Zazaki
dsb - Lower Sorbian
dtp - Central Dusun
dty - डोटेली
dv - Divehi
dz - Dzongkha
ee - Ewe
egl - Emilian
el - Greek
eml - Emiliano-Romagnolo
en - English
en-ca - Canadian English
en-gb - British English
eo - Esperanto
es - Spanish
et - Estonian
eu - Basque
ext - Extremaduran
fa - Persian
ff - Fulah
fi - Finnish
fit - Tornedalen Finnish
fj - Fijian
fo - Faroese
fr - French
frc - Cajun French
frp - Arpitan
frr - Northern Frisian
fur - Friulian
fy - Western Frisian
ga - Irish
gag - Gagauz
gan - Gan Chinese
gan-hans - Simplified Gan script
gan-hant - Traditional Gan script
gd - Scottish Gaelic
gl - Galician
glk - Gilaki
gn - Guarani
gom - Goan Konkani
gom-deva - Goan Konkani (Devanagari script)
gom-latn - Goan Konkani (Latin script)
got - Gothic
grc - Ancient Greek
gsw - Swiss German
gu - Gujarati
gv - Manx
ha - Hausa
hak - Hakka Chinese
haw - Hawaiian
he - Hebrew
hi - Hindi
hif - Fiji Hindi
hif-latn - Fiji Hindi (Latin script)
hil - Hiligaynon
ho - Hiri Motu
hr - Croatian
hrx - Hunsrik
hsb - Upper Sorbian
ht - Haitian Creole
hu - Hungarian
hy - Armenian
hz - Herero
ia - Interlingua
id - Indonesian
ie - Interlingue
ig - Igbo
ii - Sichuan Yi
ik - Inupiaq
ike-cans - Eastern Canadian (Aboriginal syllabics)
ike-latn - Eastern Canadian (Latin script)
ilo - Iloko
inh - Ingush
io - Ido
is - Icelandic
it - Italian
iu - Inuktitut
ja - Japanese
jam - Jamaican Creole English
jbo - Lojban
jut - Jutish
jv - Javanese
ka - Georgian
kaa - Kara-Kalpak
kab - Kabyle
kbd - Kabardian
kbd-cyrl - Адыгэбзэ
kg - Kongo
khw - Khowar
ki - Kikuyu
kiu - Kirmanjki
kj - Kuanyama
kk - Kazakh
kk-arab - Kazakh (Arabic script)
kk-cn - Kazakh (China)
kk-cyrl - Kazakh (Cyrillic script)
kk-kz - Kazakh (Kazakhstan)
kk-latn - Kazakh (Latin script)
kk-tr - Kazakh (Turkey)
kl - Kalaallisut
km - Khmer
kn - Kannada
ko - Korean
ko-kp - 한국어 (조선)
koi - Komi-Permyak
kr - Kanuri
krc - Karachay-Balkar
kri - Krio
krj - Kinaray-a
ks - Kashmiri
ks-arab - Kashmiri (Arabic script)
ks-deva - Kashmiri (Devanagari script)
ksh - Colognian
ku - Kurdish
ku-arab - كوردي (عەرەبی)
ku-latn - Kurdish (Latin script)
kv - Komi
kw - Cornish
ky - Kyrgyz
la - Latin
lad - Ladino
lb - Luxembourgish
lbe - лакку
lez - Lezghian
lfn - Lingua Franca Nova
lg - Ganda
li - Limburgish
lij - Ligurian
liv - Livonian
lmo - Lombard
ln - Lingala
lo - Lao
loz - Lozi
lrc - Northern Luri
lt - Lithuanian
ltg - Latgalian
lus - Mizo
luz - Southern Luri
lv - Latvian
lzh - Literary Chinese
lzz - Laz
mai - Maithili
map-bms - Basa Banyumasan
mdf - Moksha
mg - Malagasy
mh - Marshallese
mhr - Eastern Mari
mi - Maori
min - Minangkabau
mk - Macedonian
ml - Malayalam
mn - Mongolian
mo - молдовеняскэ
mr - Marathi
mrj - Western Mari
ms - Malay
mt - Maltese
mus - Creek
mwl - Mirandese
my - Burmese
myv - Erzya
mzn - Mazanderani
na - Nauru
nah - Nāhuatl
nan - Min Nan Chinese
nap - Neapolitan
nb - Norwegian Bokmål
nds - Low German
nds-nl - Low Saxon
ne - Nepali
new - Newari
ng - Ndonga
niu - Niuean
nl - Dutch
nl-informal - Nederlands (informeel)
nn - Norwegian Nynorsk
nov - Novial
nrm - Nouormand
nso - Northern Sotho
nv - Navajo
ny - Nyanja
oc - Occitan
olo - Livvi-Karelian
om - Oromo
or - Oriya
os - Ossetic
pa - Punjabi
pag - Pangasinan
pam - Pampanga
pap - Papiamento
pcd - Picard
pdc - Pennsylvania German
pdt - Plautdietsch
pfl - Palatine German
pi - Pali
pih - Norfuk / Pitkern
pl - Polish
pms - Piedmontese
pnb - Western Punjabi
pnt - Pontic
prg - Prussian
ps - Pashto
pt - Portuguese
pt-br - Brazilian Portuguese
qu - Quechua
qug - Chimborazo Highland Quichua
rgn - Romagnol
rif - Riffian
rm - Romansh
rmy - Romani
rn - Rundi
ro - Romanian
roa-tara - tarandíne
ru - Russian
rue - Rusyn
rup - Aromanian
ruq - Megleno-Romanian
ruq-cyrl - Megleno-Romanian (Cyrillic script)
ruq-latn - Megleno-Romanian (Latin script)
rw - Kinyarwanda
sa - Sanskrit
sah - Sakha
sat - Santali
sc - Sardinian
scn - Sicilian
sco - Scots
sd - Sindhi
sdc - Sassarese Sardinian
sdh - Southern Kurdish
se - Northern Sami
sei - Seri
ses - Koyraboro Senni
sg - Sango
sgs - Samogitian
sh - Serbo-Croatian
shi - Tachelhit
shi-latn - Tašlḥiyt
shi-tfng - ⵜⴰⵛⵍⵃⵉⵜ
si - Sinhala
sk - Slovak
sl - Slovenian
sli - Lower Silesian
sm - Samoan
sma - Southern Sami
sn - Shona
so - Somali
sq - Albanian
sr - Serbian
sr-ec - Serbian (Cyrillic script)
sr-el - Serbian (Latin script)
srn - Sranan Tongo
ss - Swati
st - Southern Sotho
stq - Saterland Frisian
su - Sundanese
sv - Swedish
sw - Swahili
szl - Silesian
ta - Tamil
tcy - Tulu
te - Telugu
tet - Tetum
tg - Tajik
tg-cyrl - Tajik (Cyrillic script)
tg-latn - Tajik (Latin script)
th - Thai
ti - Tigrinya
tk - Turkmen
tl - Tagalog
tly - Talysh
tn - Tswana
to - Tongan
tokipona - Toki Pona
tpi - Tok Pisin
tr - Turkish
tru - Turoyo
ts - Tsonga
tt - Tatar
tt-cyrl - Tatar (Cyrillic script)
tt-latn - Tatar (Latin script)
tum - Tumbuka
tw - Twi
ty - Tahitian
tyv - Tuvinian
tzm - Central Atlas Tamazight
udm - Udmurt
ug - Uyghur
ug-arab - Uyghur (Arabic script)
ug-latn - Uyghur (Latin script)
uk - Ukrainian
ur - Urdu
uz - Uzbek
uz-cyrl - ўзбекча
uz-latn - oʻzbekcha
ve - Venda
vec - Venetian
vep - Veps
vi - Vietnamese
vls - West Flemish
vmf - Main-Franconian
vo - Volapük
vot - Votic
vro - Võro
wa - Walloon
war - Waray
wo - Wolof
wuu - Wu Chinese
xal - Kalmyk
xh - Xhosa
xmf - Mingrelian
yi - Yiddish
yo - Yoruba
yue - Cantonese
za - Zhuang
zea - Zeelandic
zh - Chinese
zh-cn - Chinese (China)
zh-hans - Simplified Chinese
zh-hant - Traditional Chinese
zh-hk - Chinese (Hong Kong)
zh-mo - 中文(澳門)
zh-my - 中文(马来西亚)
zh-sg - Chinese (Singapore)
zh-tw - Chinese (Taiwan)
zu - Zulu
qqq - Message documentation
Format
Export for off-line translation
Export in native format
{{DISPLAYTITLE:Документы/Как/Собрать из исходных текстов}}<noinclude> <languages/> {{Info|* '''Author:''' [[User:RomanSavochenko|Roman Savochenko]], [http://oscada.org/en/forum/user/IrmIngeneer/ Constantine] }} </noinclude> The manual is intended to help in the building of OpenSCADA from source texts. In the process of accumulation of experience of building OpenSCADA for different OS Linux distributions and others platforms generally, the document will be appended by the features and details of the building in the environments. Pre-configuration of the built program on the latest versions of OpenSCADA is not required if used when building the "openscada-res" resource package or the source tree from the SVN repository, even after a direct build. Therefore, immediately after building and installation, the program is ready for use! [[File:at.png]] Building OpenSCADA from source texts requires experience in building free software, as well as basic knowledge of the Linux OS and the used Linux distribution. That will allow you to correctly satisfy dependencies and solve possible building problems. == OpenSCADA configuration for building == As a build system, the OpenSCADA project uses a set of utilities [http://en.wikipedia.org/wiki/GNU_build_system AutoTools]. Any building of the project under the control of AutoTools is preceded by the configuration stage for the OS environment, and sometimes the formation of the building system itself. The configuration stage, as well as the direct building, is always carried out and does not depend on whether it is a direct building or a package building. AutoTools utilities '''autoconf''', '''automake''' and '''libtool''' must be installed to create a building system. General formation can be done with the command {{InLineCode|autoreconf -if}}. A previously formed building system may sometimes need to be reformatted, for example, in the case of a significant difference between the OS environment of the formation and the current one! Reformation of the building system is also carried out by the previously defined formation command. The configuration of the building system is carried out by calling the {{InLineCode|configure}} command. By specifying arguments to this command, you can enable-disable an OpenSCADA function or module. You can get the entire list of available OpenSCADA configuration parameters and modules by specifying the {{InLineCode|configure --help}} argument. OpenSCADA modules are enabled and disabled by passing the arguments {{InLineCode|configure --enable-{ModName} }} and {{InLineCode|configure --disable-{ModName} }}. When selecting modules, you can specify the policy "Enable all modules" — {{InLineCode|configure --enable-AllModuls}} or "Disable all modules" — {{InLineCode|configure --disable-AllModuls}}, and further enable-disable individual modules, whichever is easier. Most OpenSCADA modules can be linked (embedded) directly into the OpenSCADA core library, rather than being built as a separate library, for which the {{InLineCode|<nowiki>configure --enable-{ModName}=incl</nowiki>}} argument must be specified. Generically you can build OpenSCADA in three binary configurations, operating the core library place by the argument {{InLineCode|configure --enable-CoreLibStatic}}: # Standard with the shared core library '''lib/liboscada.so.4.0.9''', the shared module libraries '''lib/openscada/{modTp}_{modNm}.so''' and the starting binary '''bin/openscada''' — effective on big systems with starting many OpenSCADA projects and flexible control for loaded modules. # Without the shared core library, with the shared module libraries '''lib/openscada/{modTp}_{modNm}.so''' and the starting binary '''bin/openscada''' with statically builtin code of the core library — effective on systems with fast starting one or several OpenSCADA projects and flexible control for loaded modules. # All in one starting binary '''bin/openscada''' by statically building here code of the core library and all modules — effective on very tight embedded systems for embedding all need functions in maximum small single binary. Upon successful completion of the configuration, a summary result of the settings will be generated, with which you can check the main points. Before building, you need to decide on the source of the source texts, [http://oscada.org/en/main/download/ FTP/HTTP-server or SVN-repository], and the branch of OpenSCADA that you will build. Since the LTS branch is automatically built for many Linux distributions, is rarely updated and its version changes with the release of a new LTS, this guide will consider the assembly of the working branch (Work), which, in turn, is automatically compiled for a limited range of Linux distributions, often changes and its address always the same, unless you count the revision number. As a rule, the building of the LTS branch is carried out in the same way, and in the instructions "Work" should be replaced with the LTS version and the name of the source text package should be changed. In general, the names of packages and folders should be treated carefully, because they can differ from version to version! == Direct building of OpenSCADA == Building must be done as a normal user, although for isolated environments it can also be done as a superuser. At the same time, variants for installation and execution will be considered both globally — in the system, and locally — in the user's folder. We accept the user's login (account) as "user". Log in as a normal user and replace the "user" account with yours, decide on the installation method (global or local) and follow the instructions: Steps of preparation the source tree for building: :1. Make directory for the project building: <syntaxhighlight lang="bash" style="margin-left: 40px"> mkdir ~/projects cd ~/projects </syntaxhighlight> :2. Download the sources package. It may be made from two ways: :* [TAR] download TAR archive from the FTP/HTTP-server http://ftp.oscada.org/OpenSCADA/ and unpack it, for example: <syntaxhighlight lang="bash" style="margin-left: 40px"> 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 </syntaxhighlight> :* [SVN] obtain the project source tree from the SVN-repository: <syntaxhighlight lang="bash" style="margin-left: 40px"> svn co http://oscada.org/svn/trunk/OpenSCADA/ cd OpenSCADA </syntaxhighlight> :3. Resolve the OpenSCADA dependencies for the building, in accordance to [[Special:MyLanguage/Functions_and_demands#Building|the demands]]. :4. [SVN] Generate of the building system, when download from the SVN-repository: <syntaxhighlight lang="bash" style="margin-left: 40px"> autoreconf -ivf </syntaxhighlight> Steps of the global building: :1. Configure the building system of OpenSCADA: <syntaxhighlight lang="bash" style="margin-left: 20px"> ./configure </syntaxhighlight> :2. Build OpenSCADA: <syntaxhighlight lang="bash" style="margin-left: 20px"> make </syntaxhighlight> :3. Install OpenSCADA: <syntaxhighlight lang="bash" style="margin-left: 20px"> su # Entry for superuser make install </syntaxhighlight> :5. The program is ready to start up: <syntaxhighlight lang="bash" style="margin-left: 20px"> exit openscada </syntaxhighlight> Steps of the local building: :1. Configure the building system of OpenSCADA: <syntaxhighlight lang="bash" style="margin-left: 20px"> mkdir ~/OScadaW ./configure --prefix=/home/user/OScadaW </syntaxhighlight> :2. Build OpenSCADA: <syntaxhighlight lang="bash" style="margin-left: 20px"> make </syntaxhighlight> :3. Install OpenSCADA: <syntaxhighlight lang="bash" style="margin-left: 20px"> make install </syntaxhighlight> :4. The program is ready to start up: <syntaxhighlight lang="bash" style="margin-left: 20px"> cd ~/OScadaW/bin ./openscada </syntaxhighlight> == Сборка пакетов OpenSCADA для дистрибутива Linux == === Дистрибутивы основанный на Debian — пакеты DEB === Для сборки DEB-пакетов OpenSCADA Вам понадобятся архивы исходных текстов и ресурсов. Сборка DEB-пакетов производится в директории "debian" со скриптами сборки, которая содержится в архивах исходных текстов OpenSCADA. Building steps: :1. Create a directory to build the program: <syntaxhighlight lang="bash" style="margin-left: 40px"> mkdir ~/build cd ~/build </syntaxhighlight> :2. Download the sources packages. It may be made from two ways: :* [TAR] download TAR archive from the FTP/HTTP-server http://ftp.oscada.org/OpenSCADA/ and unpack it, for example: <syntaxhighlight lang="bash" style="margin-left: 40px"> 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 </syntaxhighlight> :* [SVN] obtain the project source tree from the SVN-repository: <syntaxhighlight lang="bash" style="margin-left: 40px"> svn co http://oscada.org/svn/trunk/OpenSCADA/ cd OpenSCADA </syntaxhighlight> :3. Selection the building type: :* binary files in one package: <syntaxhighlight lang="bash" style="margin-left: 40px"> ln -s data/debian debian </syntaxhighlight> :* binary modules files in separate packages: <syntaxhighlight lang="bash" style="margin-left: 40px"> ln -s data/debian_mod debian </syntaxhighlight> :4. Resolve the OpenSCADA dependencies for the building, in accordance to [[Special:MyLanguage/Functions_and_demands#Building|the demands]]. Arguments for the command "configure" you can specify into the file "debian/rules". :5. Building: :* build from the beginning: <syntaxhighlight lang="bash" style="margin-left: 40px"> dpkg-buildpackage -rfakeroot </syntaxhighlight> :* skip the building and repack, it is convenient for the debugging "debian/rules": <syntaxhighlight lang="bash" style="margin-left: 40px"> fakeroot debian/rules binary fakeroot debian/rules build </syntaxhighlight> :6. Packages are ready and available in the level above directory. === RedHat-based distributions — RPM packages === For building OpenSCADA RPM packages, you will need source texts archives, resources, and a RPM package specification file ([http://oscada.org/svn/trunk/OpenSCADA/data/ openscada.spec, openscada_mod_ALT.spec, openscada_mod_RH.spec]), or a SRPM package of all these source materials. Файл спецификации RPM-пакетов и SRPM-пакет могут отличаться для разных дистрибутивов Linux, учитывая их особенности, поэтому нужно стараться загружать их в соответствии с дистрибутивом. Если специальный SRPM пакет отсутствует то можно попробовать собрать из унифицированного файла спецификации (openscada.spec) в основном SRPM пакете или пакете ресурсов. Building the RPM packages takes place in a directory with a special structure that is usually created when installing the appropriate distribution package (as "rpm-build"). This directory, depending on the distribution, is located in the user's home directory or in the "/usr/src" directory. Known facts of location of the directory ''RPMBuildDir'' of RPM Packages of different distributions: * "~/rpmbuild" — [https://www.redhat.com RedHat], [https://www.centos.org/ CentOS], Mandriva, [http://fedoraproject.org Fedora] * "/usr/src/packages" — [https://www.opensuse.org/ SuSE] * "~/RPM" — [http://altlinux.com ALTLinux] If you have no directory of RPM packets after installing the specialized package, then you need to create it with the command: <syntaxhighlight lang="bash"> install -m 755 -d ~/rpmbuild/{SPECS,SOURCES} # RedHat, CentOS, Mandriva, Fedora install -m 755 -d /usr/src/packages/{SPECS,SOURCES} # SuSE install -m 755 -d ~/RPM/{SPECS,SOURCES} # ALTLinux </syntaxhighlight> Building steps at the RPM specification file: :1. Locate the OpenSCADA archives and the specification file in the RPM build folder (the source files are pre-located in the current directory): <syntaxhighlight lang="bash" style="margin-left: 40px"> cp openscada-1+r2920.tar.xz openscada-res-1+r2920.tar.xz {RPMBuildDir}/SOURCES cp openscada.spec {RPMBuildDir}/SPECS </syntaxhighlight> :2. Resolve of the OpenSCADA project's dependencies for building in accordance with [[Special:MyLanguage/Functions_and_demands#Building|the requirements]]. Arguments for the command "configure" you can specify into the file "openscada.spec". :3. Build the packages :* build from the beginning: <syntaxhighlight lang="bash" style="margin-left: 40px"> rpmbuild -bb {RPMBuildDir}/SPECS/openscada.spec </syntaxhighlight> :* only the installation and packaging from the etersoft rpm-utilities package (useful when configuring openscada.spec file): <syntaxhighlight lang="bash" style="margin-left: 40px"> rpmbb -i {RPMBuildDir}/SPECS/openscada.spec </syntaxhighlight> :4. Packages are ready and available in the directory "{RPMBuildDir}/RPMS" for the appropriate architecture. Building steps for the SRPMS package: :1. Resolve of the OpenSCADA project's dependencies for building in accordance with [[Special:MyLanguage/Functions_and_demands#Building|the requirements]]. :2. Build of the packages (the source files pre-placed in the current directory): <syntaxhighlight lang="bash" style="margin-left: 40px"> rpmbuild --rebuild openscada-1+r2920.src.rpm </syntaxhighlight> :3. Packages are ready and available in the directory "{RPMBuildDir}/RPMS" for the appropriate architecture. === Gentoo — метадистрибутив === OpenSCADA не входит в официальное дерево portage Gentoo, поэтому сборка производится из оверлея. Перед сборкой самого пакета OpenSCADA, portage удовлетворит зависимости, т.е. соберет недостающие пакеты (если необходимо). :1. Create an overlay "portage" by description of the path for an overlay tree, that is, in "/etc/make.conf" you need to write a line <pre style="margin-left: 40px"> PORTDIR_OVERLAY="/usr/local/portage" </pre> :2. Create a directory "/usr/local/portage/dev-util/openscada/", then download the ebuild archive file from the official site and unpack it in the created folder. <syntaxhighlight lang="bash" style="margin-left: 40px"> cd /usr/local/portage/dev-util/openscada wget http://ftp.oscada.org/OpenSCADA/LTS/Gentoo/openscada-0.9.4.ebuild.tar.bz2 tar -xvf openscada-0.9.4.ebuild.tar.bz2 </syntaxhighlight> :3. You must specify the portage, that OpenSCADA is allowed to build on your platform. To do this, put the following line to the file "/etc/portage/package.keywords": <pre style="margin-left: 40px"> dev-util/openscada </pre> :4. Check: <syntaxhighlight lang="bash" style="margin-left: 40px"> emerge -vp openscada </syntaxhighlight> <pre style="margin-left: 50px"> These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ~] dev-util/openscada-0.9 USE="mysql ssl -bfn -blockcalc -daqgate -dbarch -dbase -dcon -demo -diamondboards -doc (-firebird) -flibcomplex1 -flibmath -flibsys -fsarch -http -icp_das -javalikecalc -logiclev -modbus -portaudio -qtcfg -qtstarter -selfsystem -serial -simens -snmp -sockets -sqlite -system -systemtest -vcaengine -vision -webcfg -webcfgd -webvision" 79,647 kB [1] Total: 1 package (1 reinstall), Size of downloads: 79,647 kB Portage tree and overlays: [0] /usr/portage [1] /usr/local/portage </pre> :5. If you have no connection to Internet, you have to download the sources and resources tarballs from FTP/HTTP-server of the project and place them in advance in the sources directory of the portage "/usr/portage/distfiles". If you have an Internet connection, then everything that is necessary for building will be taken from the project's server automatically. :6. It is necessary to put the required USE-flags, with which the OpenSCADA will be built. This can be done in the file "/etc/portage/package.use", for example: <pre style="margin-left: 40px; white-space: normal"> dev-util/openscada dcon demo http javalikecalc mysql qtcfg qtstarter ssl vision webcfg webcfgd webvision blockcalc dbarch dbase doc flibcomplex1 flibmath flibsys fsarch logiclev modbus serial sockets sqlite vcaengine </pre> :7. Build: <syntaxhighlight lang="bash" style="margin-left: 40px"> emerge -q openscada </syntaxhighlight> :8. Database files and resources of OpenSCADA are ready and placed in the directory "/var/spool/openscada/", executable files — "/usr/bin/", documentation — "/usr/share/doc/openscada-0.9/". === Lightweight package management system — IPKG packages === An area of application of the package manager and packages IPKG has builtin Linux environments with limited amount of memory, such as wireless routers. Accordingly, the building of IPKG packages is a part of the build systems of such environments and the description of this procedure can not be considered separately from the build system itself, so for the creation of IPKG packages of OpenSCADA read in the section "[[Special:MyLanguage/Sub-projects/Embedding_and_PLC#OpenWrt|OpenWrt distributive]] of the subproject [[Special:MyLanguage/Sub-projects/Embedding_and_PLC|OpenSCADA generic embedding and programmable logical controllers (PLC)]]". === Building for Android — APK packages === The operating system [https://en.wikipedia.org/wiki/Android_(operating_system) Android] is a Linux-kernel based software that is primarily designed and used on mobile phones, smartphones, tablets, and other touch-screened devices. The third-party software for Android is distributed in the form of APK-packages, the building of which can not be considered apart from the build environment of the Android SDK, NDK and building of all dependencies of OpenSCADA, so read on the subject of the building of OpenSCADA and the creation of its APK-packages in the sub-project "[[Special:MyLanguage/Sub-projects/Adaption_to_Android|OpenSCADA adaption to the software platform Android]]".
Navigation menu
OpenSCADA
Site
Download
Old Wiki
OpenSCADA Wiki
Home
About OpenSCADA
Functions and demands
Tasks
Using
Fund
Recent changes
Random page
Search
Tools
Special pages
Printable version
MediaWiki
Help
Personal tools
English
Log in