OPC-UA open62541 missing .dll [message #1844814] |
Sun, 26 September 2021 22:10  |
Eclipse User |
|
|
|
Hi all,
I'm studing 4diac for a while and I would like to use OPC-UA for one project. I followed the steps at the tutorial below:
https://www.eclipse.org/4diac/en_help.php?helppage=html/communication/opc_ua_version1.html
It seems everything was correct, it built the source files of FORTE and for the open62541 as well. But if I try to launch FORTE it stops immediately. If I execute the forte.exe I got an error informing the libopen62541.dll is missing (see image attached).
At the tutorial I notice that the file is named "open62541.dll". However in my case the file was created with the name libopen62541.dll. At CMake I inserted the path and the name acording to my case.
FORTE_COM_OPC_UA_INCLUDE_DIR=C:\Users\USER\4diac\open62541\build
FORTE_OPC_UA_LIB=libopen62541.dll
FORTE_COM_OPC_UA_LIB_DIR=C:\Users\USER\4diac\open62541\build\bin
Does anyone have any clue how to solve this? Any help will be highly appreciated.
thanks in advance
Rech
|
|
|
|
|
|
|
|
|
|
Re: OPC-UA open62541 missing .dll [message #1847542 is a reply to message #1847522] |
Sun, 31 October 2021 17:08   |
Eclipse User |
|
|
|
Hi Alois,
Thanks once again for the fast feedbacks. Looking forward for v 20.0.1. But while it is not released I'm testing some other versions of FORTE and with the 1.14.0 the OPC-UA ran and was also possible to compile some of my FBs. However, the FBs that use internal var at the ECC do not compile. See error message below (also available at the attached image).
Is there some way to correct it? I think that with this solved I'll have the needed environment to carry on with my research.
**********************************************************************
[ 50%] Building CXX object src/CMakeFiles/FORTE_LITE.dir/modules/myFBs/test.cpp.obj
In file included from C:\4diac\FORTE_1.14.0\src\modules\myFBs\test.cpp:12:
C:\4diac\FORTE_1.14.0\src\modules\myFBs\test.h: In constructor 'FORTE_test::FORTE_test(CStringDictionary::TStringId, CResource*)':
C:\4diac\FORTE_1.14.0\src\modules\myFBs\test.h:73:75: error: 'scm_stInternalVars' was not declared in this scope
CBasicFB(pa_poSrcRes, &scm_stFBInterfaceSpec, pa_nInstanceNameId, &scm_stInternalVars, m_anFBConnData, m_anFBVarsData) {
^~~~~~~~~~~~~~~~~~
C:\4diac\FORTE_1.14.0\src\modules\myFBs\test.h:73:75: note: suggested alternative:
getInternalVar'
CBasicFB(pa_poSrcRes, &scm_stFBInterfaceSpec, pa_nInstanceNameId, &scm_stInternalVars, m_anFBConnData, m_anFBVarsData) {
^~~~~~~~~~~~~~~~~~
getInternalVar
mingw32-make[2]: *** [src\CMakeFiles\FORTE_LITE.dir\build.make:6475: src/CMakeFiles/FORTE_LITE.dir/modules/myFBs/test.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:2024: src/CMakeFiles/FORTE_LITE.dir/all] Error 2
mingw32-make: *** [Makefile:129: all] Error 2
|
|
|
|
Re: OPC-UA open62541 missing .dll [message #1847588 is a reply to message #1847551] |
Mon, 01 November 2021 22:20   |
Eclipse User |
|
|
|
Hi Alois,
I did not test OPC-UA with FORTE 2.0 yet, but I'm pretty sure it will work, as it seems to have the same files as the v 1.14.0 which I already tested and is running fine.
However, I don't manage to generate my own FBs on v2.0.0. See message from CMake below, and log attached. Because of that I switched to older versions of FORTE. Actually, version 1.9.1 is the only one that was possible to compile the FBs I need, as the 1.12.0 and 1.14.0 have an issue with FBs that use internal var at ECC. I also tried to compile open62541 into FORTE 1.9.1, but it does not work, I guess because this version is missing some implementations on OPC-UA.
In short, FORTE 1.12.0 and above seems to run OPC-UA but don't compile user FBs. Version 1.9.1 compile my FBs, but don't run OPC-UA.
FORTE_MODULE_DIR: C:/4diac/forte_2.0.0/src/modules/
FORTE_MODULE_DIR: C:/4diac/forte_2.0.0/src/com/
FORTE_MODULE_DIR: C:/4diac/forte_2.0.0/src/modules/myFBs/
CMake Error at src/modules/myFBs/CMakeLists.txt:2 (forte_add_module):
forte_add_module Macro invoked with incorrect arguments for macro named:
forte_add_module
Building executable
Configuring incomplete, errors occurred!
See also "C:/4diac/forte_2.0.0/bin/win32/CMakeFiles/CMakeOutput.log".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: OPC-UA open62541 missing .dll [message #1852286 is a reply to message #1852283] |
Sun, 08 May 2022 17:05  |
Eclipse User |
|
|
|
Hi Ricardo,
when you start 4diac FORTE from the command line you can give this as command line parameter. However I just noticed I made a slight mistake. Correct would be ./forte -c localhost:61500
Cheers,
Alois
|
|
|
Powered by
FUDForum. Page generated in 0.18910 seconds