znelbok
I have followed all the instructions and I am at the point where I am trying to build.

Enter in the OpenPLC_v2 directory and build the project (it may take a while):

​cd OpenPLC_v2
./build.sh

When I try to build I get lots of errors

Building OpenPLC environment:
[MATIEC COMPILER]
./build.sh: line 6: autoreconf: command not found
./build.sh: line 7: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
[LADDER]
cp: cannot stat ‘./matiec_src/iec2c’: No such file or directory
./build.sh: line 13: ./iec2c: No such file or directory
mv: cannot stat ‘POUS.c’: No such file or directory
mv: cannot stat ‘POUS.h’: No such file or directory
mv: cannot stat ‘LOCATED_VARIABLES.h’: No such file or directory
mv: cannot stat ‘VARIABLES.csv’: No such file or directory
mv: cannot stat ‘Config0.c’: No such file or directory
mv: cannot stat ‘Config0.h’: No such file or directory
mv: cannot stat ‘Res0.c’: No such file or directory
[GLUE GENERATOR]


The OpenPLC needs a driver to be able to control physical or virtual hardware.
Please select the driver you would like to use:
1) Blank                  5) UniPi                 9) Arduino+RaspberryPi
2) Modbus                 6) PiXtend              10) Simulink
3) Fischertechnik         7) Arduino
4) RaspberryPi            8) ESP8266
#? 8
[OPENPLC]
Generating object files...
g++: error: Config0.c: No such file or directory
g++: fatal error: no input files
compilation terminated.
g++: error: Res0.c: No such file or directory
g++: fatal error: no input files
compilation terminated.
Generating glueVars.cpp
Error opening located variables file!
Compiling main program
g++: error: *.o: No such file or directory

What have I missed and/or what do I need to do to get it to build correctly?

WiringPi is installed as required.
Running on the latest Jessie-lite.

Thanks
Reply 0 0
thiagoralves

The log is complaining about missing autoreconf. It seems that you didn't apt-get all packages needed to build OpenPLC:


sudo apt-get update
sudo apt-get install build-essential pkg-config bison flex
sudo apt-get install autoconf automake libtool make nodejs git

Reply 0 0
znelbok
Doh!

I am sure I ran the last one but I ran it again and it all worked.

Thanks and apologies
Reply 0 0
Reply