You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where my_server.cpp is exact copy of freeopcua/src/examples/example_server.cpp
Tried Solution
For 1, a temporary "fix" was applied by creating /usr/local/lib/cmake/FreeOpcUaConfig.cmake with following content
# Set the paths for FreeOpcUAset(FreeOpcUA_INCLUDE_DIRS "/usr/local/include")
set(FreeOpcUA_LIBRARY_DIRS "/usr/local/lib")
# Add the include and library directories to the appropriate variableslist(APPEND CMAKE_INCLUDE_PATH ${FreeOpcUA_INCLUDE_DIRS})
list(APPEND CMAKE_LIBRARY_PATH ${FreeOpcUA_LIBRARY_DIRS})
# Provide information about the FreeOpcUA librariesset(FreeOpcUA_LIBRARIES "opcuaprotocol opcuacore opcuaserver")
which helped progress to issue 2. where the cmake call succeeds but make call fails with error about unable to find opc/common/logger.h in custom cmake project. This was "fixed" by manually copying logger.h from cloned freeopcua/include/opc/common/ to the respective directory in /usr/local/include. After that, same issue occurs during make call with spdlog files.
Upon uninstalling and removing all the files from target install and installing using cmake instructions worked like a charm.
Possible Conclusion
Maybe 🤷🏽♂️ autotools instructions are outdated compared to cmake.
PS: For my use case installation with cmake was sufficient. Just created issue for future users since I could not find anything similar in the open issues.
The text was updated successfully, but these errors were encountered:
Problem
Installing using GNU autotools steps created following issues
find_package
in custom cmake project does not work (sinceFreeOpcUaConfig.cmake
has not been generated)opc/common/logger.h
, entireopc/spdlog
dir)Additional info
OS: GNU/Linux (Ubuntu 20.04)
install target: /usr/local
repo branch: master
autoconf version: 2.69
custom cmake project file
where
my_server.cpp
is exact copy offreeopcua/src/examples/example_server.cpp
Tried Solution
For 1, a temporary "fix" was applied by creating
/usr/local/lib/cmake/FreeOpcUaConfig.cmake
with following contentwhich helped progress to issue 2. where the
cmake
call succeeds butmake
call fails with error about unable to findopc/common/logger.h
in custom cmake project. This was "fixed" by manually copyinglogger.h
from clonedfreeopcua/include/opc/common/
to the respective directory in/usr/local/include
. After that, same issue occurs duringmake
call withspdlog
files.Upon uninstalling and removing all the files from target install and installing using cmake instructions worked like a charm.
Possible Conclusion
Maybe 🤷🏽♂️ autotools instructions are outdated compared to cmake.
PS: For my use case installation with cmake was sufficient. Just created issue for future users since I could not find anything similar in the open issues.
The text was updated successfully, but these errors were encountered: