Nodeset-Compiler and EUROMAP 77

239 views
Skip to first unread message

schlege...@gmx.net

unread,
Nov 1, 2018, 4:38:12 AM11/1/18
to open62541
Hallo,

i try to compile the Euromap 77 nodeset and get the following error from the noteset-compiler:

INFO:__main__:Preprocessing (existing) E:/013__APPLICATION/026__opcua/open62541/deps/ua-nodeset/schema/Opc.Ua.NodeSet2.xml
INFO:__main__:Preprocessing E:/013__APPLICATION/RemoteIfModel/Opc_Ua.EUROMAP77.NodeSet2.xml
Traceback (most recent call last):
  File "E:/013__APPLICATION/026__opcua/open62541/tools/nodeset_compiler/nodeset_compiler.py", line 167, in <module>
    ns.sanitize()
  File "/cygdrive/e/013__APPLICATION/026__opcua/open62541/tools/nodeset_compiler/nodeset.py", line 125, in sanitize
    raise Exception("Reference " + str(ref) + " has an unknown target")
Exception: Reference ns=1;i=6094--[ns=0;i=41]-->ns=2;i=1025 has an unknown target

screenshot_20181101_093708.jpg


I use the latest master from 01.11.2018.


Stefan.


Stefan Profanter

unread,
Nov 2, 2018, 5:44:50 AM11/2/18
to open62541
Hi Stefan,
can you please retry your steps with current master?

I fixed an issue with Euromap83, which may be related to yours:

BR
Stefan

schlege...@gmx.net

unread,
Nov 2, 2018, 5:58:04 AM11/2/18
to open62541
Hi Stefan,

it seen to me that it works.

But in the header file i can see the following lines.

#include "ua_types_di_generated.h"
#include "ua_types_euromap83_generated.h"

But i can not find these files on my pc.

BR
Stefan

Stefan Profanter

unread,
Nov 2, 2018, 6:02:58 AM11/2/18
to open62541
Did you also create the DataTypes for DI and Euromap83?

You can do that with the example as shown here:

The resulting files will be in your build directory -> src_generated

BR
Stefan

schlege...@gmx.net

unread,
Nov 2, 2018, 6:10:09 AM11/2/18
to open62541
One more question. In which folder should I do the xml file from Euromap 77 and 83 Nodeset? Currently I have a folder outside the open62541 folder. In the folder src_generated I can not find the appropriate files.


Stefan Profanter

unread,
Nov 2, 2018, 7:02:08 AM11/2/18
to open62541
In general it does not matter where the XML files are. It is even recommended to put them somewhere outside of the open62541 source code folder.
You can then pass an abolute path to the corresponding CMake command.

Are you sure that the generate_datatype targets are also generated? If not, then you probably need to add dependencies to your targets, e.g. see this one:

The example will only create the datatypes for the DI nodeset. You also need to add a similar command for the Euromap 83 types.

BR
STefan
Reply all
Reply to author
Forward
0 new messages