Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 12:48 Go to next message
Sabarigirish Sreekesh is currently offline Sabarigirish SreekeshFriend
Messages: 6
Registered: August 2020
Junior Member
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 16:07]

Report message to a moderator

Re: Error while trying to create Forte for OPC UA [message #1831428 is a reply to message #1831422] Wed, 19 August 2020 15:44 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1039
Registered: January 2014
Senior Member
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 16:08 Go to previous messageGo to next message
Sabarigirish Sreekesh is currently offline Sabarigirish SreekeshFriend
Messages: 6
Registered: August 2020
Junior Member
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] Thu, 20 August 2020 02:35 Go to previous messageGo to next message
Jose Maria Jesus Cabral Lassalle is currently offline Jose Maria Jesus Cabral LassalleFriend
Messages: 195
Registered: February 2016
Senior Member
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 07:51 Go to previous messageGo to next message
Sabarigirish Sreekesh is currently offline Sabarigirish SreekeshFriend
Messages: 6
Registered: August 2020
Junior Member
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 08:53 Go to previous messageGo to next message
Jose Maria Jesus Cabral Lassalle is currently offline Jose Maria Jesus Cabral LassalleFriend
Messages: 195
Registered: February 2016
Senior Member
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 10:46 Go to previous message
Sabarigirish Sreekesh is currently offline Sabarigirish SreekeshFriend
Messages: 6
Registered: August 2020
Junior Member
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: Sun Oct 25 07:55:16 GMT 2020

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

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

Back to the top