Claes,
I'm still having problems with this.
When I build from the source tree pwre configure shows nodave as found but it doesn't link anything with it. Everything is still linked with nodave_dummy.
Is that correct?
I understand its not really necessary to link with nodave at this point, the project needs to be linked with it when that gets built.
So next I build the deb packages, install the developer package on my developer machine, create my project with the required build options and build the project.
This is where it goes wrong now.
The plc programme is still linked with nodave_dummy.
The error messages produced when it runs are all from nodave_dummy.
I haven't yet tried distributing to a runtime node, my tests are all on a development node.
I checked the created executables using the strings command. Everything comes back as nodave_dummy seemingly statically linked.
My nodave is a shared library, might that be the issue?
I read and re-read the "Guide to I/O System" and the sections on "MotionControl USB I/O" and "Velleman K8055" seem close to what I'm trying to do, though they are seemingly out of date.
I checked the .opt files produced for the versions of PLC programs. Both look like this:
`: Autogenerated options file, Do not edit !!` $pwrb_root/os_linux/hw_x86_64/exp/obj/rt_io_user.o -lpwr_rt -lpwr_pnak_dummy -lpwr_cifx_dummy -lpwr_usb_dummy -lpwr_usbio_dummy -lnodave -lpwr_epl_dummy
I suspect that this file is not getting used.
I assume this file is generated by my BuildOptions in the project.
Any pointers?
Thanks,
Dave W.