Build http://code.qt.io/cgit/qt/qtopcua.git/tree/ standalone with Qt 5.9.1
-
Should one you prebuild and adjust the path for Open62541 as in
http://code.qt.io/cgit/qt/qtopcua.git/tree/src/plugins/opcua/open62541/open62541.pro#n9 ?@sirop said in Build http://code.qt.io/cgit/qt/qtopcua.git/tree/ standalone with Qt 5.9.1:
Should one you prebuild and adjust the path for Open62541 as in
http://code.qt.io/cgit/qt/qtopcua.git/tree/src/plugins/opcua/open62541/open62541.pro#n9 ?Have I to download this libaries?
win32: LIBS += open62541.lib ws2_32.lib -
@sirop said in Build http://code.qt.io/cgit/qt/qtopcua.git/tree/ standalone with Qt 5.9.1:
Should one you prebuild and adjust the path for Open62541 as in
http://code.qt.io/cgit/qt/qtopcua.git/tree/src/plugins/opcua/open62541/open62541.pro#n9 ?Have I to download this libaries?
win32: LIBS += open62541.lib ws2_32.lib -
I have started the building from source with this instruction.
I have the problem, that I have no buildopen62541.sln . I have only an open62541.sln. So I have tested it with this solution, but then I will get the following error:
Unable to start programm
D:\0020____Spielwiesle\QT\lib\open62541\open62541\build\Debug\ALL_BUILD.The system cannot find the file specified
The ALL_BUILD file is in this folder:
D:\0020____Spielwiesle\QT\lib\open62541\open62541\build\ALL_BUILD.So I have changed the Output file to the path where the ALL_BUILD file is.
While the Build process no error occured.
-
I have started the building from source with this instruction.
I have the problem, that I have no buildopen62541.sln . I have only an open62541.sln. So I have tested it with this solution, but then I will get the following error:
Unable to start programm
D:\0020____Spielwiesle\QT\lib\open62541\open62541\build\Debug\ALL_BUILD.The system cannot find the file specified
The ALL_BUILD file is in this folder:
D:\0020____Spielwiesle\QT\lib\open62541\open62541\build\ALL_BUILD.So I have changed the Output file to the path where the ALL_BUILD file is.
While the Build process no error occured.
-
Yeah, I want to know how can I solve this problem?
Has anyone an idea?
@N3ff3 said in Build http://code.qt.io/cgit/qt/qtopcua.git/tree/ standalone with Qt 5.9.1:
@sirop
I have started the building from source with this instruction.
I have the problem, that I have no buildopen62541.sln . I have only an open62541.sln. So I have tested it with this solution, but then I will get the following error:
Unable to start programm
D:\0020____Spielwiesle\QT\lib\open62541\open62541\build\Debug\ALL_BUILD.
The system cannot find the file specified
The ALL_BUILD file is in this folder:
D:\0020____Spielwiesle\QT\lib\open62541\open62541\build\ALL_BUILD.
So I have changed the Output file to the path where the ALL_BUILD file is.
While the Build process no error occured. -
Yeah, I want to know how can I solve this problem?
Has anyone an idea?
@N3ff3 said in Build http://code.qt.io/cgit/qt/qtopcua.git/tree/ standalone with Qt 5.9.1:
@sirop
I have started the building from source with this instruction.
I have the problem, that I have no buildopen62541.sln . I have only an open62541.sln. So I have tested it with this solution, but then I will get the following error:
Unable to start programm
D:\0020____Spielwiesle\QT\lib\open62541\open62541\build\Debug\ALL_BUILD.
The system cannot find the file specified
The ALL_BUILD file is in this folder:
D:\0020____Spielwiesle\QT\lib\open62541\open62541\build\ALL_BUILD.
So I have changed the Output file to the path where the ALL_BUILD file is.
While the Build process no error occured.I used the cmake GUI with MSVC 2015 for a Release version.
Do not know if the Debug version as you tried to build needs any tweaks.See may CMakeCache.txt if interested: https://gist.github.com/sirop/d3cfd94d93dbf3c22e1195c7e326022a .
Please do choose:
CMAKE_VERBOSE_MAKEFILE:BOOL=ONin order to have a more detailed make log. -
Now I have used the cmake gui. The process finished without and errors. So far so good. I found under the path "C:\Program Files (x86)\open62541" the folders include, lib and share.
Have I finished this step correct?
If yes, what have I to do with this files?
Many thanks in advanced and sorry about my stupid questions.
-
Now I have used the cmake gui. The process finished without and errors. So far so good. I found under the path "C:\Program Files (x86)\open62541" the folders include, lib and share.
Have I finished this step correct?
If yes, what have I to do with this files?
Many thanks in advanced and sorry about my stupid questions.
@N3ff3
Now you have a choice:- return to https://forum.qt.io/post/434351
- or make your own Qt C++ wrapper for open62541 . The wrapper should not be the most elegant one, not should it wrap all the C functions of open62541. A subset of those that you need is enough.
Please report about you progress here.
BTW, guess you are trying to implement an OPC client. If so, what is the OPC server you deal with?
-
I have changed the line
win32: LIBS += open62541.lib ws2_32.libwith
win32: LIBS += 'C:/Program Files (x86)/open62541/lib/open62541.lib' ws2_32.libNow I have this error:
[Ungenau] Project ERROR: Library 'open62541' is not defined.I don't know why I get this error. The library is at this path. Have you any ideas?
Yes I am trying to implement an OPC UA Client. The OPC Server is from Siemens.
-
I have changed the line
win32: LIBS += open62541.lib ws2_32.libwith
win32: LIBS += 'C:/Program Files (x86)/open62541/lib/open62541.lib' ws2_32.libNow I have this error:
[Ungenau] Project ERROR: Library 'open62541' is not defined.I don't know why I get this error. The library is at this path. Have you any ideas?
Yes I am trying to implement an OPC UA Client. The OPC Server is from Siemens.
@N3ff3 said in Build http://code.qt.io/cgit/qt/qtopcua.git/tree/ standalone with Qt 5.9.1:
I have changed the line
win32: LIBS += open62541.lib ws2_32.libwith
win32: LIBS += 'C:/Program Files (x86)/open62541/lib/open62541.lib' ws2_32.libIn my case it is:
win32: LIBS += -LD:\QtProjects\open62541\Build\bin\Release open62541.lib ws2_32.libso in your case smth. like:
win32: LIBS += -L"C:\Program Files (x86)\open62541\lib" open62541.lib ws2_32.libbut I am not sure about double quotes.
Yes I am trying to implement an OPC UA Client. The OPC Server is from Siemens.
Ok, I also have to deal with a Siemens OPC UA server.
I'll go the way of coding my own C++ wrapper.Pay attention to https://github.com/open62541/open62541/issues/788#issuecomment-278582678 as you might need an additional encryption lib like https://github.com/KDE/qca .