justason
Hello,

I have managed to install an OpenPLC environment to a custom built Linux.
However, I cannot run any generated "st" program.
I have tried the HelloWorld example for RPi, and few others without success:
- After uploading program and hitting "StartPLC" button, the log window shows for a second:"There was a problem retrieving the logs. Error:"


at 37s

How to debug that problem?
Quote 0 0
thiagoralves
What is your custom platform? Did the install successfully finished? You might have a bad installation. Can you manually start openplc executable in /webserver/core/openplc ?
Quote 0 0
justason
Hello,

Our platform is imx8MMini EVK.
And we are running own backed Yocto sumo with 4.14 kernel.


When I've trying to launch compiled app "/webserver/core/openplc", it responds:

root@imx8mmevk:~/OpenPLC_v3/webserver/core# ./openplc
./openplc: error while loading shared libraries: libasiodnp3.so: cannot open shared object file: No such file or directory

root@imx8mmevk:~/OpenPLC_v3/webserver/core# find / -name "libasiodnp3.so"
/home/root/OpenPLC_v3/utils/dnp3_src/ libasiodnp3.so
/usr/local/lib/ libasiodnp3.so
/run/media/mmcblk2p2/home/root/OpenPLC_v3/utils/dnp3_src/ libasiodnp3.so
/run/media/mmcblk2p2/usr/local/lib/ libasiodnp3.so
Quote 0 0
justason
Hello,

ldd replies with this:
ldd /home/root/OpenPLC_v3/webserver/core/openplc
linux-vdso.so.1 (0x0000ffff8cba4000)
libmodbus.so.5 => /usr/lib/libmodbus.so.5 (0x0000ffff8cb5f000)
libasiodnp3.so => /usr/lib/libasiodnp3.so (0x0000ffff8cac7000)
libasiopal.so => not found
libopendnp3.so => not found
libopenpal.so => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0000ffff8c934000)
libm.so.6 => /lib/libm.so.6 (0x0000ffff8c87b000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0000ffff8c857000)
libpthread.so.0 => /lib/libpthread.so.0 (0x0000ffff8c82b000)
libc.so.6 => /lib/libc.so.6 (0x0000ffff8c6d7000)
/lib/ld-linux-aarch64.so.1 (0x0000ffff8cb79000)
libasiopal.so => not found
libopendnp3.so => not found
libopenpal.so => not found

libasiodnp3 is found because I've made a symlink to it.
Quote 0 0
justason
added /usr/locol/lib to /etc/ld.so.conf
and rebuilt lib cache

after that blank_program started ok.
Quote 0 0