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 compiling forte 1.13 with open62 1.0.5(make error)
Error compiling forte 1.13 with open62 1.0.5 [message #1836444] Mon, 04 January 2021 13:17 Go to next message
Mario Krizic is currently offline Mario KrizicFriend
Messages: 38
Registered: April 2019
Member
Hello, I have been trying to upgrading open62 in my forte runtime. Since I was getting strange errors, I have tried updating forte to 1.13 as well. Now I am running into a different problem. When running make, I get the error:

[ 50%] Building CXX object src/CMakeFiles/FORTE_LITE.dir/__/core/deviceExecutionHandlers.cpp.o
In file included from /4diac/forte-incubation_1.13.0/src/com/opc_ua/opcua_remote_handler.h:20:0,
from /4diac/forte-incubation_1.13.0/bin/lmsEv3/core/deviceExecutionHandlers.cpp:19:
/4diac/forte-incubation_1.13.0/src/com/opc_ua/opcua_client_information.h:187:68: error: 'UA_ClientState' has not been declared
static void clientStateChangeCallback(UA_Client *paClient, UA_ClientState paClientState);
^~~~~~~~~~~~~~
src/CMakeFiles/FORTE_LITE.dir/build.make:2438: recipe for target 'src/CMakeFiles/FORTE_LITE.dir/__/core/deviceExecutionHandlers.cpp.o' failed
make[2]: *** [src/CMakeFiles/FORTE_LITE.dir/__/core/deviceExecutionHandlers.cpp.o] Error 1
CMakeFiles/Makefile2:248: recipe for target 'src/CMakeFiles/FORTE_LITE.dir/all' failed
make[1]: *** [src/CMakeFiles/FORTE_LITE.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

I am cross-compiling using docker and have followed the instructions from the documentation found here: https://www.eclipse.org/4diac/en_help.php?helppage=html/communication/opc_ua.html#build

I don't want to change any code myself, since I will probably break something.

Is there something missing in the CMake cache in my open62 build? Looking at the forte repo: https://git.eclipse.org/c/4diac/org.eclipse.4diac.forte.git/tree/src/modules/opc_ua/opcua_client_information.cpp?id=9e793f1ee646678be4b644f638dfb11f154ce4d3

I can see the method has been implemented this way a long time ago, so I can assume there is no problem with it.

Can somebody help me out? If you need more information I would be glad to provide it.

Thank you in advance,
Mario
Re: Error compiling forte 1.13 with open62 1.0.5 [message #1836446 is a reply to message #1836444] Mon, 04 January 2021 14:31 Go to previous messageGo to next message
Kirill Dorofeev is currently offline Kirill DorofeevFriend
Messages: 70
Registered: February 2016
Member
Hi Mario,

this is a known bug [1]. For now, you can either downgrade your open62541 to v1.0, or try out the patch provided by Jörg [2].

Hope this helps,
Kirill

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=569090
[2] https://git.eclipse.org/r/c/4diac/org.eclipse.4diac.forte/+/172715
Re: Error compiling forte 1.13 with open62 1.0.5 [message #1836652 is a reply to message #1836446] Mon, 11 January 2021 11:21 Go to previous messageGo to next message
Mario Krizic is currently offline Mario KrizicFriend
Messages: 38
Registered: April 2019
Member
Thank you for your help. I applied the patch and so far it seems to be working.
Re: Error compiling forte 1.13 with open62 1.0.5 [message #1844278 is a reply to message #1836652] Tue, 07 September 2021 20:24 Go to previous message
Juan Camilo Solarte Rivera is currently offline Juan Camilo Solarte RiveraFriend
Messages: 6
Registered: September 2021
Junior Member
I can not understand how to correct the fault, could someone send images of some step by step?
Previous Topic:Create Forte Compilate Error
Next Topic:External event queue is full, external event dropped!
Goto Forum:
  


Current Time: Thu Mar 28 13:40:42 GMT 2024

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

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

Back to the top