Regarding custom object building, I have another question: How to create custom objects on an x86_64 development station and cross-compile for Raspberry PI? When building custom objects, programs are compiled per designer guidelines, as follows:
gcc -g -c $pwrp_inc/myclass.c -o $pwrp_obj/myclass.o -I$pwrp_inc -I$pwr_inc -DOS_LINUX=1 -DOS=linux -DHW_X86=1 -DHW=x86 -DOS_POSIX
Then, update classes in rootvolume, BUILD and simulate. Works great.
But, for a target raspberry node, it seems a custom object requires an ARM-Linux compile? If so, what are the correct gcc switch settings for Raspberry Debian ARM-Linux?
To clarify, I have been running Raspberry PI PLC and Operator nodes without issue until introducing custom objects. I am confused how standard objects can be easily cross-compiled, but custom objects require a two-step process? Does this mean I should "compile from source with new classes" to obtain all of the standard functionality (including off-line class help)? Or, can I stick with the end-user's Class Editor method to keep the officially released, production code pristine? Perhaps an alternative is to switch to an ARM_Linux Development machine to build custom objects for ARM_Linux nodes and simulation? A development station was loaded onto a Raspberry PI 2, but performance is very slow due to SD Card access times.
/Ron