thiagoralves wrote:
Apparently your build might have failed at some point. Can you run ./build_win.sh and post here the output?
kebomar@kebomar-PC ~/OpenPLC_v2
$ ./build_win.sh
Building OpenPLC environment:
[MATIEC COMPILER]
[LIBMODBUS]
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: linking file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: linking file 'm4/libtool.m4'
libtoolize: linking file 'm4/ltoptions.m4'
libtoolize: linking file 'm4/ltsugar.m4'
libtoolize: linking file 'm4/ltversion.m4'
libtoolize: linking file 'm4/lt~obsolete.m4'
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/bin/automake-1.14 line 3930.
configure.ac:33: installing 'build-aux/compile'
configure.ac:32: installing 'build-aux/missing'
src/Makefile.am: installing 'build-aux/depcomp'
------------------------------------------------------
Initialized build system. You can now run ./configure
------------------------------------------------------
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/kebomar/OpenPLC_v2/libmodbus_src':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** There's no rule for create the object 'install'. Stop.
[LADDER]
POUS.c
POUS.h
LOCATED_VARIABLES.h
VARIABLES.csv
Config0.c
Config0.h
Res0.c
[GLUE GENERATOR]
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -ladvapi32
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lshell32
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -luser32
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lkernel32
collect2: error: ld return output state 1
cp: cannot do `stat' sobre './glue_generator_src/glue_generator.exe': No such file or directory
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 4) RaspberryPi 7) Arduino+RaspberryPi
2) Modbus 5) Unipi 8) Simulink
3) Fischertechnik 6) Arduino
#? 6
[OPENPLC]
Generating object files...
Generating glueVars.cpp
./build_core.sh: línea 7: ./glue_generator.exe: No such file or directory
Compiling main program
glueVars.cpp: En la función ‘void glueVars()’:
glueVars.cpp:73:21: error: ‘__IX0_0’ ambit not created
bool_input[0][0] = __IX0_0;
^
glueVars.cpp:74:21: error: ‘__IX0_1’ ambit not created
bool_input[0][1] = __IX0_1;
^
glueVars.cpp:75:22: error: ‘__QX0_0’ ambit not created
bool_output[0][0] = __QX0_0;
^
glueVars.cpp:76:22: error: ‘__QX0_1’ ambit not created
bool_output[0][1] = __QX0_1;
^
server.cpp:31:20: error fatal: modbus.h: No such file or directory
compilation ended.
Edit: Translated to english