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 » Building forte with opc_ua(error when compiling forte for opc_ua)
Building forte with opc_ua [message #1816663] Mon, 04 November 2019 12:08 Go to next message
Niklas Huhs is currently online Niklas HuhsFriend
Messages: 5
Registered: October 2019
Junior Member
hello all

I'm having a problem compiling forte for opc_ua.
I followed the documentation about building forte for opc_ua and at step 14, I get stuck while compiling in VS2019. It seems to be the same error like in a previous post (https://www.eclipse.org/forums/index.php/m/1804974/?srch=opcua_handler#msg_1804974) but none of the suggested solutions seem to work.

as recommended here : https://www.eclipse.org/forums/index.php/m/1814445/?srch=forte+undeclared+in#msg_1814445
I used minGW as the compiler and it compiles fine until it tries to link the forte.exe

I attached some screenshots for better understanding my problem.
Is there something I am missing or doing wrong?
thank you very much in advance for your help.
Re: Building forte with opc_ua [message #1816666 is a reply to message #1816663] Mon, 04 November 2019 13:18 Go to previous messageGo to next message
Jose Maria Jesus Cabral Lassalle is currently offline Jose Maria Jesus Cabral LassalleFriend
Messages: 162
Registered: February 2016
Senior Member
Hi,

sorry for the problem with VS, that's some bigger issue that's not easy to solve for now.

regarding the issues you have with minGW I have some points:
- Try building your open62541 library also with mingw
- In the past we had issues with mingw but so we always tests with mingw-w64 (no, they are not the same https://sourceforge.net/projects/mingw-w64/)
Re: Building forte with opc_ua [message #1816667 is a reply to message #1816666] Mon, 04 November 2019 13:34 Go to previous messageGo to next message
Niklas Huhs is currently online Niklas HuhsFriend
Messages: 5
Registered: October 2019
Junior Member
Thank you for your answer.
I was just about to write that I was able to get it to work with VS. (I forgot to delete the undefs at the bottom of funcbloc.h)
If there will be any further problems I will try building the open62541 library with mingw as well and use mingw-w64.

best regards,
Niklas Huhs
Re: Building forte with opc_ua [message #1816702 is a reply to message #1816666] Tue, 05 November 2019 10:51 Go to previous messageGo to next message
Niklas Huhs is currently online Niklas HuhsFriend
Messages: 5
Registered: October 2019
Junior Member
Good morning,
as there were Issues again with VS, I decided to use mingw-w64 which I downloaded at the link you provided.
Now unfortunately there is a problem when trying to compile open62541. (see the screenshot)
I use the v0.3.0 branch like stated here: https://www.eclipse.org/4diac/documentation/html/communication/opc_ua.html
when configuring in CMake I use MinGWMakefiles as the generator and it automatically detects the compilers in the path of the mingw-w64 install.
configuring and generating works without problems but when trying to compile it shows this error.

p.s.: I would really like to continue working with 4diac as it fits my project perfectly and I would be very thankful if you could help me with this problem.

edit:
its working now after installing the module "six" for python
but when running forte I get the error that libopen62541.dll cannot be found. the path and name are correct in the CMake setup

[Updated on: Tue, 05 November 2019 11:40]

Report message to a moderator

Re: Building forte with opc_ua [message #1816750 is a reply to message #1816702] Wed, 06 November 2019 09:55 Go to previous message
Jose Maria Jesus Cabral Lassalle is currently offline Jose Maria Jesus Cabral LassalleFriend
Messages: 162
Registered: February 2016
Senior Member
If you use open62541 as dynamic library you need to put it somewhere where your PATH variable si pointing, or as quick fix, copy the library next to the forte executable.

And also, use this https://www.eclipse.org/4diac/en_help.php?helppage=html/communication/opc_ua_version1.html guide. It has information about the latest changes and how to use it
Previous Topic:About FreeRTOS
Next Topic:OPC READ question
Goto Forum:
  


Current Time: Thu Nov 21 11:55:52 GMT 2019

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

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

Back to the top