Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path not found in open62541Config.cmake #6481

Closed
2 tasks done
keba-estr opened this issue May 16, 2024 · 6 comments
Closed
2 tasks done

Path not found in open62541Config.cmake #6481

keba-estr opened this issue May 16, 2024 · 6 comments

Comments

@keba-estr
Copy link
Contributor

keba-estr commented May 16, 2024

Description

Due to commit 6091b18 the path usr/share/open62541/ua-nodeset is not available any more. Yet the cmake file open62541Config.cmake checks this path.
Therefore the compilation of this cmake file fails.

There are also additional references to this directory in open62541Macros.cmake.

Checklist

Please provide the following information:

  • open62541 Version (release number or git tag): 1.4.1
  • Critical issue
@keba-estr
Copy link
Contributor Author

Line in open62541Config.cmake:
set_and_check(UA_NODESET_DIR @PACKAGE_open62541_install_nodeset_dir@ CACHE PATH "Path to the directory that contains the OPC UA schema repository")

@jpfr: What is the correct solution? Should the check be deleted or should the path be replaced?

@jpfr
Copy link
Member

jpfr commented May 16, 2024

You are right.
The reduced nodeset (used to build the library) is in usr/share/open62541/schema.

@keba-estr
Copy link
Contributor Author

keba-estr commented May 17, 2024

I will try out usr/share/open62541/schema in CMakeLists.txt to see if other errors occur. -> no further errors

@keba-estr
Copy link
Contributor Author

keba-estr commented May 17, 2024

For the compile option UA_NAMESPACE_ZERO = "FULL" the file ${UA_NODESET_DIR}/Schema/Opc.Ua.NodeSet2.xml is still referenced in CMakeLists.txt and open62541Macros.cmake, but not installed to the tools package any more.

In the file CMakeLists.txt the variable UA_NAMESPACE_ZERO is always set to REDUCED. If I change the compile option UA_NAMESPACE_ZERO in tools/packaging/debian/rules-template to FULL, do I have to update also the default setting of UA_NAMESPACE_ZERO in CMakeLists.txt? -> separate issue #6482

@keba-estr
Copy link
Contributor Author

Created PR #6483

@keba-estr
Copy link
Contributor Author

Resolved with PR #6483

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants