El 3/11/21 a les 13:02, Luca Olivetti ha escrit:
In spite of the small size, the dll seems to be functional, *but* I had
a strange problem with my pascal bindings: I use a modified
generate_datatypes.py (generate_datatypes_fpc.py) to keep in sync the
equivalent of types_generated.h with the library.
The problem is that the resulting file is different if I run the tool
under windows (where I compiled the dll) or under linux (where I
generate the bindings), the difference is in the ordering (hence in the
numbering) of several UA_ structures and constants.
I thought the problem was with my modified script but I get the same
with the original one and types_generated.h.
I run it this way:
./generate_datatypes.py --selected-types=schema/datatypes_minimal.txt \
--selected-types=schema/datatypes_method.txt \
--selected-types=schema/datatypes_subscriptions.txt \
--selected-types=schema/datatypes_dataaccess.txt \
--selected-types=schema/datatypes_typedescription.txt \
--type-bsd=schema/Opc.Ua.Types.bsd \
--type-csv=schema/NodeIds.csv \
"${dstdir}/types"
I'm attaching both files (with unix line endings) so you can see the
differences. I'm at the same time puzzled (both machines are using
python 2.7.18) and worried (I cannot generate consistent bindings that
will work on both platforms).
Can anybody help?
> --
> You received this message because you are subscribed to the Google
> Groups "open62541" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
open62541+...@googlegroups.com
> <mailto:
open62541+...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/open62541/e331aee7-51ff-4740-85b6-c416b83c1efan%40googlegroups.com
> <
https://groups.google.com/d/msgid/open62541/e331aee7-51ff-4740-85b6-c416b83c1efan%40googlegroups.com?utm_medium=email&utm_source=footer>.