Skip to main content



      Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Error while trying to create Forte for OPC UA
Error while trying to create Forte for OPC UA [message #1831422] Wed, 19 August 2020 08:48 Go to next message
Eclipse UserFriend
Hi,

I was trying to use OPC UA from linux using the instructions given in https://www.eclipse.org/4diac/documentation/html/communication/opc_ua.html#subscriptions ,but in the last step , I am getting these error and consecutively forte executable not generated.

make[2]: *** [src/CMakeFiles/FORTE_LITE.dir/build.make:5984: src/CMakeFiles/FORTE_LITE.dir/com/opc_ua/opcua_handler_abstract.cpp.o] Error 1
make[2]: *** [src/CMakeFiles/FORTE_LITE.dir/build.make:5997: src/CMakeFiles/FORTE_LITE.dir/com/opc_ua/opcua_client_information.cpp.o] Error 1
make[2]: *** [src/CMakeFiles/FORTE_LITE.dir/build.make:5945: src/CMakeFiles/FORTE_LITE.dir/com/opc_ua/opcua_local_handler.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2176: src/CMakeFiles/FORTE_LITE.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

Thanks in advance

[Updated on: Wed, 19 August 2020 12:07] by Moderator

Re: Error while trying to create Forte for OPC UA [message #1831428 is a reply to message #1831422] Wed, 19 August 2020 11:44 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

is it possible that we get the full output. Normally there should be some more concrete error message above the part you have given here.

Alois
Re: Error while trying to create Forte for OPC UA [message #1831429 is a reply to message #1831428] Wed, 19 August 2020 12:08 Go to previous messageGo to next message
Eclipse UserFriend
I have added more to the topic
Re: Error while trying to create Forte for OPC UA [message #1831445 is a reply to message #1831429] Wed, 19 August 2020 22:35 Go to previous messageGo to next message
Eclipse UserFriend
make sure you're using version v1.0 of open62541
Re: Error while trying to create Forte for OPC UA [message #1831453 is a reply to message #1831445] Thu, 20 August 2020 03:51 Go to previous messageGo to next message
Eclipse UserFriend
Even after using version 1.0 , i am getting the same error.

I also think there is an error in the documentation
instead of
cmake -DCMAKE_BUILD_TYPE=Debug -DFORTE_ARCHITECTURE=Posix -DFORTE_MODULE_CONVERT=ON \
-DFORTE_COM_ETH=ON -DFORTE_MODULE_IEC61131=ON -DFORTE_COM_OPC_UA=ON \
-DFORTE_COM_OPC_UA_INCLUDE_DIR=$HOME/4diac/open62541/build \
-DFORTE_COM_OPC_UA_LIB_DIR=$HOME/4diac/open62541/build/bin \
-DFORTE_COM_OPC_UA_LIB=libopen62541.so
it should be
cmake -DCMAKE_BUILD_TYPE=Debug -DFORTE_ARCHITECTURE=Posix -DFORTE_MODULE_CONVERT=ON \
-DFORTE_COM_ETH=ON -DFORTE_MODULE_IEC61131=ON -DFORTE_COM_OPC_UA=ON \
-DFORTE_COM_OPC_UA_INCLUDE_DIR=$HOME/4diac/open62541/build \
-DFORTE_COM_OPC_UA_LIB_DIR=$HOME/4diac/open62541/build/bin \
-DFORTE_COM_OPC_UA_LIB=libopen62541.so ..
Re: Error while trying to create Forte for OPC UA [message #1831457 is a reply to message #1831453] Thu, 20 August 2020 04:53 Go to previous messageGo to next message
Eclipse UserFriend
You're right, the cmake command is missing the two dots at the end.

The last version of OPCUA documentation is actually in this link https://www.eclipse.org/4diac/en_help.php?helppage=html/communication/opc_ua_version1.html

You really need to make sure you compiled open62541 using the v1.0 tag and not the master or v.1.1. The major changes in v1.1 are in the client states actually, so it's very probable that you are not using v1.0
Re: Error while trying to create Forte for OPC UA [message #1831464 is a reply to message #1831457] Thu, 20 August 2020 06:46 Go to previous message
Eclipse UserFriend
I am able to get forte executable after using version v1.0.
Thank you for your help
Previous Topic:HardFault_Handler
Next Topic:OPC UA example
Goto Forum:
  


Current Time: Thu Jul 17 06:01:24 EDT 2025

Powered by FUDForum. Page generated in 0.12023 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top