Skip to content

Latest commit

 

History

History
92 lines (78 loc) · 1.69 KB

BuildOnLinux.md

File metadata and controls

92 lines (78 loc) · 1.69 KB

Build YAPLC on GNU/Linux

Install dependencies:

sudo apt-get install codeblocks
sudo apt-get install build-essential bison flex autoconf
sudo apt-get install python-wxgtk2.8 pyro mercurial
sudo apt-get install python-numpy python-nevow python-matplotlib python-lxml

You should also install https://launchpad.net/gcc-arm-embedded

Add arm-none-eabi-gcc toolchain to Code::Blocks IDE

Preparations

mkdir ~/YAPLC
cd ~/YAPLC

Clone these repos:

hg clone https://bitbucket.org/skvorl/beremiz/
hg clone https://bitbucket.org/skvorl/matiec

git clone https://github.com/nucleron/RTE.git
git clone https://github.com/nucleron/IDE.git
git clone https://github.com/nucleron/freemodbus-v1.5.0.git
git clone https://github.com/nucleron/stm32flash.git
git clone https://github.com/nucleron/libopencm3.git
git clone https://github.com/nucleron/YaPySerial.git

Build

Build matiec:

cd ~/YAPLC/matiec
autoreconf -i
./configure
make

Build libopencm3:

cd ~/YAPLC/libopencm3
make

Build stm32flash

cd ~/YAPLC/stm32flash
make

To build YaPySerial use Code::Blocks, the target is POSIX. To build device runtime systems use Code::Blocks with Debug targets.

Optional

Get and build CanFestival-3:

hg clone http://dev.automforge.net/CanFestival-3
cd ~/YAPLC/CanFestival-3
./configure --can=virtual
make

Runing YAPLC/IDE

cd ~/YAPLC/IDE
python yaplcide.py

Cross build Win setup

Install dependencies as described above

Preparations

Clone this repo

mkdir ~/Build
cd ~/Build
git clone https://github.com/nucleron/YAPLC.git

Make it

cd YAPLC
make

Clean installer

make clean_installer