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. Build http://code.qt.io/cgit/qt/qtopcua.git/tree/ standalone with Qt 5.9.1

Build http://code.qt.io/cgit/qt/qtopcua.git/tree/ standalone with Qt 5.9.1

Scheduled Pinned Locked Moved Unsolved General and Desktop
21 Posts 3 Posters 6.3k Views 2 Watching
  • 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.
  • siropS sirop

    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 ?

    N Offline
    N Offline
    N3ff3
    wrote on last edited by
    #11

    @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
    
    siropS 1 Reply Last reply
    0
    • N N3ff3

      @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
      
      siropS Offline
      siropS Offline
      sirop
      wrote on last edited by
      #12

      @N3ff3
      ws2_32.lib is Windows own winsock lib.

      open62541.lib has to be built from source https://github.com/open62541/open62541 .

      To be, or not to be: that is the question:
      Whether ’tis nobler in the mind to suffer
      The slings and arrows of outrageous fortune,
      Or to take arms against a sea of troubles,
      And by opposing end them?

      1 Reply Last reply
      0
      • N Offline
        N Offline
        N3ff3
        wrote on last edited by
        #13

        @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.

        siropS 1 Reply Last reply
        0
        • N N3ff3

          @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.

          siropS Offline
          siropS Offline
          sirop
          wrote on last edited by
          #14

          @N3ff3
          Is this kind of a question?

          To be, or not to be: that is the question:
          Whether ’tis nobler in the mind to suffer
          The slings and arrows of outrageous fortune,
          Or to take arms against a sea of troubles,
          And by opposing end them?

          N 1 Reply Last reply
          0
          • siropS sirop

            @N3ff3
            Is this kind of a question?

            N Offline
            N Offline
            N3ff3
            wrote on last edited by
            #15

            @sirop

            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.

            siropS 1 Reply Last reply
            0
            • N N3ff3

              @sirop

              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.

              siropS Offline
              siropS Offline
              sirop
              wrote on last edited by
              #16

              @N3ff3

              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=ON in order to have a more detailed make log.

              To be, or not to be: that is the question:
              Whether ’tis nobler in the mind to suffer
              The slings and arrows of outrageous fortune,
              Or to take arms against a sea of troubles,
              And by opposing end them?

              1 Reply Last reply
              0
              • N Offline
                N Offline
                N3ff3
                wrote on last edited by
                #17

                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.

                siropS 1 Reply Last reply
                0
                • N N3ff3

                  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.

                  siropS Offline
                  siropS Offline
                  sirop
                  wrote on last edited by
                  #18

                  @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?

                  To be, or not to be: that is the question:
                  Whether ’tis nobler in the mind to suffer
                  The slings and arrows of outrageous fortune,
                  Or to take arms against a sea of troubles,
                  And by opposing end them?

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    N3ff3
                    wrote on last edited by
                    #19

                    @sirop

                    I have changed the line

                    win32: LIBS += open62541.lib ws2_32.lib
                    

                    with

                    win32: LIBS += 'C:/Program Files (x86)/open62541/lib/open62541.lib' ws2_32.lib
                    

                    Now 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.

                    siropS 1 Reply Last reply
                    0
                    • N N3ff3

                      @sirop

                      I have changed the line

                      win32: LIBS += open62541.lib ws2_32.lib
                      

                      with

                      win32: LIBS += 'C:/Program Files (x86)/open62541/lib/open62541.lib' ws2_32.lib
                      

                      Now 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.

                      siropS Offline
                      siropS Offline
                      sirop
                      wrote on last edited by
                      #20

                      @N3ff3 said in Build http://code.qt.io/cgit/qt/qtopcua.git/tree/ standalone with Qt 5.9.1:

                      @sirop

                      I have changed the line

                      win32: LIBS += open62541.lib ws2_32.lib
                      

                      with

                      win32: LIBS += 'C:/Program Files (x86)/open62541/lib/open62541.lib' ws2_32.lib
                      

                      In my case it is:

                      win32: LIBS += -LD:\QtProjects\open62541\Build\bin\Release open62541.lib ws2_32.lib
                      

                      so in your case smth. like:

                      win32: LIBS += -L"C:\Program Files (x86)\open62541\lib"  open62541.lib ws2_32.lib
                      

                      but 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 .

                      To be, or not to be: that is the question:
                      Whether ’tis nobler in the mind to suffer
                      The slings and arrows of outrageous fortune,
                      Or to take arms against a sea of troubles,
                      And by opposing end them?

                      1 Reply Last reply
                      0
                      • N Offline
                        N Offline
                        N3ff3
                        wrote on last edited by
                        #21

                        @sirop

                        Thank you for the tips, I think I have to build my own Wrapper to.

                        Thank you for your Time!

                        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