varasano2
Dears,
today I installed OpenPLC on an old iMac with OS version 10.12.6.
Ultimately OpenPLC will work on this OS .
Having solved the first problem I am now asking a little aid to solve the 2nd occurred one.

=============================================
1ST ERROR: MATIEC not COMPILING C CODE
================================================

/Applications/OpenPLC\ Editor.app/Contents/Resources/matiec/iec2c_mac ; exit;

gv$ /Applications/OpenPLC\ Editor.app/Contents/Resources/matiec/iec2c_mac ; exit;
dyld: Symbol not found: __ZTTNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE
Referenced from: /Applications/OpenPLC Editor.app/Contents/Resources/matiec/iec2c_mac
Expected in: /usr/lib/libc++.1.dylib
in /Applications/OpenPLC Editor.app/Contents/Resources/matiec/iec2c_mac
Abort trap: 6
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...13 completed.

[Process completed]

=========================================================================
SOLVED

Dyld Error Message:
Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: /private/var/folders/*/ClassIn-LMS.app/Contents/MacOS/../Library/libsentry.dylib (which was built for Mac OS X 12.3)
Expected in: /usr/lib/libc++.1.dylib

It turned out to be a Deployment Target mismatch issue.
I rebuild matiec on MacOs10.12.6 and made it work by setting the Deployment Target to a proper version.

Under the Folder Applications/OpenPLC Editor /Contents/Resources/matiec
open Terminal and execute the following commands :

export MACOSX_DEPLOYMENT_TARGET=10.12
reconfigure -i
./configure

then change the generated iec2c executable file name to iec2c_mac
============================================================================

============================================================================
UNFORTUNATELY AFTER THAT A 2nd PYTHON Error
============================================================================
Start build in /Users/gv/OPENPLC_FIles/build
Generating SoftPLC IEC-61131 ST/IL/SFC code...
Compiling IEC Program into C code...
Extracting Located Variables...
C code generated successfully.
C Build crashed !
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.9/3.9.15/Frameworks/Python.framework/Versions/3.9/lib/python3.9/codecs.py", line 310, in __init__
IncrementalDecoder.__init__(self, errors)
RecursionError: maximum recursion depth exceeded

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Applications/OpenPLC Editor.app/Contents/Resources/editor/ProjectController.py", line 1194, in _Build
if not builder.build():
File "/Applications/OpenPLC Editor.app/Contents/Resources/editor/targets/toolchain_makefile.py", line 95, in build
wholesrcdata += self.concat_deps(CFileName)
File "/Applications/OpenPLC Editor.app/Contents/Resources/editor/targets/toolchain_makefile.py", line 85, in concat_deps
return reduce(operator.concat, list(map(self.concat_deps, deps)), src)
File "/Applications/OpenPLC Editor.app/Contents/Resources/editor/targets/toolchain_makefile.py", line 85, in concat_deps
return reduce(operator.concat, list(map(self.concat_deps, deps)), src)
File "/Applications/OpenPLC Editor.app/Contents/Resources/editor/targets/toolchain_makefile.py", line 85, in concat_deps
return reduce(operator.concat, list(map(self.concat_deps, deps)), src)
[Previous line repeated 983 more times]
File "/Applications/OpenPLC Editor.app/Contents/Resources/editor/targets/toolchain_makefile.py", line 73, in concat_deps
src = open(os.path.join(self.buildpath, bn), "r").read()
RecursionError: maximum recursion depth exceeded while calling a Python object
Reply 0 0
Reply