open62541: nodeset.h/nodeset.c not found. unknown type name ‘UA_ObjectTypeNode’

i use the command cmake ,but at the folder i cant find nodeset.h and nodeset.c ,could you tell me?please

i tries UA_BUILD_EXAMPLES_NODESET_COMP and so on.

My system is raspberry3 debian. i tried cmke -DUA_BUILD_EXAMPLES_NODESET_COMPILER=ON .. cmke -UA_BUILD_EXAMPLES_NODESET_COMPILER=ON .. cmke -D UA_BUILD_EXAMPLES_NODESET_COMPILER=ON .. make

it informs me that `fatal: Not a git repository (or any of the parent directories): .git – Git failed (not a repo, or no tags). Build will not contain git revision info –Git version: unknown --git -commit -id -unknown –Configuring done –Generating done –Build files have been written to:/path –Build files have been written to :/path

make 100 Build target open62541-object 100 build`target open62541 100 Build target open62541-static

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 23 (9 by maintainers)

Most upvoted comments

@xty19 Ok, I could reproduce the problem with following steps:

$ cd open62541
$ mkdir build && cd build && cmake -DUA_ENABLE_AMALGAMATION=ON .. && make
$ cp open62541.* ~/test/ns/
$ cd ~/test/ns/
$ ~/open62541/tools/pyUANamespace/generate_open62541CCode.py myNS.xml myNS
# create a simple main.c file
$ gcc -std=c99 open62541.c myNS.c main.c -o test

If you use the generateCCode.py like this it works (copied from examples):

~/open62541/tools/pyUANamespace/generate_open62541CCode.py  -i ~/open62541/tools/pyUANamespace/NodeID_Blacklist_FullNS0.txt ~/open62541/tools/schema/namespace0/Opc.Ua.NodeSet2.xml  myNS.xml myNS

For further description see: http://open62541.org/doc/current/tutorial_noderelations.html

Please reopen the issue if this doesn’t solve your problem.

mkdir build
cd build
cmake -DUA_BUILD_EXAMPLES_NODESET_COMPILER=ON ..
make generate_informationmodel

Then you should find nodeset.[c/h] in build/src_generated/

Try first to configure only UA_BUILD_EXAMPLES_NODESET_COMP within cmake, afterwards you can activate UA_BUILD_EXAMPLES