Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Building QFreeOpcUaPlugin and QOpen62541Plugin plugins Qt 5.10

Building QFreeOpcUaPlugin and QOpen62541Plugin plugins Qt 5.10

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 5 Posters 4.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bolonat
    wrote on 25 Dec 2017, 10:19 last edited by
    #1

    I have an OPC UA server. I need to implement OPC UA Client. I'm working in QtCreator 4.5.0 on Qt 5.10.0 (MinGW 32 bit Win10 64x). For my purpose, I want to use the qtopcua component. I assembled and installed the component from the sources to github using the command sequence, qmake, mingw32-make, mingw32-make install. Now, if I add Qt + = opcua to the .pro file of my project, the project is successfully compiled. However, when I try to run the example that comes with the qtopcua source, it turned out that it requires QFreeOpcUaPlugin and QOpen62541Plugin plugins to work for it. Makefiles for these plugins come with the source code qtopcua. During execution of mingw32-make, the Makefile generated .cpp and .h. Now I need to install plugins in mingw \ plugins. I tried to compile the source code of the plugins in QtCreator. But I encountered dependencies. In the file open62541.pro the line "win32: LIBS + = open62541.lib ws2_32.lib" I put open62541.lib in the build folder, but when compiling I get the error: "Library 'open62541' is not defined". The QFreeOpcUaPlugin plugin is dependent on the boost and freeopcua libraries, so also compiles with errors. How can I correctly build and install these plugins? Many thanks.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 25 Dec 2017, 20:41 last edited by
      #2

      Hi and welcome to devnet,

      Did you get all the dependencies ? If so, did you get them for the compiler you are using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Bolonat
        wrote on 26 Dec 2017, 05:28 last edited by
        #3

        I commented out the line
        QMAKE_USE_PRIVATE + = open62541
        in the open62541.pro file. After that, the error disappeared. But I have got another mistake:

        C: \ qtopcua-dev \ src \ plugins \ opcua \ open62541 \ qopen62541backend.cpp: 366: error: 'UA_ClientConfig_default' was not declared in this scope
              m_uaclient = UA_Client_new (UA_ClientConfig_default);

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Bolonat
          wrote on 26 Dec 2017, 06:52 last edited by
          #4

          When I try to build a plugin QFreeOpcUaPlugin, I get a set of errors:
          undefined reference to OpcUa::UaClient::GetNode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' undefined reference to OpcUa::Node::Node(OpcUa::Node const&)'
          undefined reference to OpcUa::NodeId::NodeId()' undefined reference to OpcUa::Node::GetId() const'
          undefined reference to OpcUa::Node::GetChildren() const' undefined reference to OpcUa::Node::GetId() const'
          .........
          I do not understand what I need to add, what is missing.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 26 Dec 2017, 23:48 last edited by
            #5

            The libraries from the backend you want to use. i.e.: open62541 or FreeOpcUa.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Bolonat
              wrote on 29 Dec 2017, 10:05 last edited by
              #6

              Now I got open62541_backend.dll, open62541_backendd.dll and libs in mingw53_32\plugins\opcua. But when I try to to compile example - project "accontrol" I got an error: E:\PROJECTS\accontrol\accontroltest.cpp:54: QtOpcUa/QOpcUaMonitoredValue: No such file or directory.
              QOpcUaMonitoredValue class is missing in the source qtopcua-dev... Any ideas, please...

              N 1 Reply Last reply 3 Jan 2018, 09:46
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 29 Dec 2017, 21:26 last edited by
                #7

                Base on this commit, I'd say the example hasn't been update yet.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                F 1 Reply Last reply 18 Jan 2018, 20:15
                0
                • N Offline
                  N Offline
                  N3ff3
                  wrote on 2 Jan 2018, 13:00 last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • B Bolonat
                    29 Dec 2017, 10:05

                    Now I got open62541_backend.dll, open62541_backendd.dll and libs in mingw53_32\plugins\opcua. But when I try to to compile example - project "accontrol" I got an error: E:\PROJECTS\accontrol\accontroltest.cpp:54: QtOpcUa/QOpcUaMonitoredValue: No such file or directory.
                    QOpcUaMonitoredValue class is missing in the source qtopcua-dev... Any ideas, please...

                    N Offline
                    N Offline
                    N3ff3
                    wrote on 3 Jan 2018, 09:46 last edited by
                    #9

                    Hi guays,

                    I am at the same staep as you. I have done the steps qmake, mingw32-make, mingw32-make install.
                    And then I have the same problem with the open62541 and freeopcua.

                    My question is now, how do you get the open62541_backend.dll, open62541_backendd.dll and libs?

                    Many thanks in advance!

                    Greetings

                    F 1 Reply Last reply 18 Jan 2018, 20:22
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 3 Jan 2018, 18:19 last edited by
                      #10

                      Hi,

                      AFAIK, build the corresponding project.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • S SGaist
                        29 Dec 2017, 21:26

                        Base on this commit, I'd say the example hasn't been update yet.

                        F Offline
                        F Offline
                        fmeerkoetter
                        wrote on 18 Jan 2018, 20:15 last edited by
                        #11

                        @SGaist You are right. The API is currently settling down. There will be a Tech Preview in Qt 5.11. The examples you currently find on the dev branch are outdated. New examples are in the pipeline. You can find the first here: https://codereview.qt-project.org/#/c/216519/

                        1 Reply Last reply
                        0
                        • N N3ff3
                          3 Jan 2018, 09:46

                          Hi guays,

                          I am at the same staep as you. I have done the steps qmake, mingw32-make, mingw32-make install.
                          And then I have the same problem with the open62541 and freeopcua.

                          My question is now, how do you get the open62541_backend.dll, open62541_backendd.dll and libs?

                          Many thanks in advance!

                          Greetings

                          F Offline
                          F Offline
                          fmeerkoetter
                          wrote on 18 Jan 2018, 20:22 last edited by
                          #12

                          @N3ff3 please have a look at this article:
                          https://blog.basyskom.com/2018/want-to-give-qt-opcua-a-try/

                          You should go with the open62541 backend. Open62541 is the more complete implementation and has a much more active community.

                          Note that open62541 will release their 0.3 version in the next few weeks. We plan to use this release in the Tech Preview in Qt 5.11.

                          N P 2 Replies Last reply 19 Jan 2018, 10:06
                          1
                          • F fmeerkoetter
                            18 Jan 2018, 20:22

                            @N3ff3 please have a look at this article:
                            https://blog.basyskom.com/2018/want-to-give-qt-opcua-a-try/

                            You should go with the open62541 backend. Open62541 is the more complete implementation and has a much more active community.

                            Note that open62541 will release their 0.3 version in the next few weeks. We plan to use this release in the Tech Preview in Qt 5.11.

                            N Offline
                            N Offline
                            N3ff3
                            wrote on 19 Jan 2018, 10:06 last edited by
                            #13

                            @fmeerkoetter
                            thank you very much for the information and the link.

                            Now I am testing the QtOpcUa. For this I use the Softing OPC UA .net Demo Server. The Problem is, that I can't connect to the server. I get this error message:

                            error/client	No suitable UserTokenPolicy found for the possible endpoints
                            

                            After reading the docs of QtOpcUa, I can't find anything about the Policy.

                            Is there anything which I can use?

                            Best regards
                            N3ff3

                            1 Reply Last reply
                            1
                            • F fmeerkoetter
                              18 Jan 2018, 20:22

                              @N3ff3 please have a look at this article:
                              https://blog.basyskom.com/2018/want-to-give-qt-opcua-a-try/

                              You should go with the open62541 backend. Open62541 is the more complete implementation and has a much more active community.

                              Note that open62541 will release their 0.3 version in the next few weeks. We plan to use this release in the Tech Preview in Qt 5.11.

                              P Offline
                              P Offline
                              paulholloway
                              wrote on 5 Sept 2019, 07:10 last edited by
                              #14

                              @fmeerkoetter said in Building QFreeOpcUaPlugin and QOpen62541Plugin plugins Qt 5.10:

                              @N3ff3 please have a look at this article:
                              https://blog.basyskom.com/2018/want-to-give-qt-opcua-a-try/ https://cheapessaywriter.net/

                              You should go with the open62541 backend. Open62541 is the more complete implementation and has a much more active community.

                              Note that open62541 will release their 0.3 version in the next few weeks. We plan to use this release in the Tech Preview in Qt 5.11.

                              I read that open62541 is the most stable and feature complete open source backend presently in Qt OPC UA so you won't experience any difficulties.

                              1 Reply Last reply
                              0

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved