Ted_77
Hi, 
 
I've installed OpenPLC on my MAC with MacOS 11, and having some issues.  
 
Basically when I try to compile and run the tutorial projects or my own projects I get the following error;
 
Start build in /Applications/OpenPLC Editor.app/Contents/Resources/editor/examples/Blink_P1AM/build
Generating SoftPLC IEC-61131 ST/IL/SFC code...
Collecting data types
Collecting POUs
Generate POU program0
Generate Config(s)
Compiling IEC Program into C code...
"/Applications/OpenPLC Editor.app/Contents/Resources/matiec/iec2c_mac" -I "/Applications/OpenPLC Editor.app/Contents/Resources/matiec/lib" -T "/Applications/OpenPLC Editor.app/Contents/Resources/editor/examples/Blink_P1AM/build" "/Applications/OpenPLC Editor.app/Contents/Resources/editor/examples/Blink_P1AM/build/plc.st"
exited with status -6 (pid 6116)
dyld: Symbol not found: __ZTTNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE
Referenced from: /Applications/OpenPLC Editor.app/Contents/Resources/matiec/iec2c_mac (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libc++.1.dylib
in /Applications/OpenPLC Editor.app/Contents/Resources/matiec/iec2c_mac
 
Error : IEC to C compiler returned -6
PLC code generation failed !
 
I had a search of the forum posts but can't see the same error code mentioned, can anyone advise?
 
Reply 0 0
thiagoralves
macOS 11 is too old to run the iec2c compiler. You will have to recompile matiec on your machine for it to work
Reply 0 0
Ted_77
Hi,
When you say recompile matiec I assume you mean delete OpenPLC and re-open to reinstall on my MAC?  
I've tried reinstalling the software, without checking and installing any updates this time, but still getting the same error.
 
 
Reply 0 0
thiagoralves
No, I mean get the source code and recompile. The Matiec that comes with OpenPLC was compiled for a more recent version of macOS. You will have to either compile matiec yourself for your older OS or update the OS to a newer version
Reply 0 0
Reply