poliakov
Hello! This is my first visit to the forum. I want to say thank you for your work. I am simply in love with Open PLC and tell students about it.
I have a problem: as a result of compiling the program, the C code of the program and three functional blocks was successfully generated. But the program build ended with code pid 16920. This is a problem with my program or editor libraries. What should I do?
Сборка запущена в C:\Users\MykhaIlo\OpenPLC_Editor\editor\examples\SFC example5\build
Генерация МЭК-61131 ST/IL/SFC кода ПЛК...
Collecting data types
Collecting POUs
Generate POU progSys
Generate POU KA2
Generate POU KA1
Generate POU contr
Generate Config(s)
Компиляция МЭК-программы в C-код...
Экспорт локальных переменных...
C-код успешно сгенерирован.
make: *** No rule to make target `all'. Stop.
make: Entering directory `/c/Users/MykhaIlo/OpenPLC_Editor/editor/examples/SFC example5/build'
make: Leaving directory `/c/Users/MykhaIlo/OpenPLC_Editor/editor/examples/SFC example5/build'
make -C "C:\Users\MykhaIlo\OpenPLC_Editor\editor\examples\SFC example5\build" all "BEREMIZSRC=plc_main.c plc_debugger.c py_ext.c Config0.c Res0.c" "BEREMIZCFLAGS=\"-IC:\Users\MykhaIlo\OpenPLC_Editor\matiec\lib\C\" -Wno-unused-function" MD5=d810993f8e2ef2697cf01a5e756ec9e9 USE_BEREMIZ=1 FROM_BEREMIZ=1
завершился с кодом 2 (pid 16920)
Ошибка компиляции.
Ошибка сборки C-кода.
thiagoralves
Your build process looks very different. Have you changed any settings on the compiler after installing OpenPLC? This is what a regular build should look like on Windows:
Start build in C:\Users\openplc-user\OpenPLC_Editor\editor\examples\Blink\build
Generating SoftPLC IEC-61131 ST/IL/SFC code...
    Collecting data types
    Collecting POUs
    Generate POU Blink
    Generate Config(s)
Compiling IEC Program into C code...
Extracting Located Variables...
C code generated successfully.
PLC :
   [CC]  plc_main.c -> plc_main.o
   [CC]  plc_debugger.c -> plc_debugger.o
PLC :
   [CC]  Config0.c -> Config0.o
   [CC]  Res0.c -> Res0.o
Linking :
   [CC]  plc_main.o plc_debugger.o Config0.o Res0.o -> Blink.dll
Successfully built.
 
Reply 0 0
poliakov
It's my project setting
Reply 0 0
poliakov
I had the wrong settings. Now everything compiles fine. Thank you!
Reply 0 0
thiagoralves
Ideally you should leave those settings alone. When you create a new project OpenPLC automatically sets that according to your platform.
Reply 0 0
Reply