Upon installing OpenPLC runtime on windows using the installer, the error shown is
Generating object files...
In file included from Config0.c:6:
./lib/iec_std_lib.h: In function ‘TIME __time_mul(TIME, LREAL)’:
./lib/iec_std_lib.h:376:3: error: ‘time_t’ was not declared in this scope; did you mean ‘size_t’?
376 | time_t s = (time_t)s_f;
| ^~~~~~
| size_t
./lib/iec_std_lib.h:378:21: error: ‘s’ was not declared in this scope; did you mean ‘ns’?
378 | TIME res = {(long)s + ns.quot,
| ^
| ns
./lib/iec_std_lib.h: In function ‘TIME __time_div(TIME, LREAL)’:
./lib/iec_std_lib.h:385:3: error: ‘time_t’ was not declared in this scope; did you mean ‘size_t’?
385 | time_t s = (time_t)s_f;
| ^~~~~~
| size_t
./lib/iec_std_lib.h:386:21: error: ‘s’ was not declared in this scope
386 | TIME res = {(long)s,
| ^
./lib/iec_std_lib.h: In function ‘STRING __tod_to_string(TOD)’:
./lib/iec_std_lib.h:623:5: error: ‘time_t’ was not declared in this scope; did you mean ‘size_t’?
623 | time_t seconds;
| ^~~~~~
| size_t
./lib/iec_std_lib.h:625:5: error: ‘seconds’ was not declared in this scope
625 | seconds = IN.tv_sec;
| ^~~~~~~
Error compiling C files
Compilation finished with errors!
OpenPLC runtime is able to run with no issue however after pressing start the PLC the following error message is shown
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
followed by on the OpenPLC runtime
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "webserver.py", line 473, in start_plc
openplc_runtime.start_runtime()
File "/home/User/OpenPLC_v3/webserver/openplc.py", line 79, in start_runtime
self.theprocess = subprocess.Popen(['./core/openplc']) # XXX: iPAS
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Please help me, thank you.