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. QtOpcUa build error.
Forum Updated to NodeBB v4.3 + New Features

QtOpcUa build error.

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 3 Posters 2.0k Views 1 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.
  • A Offline
    A Offline
    athyc
    wrote on last edited by
    #1

    Hi

    I'm trying to build the QtOpuUa lib with open62541 using qmake.
    i'm using this guide https://blog.basyskom.com/2018/want-to-give-qt-opcua-a-try/
    but when i run the mingw32-make .exe i get an error 5c74da4a-a98e-4183-a444-56bb61821505-image.png
    I'm at a loss and don't know how to continue.

    any suggestions?

    Pablo J. RoginaP 1 Reply Last reply
    1
    • A athyc

      Hi

      I'm trying to build the QtOpuUa lib with open62541 using qmake.
      i'm using this guide https://blog.basyskom.com/2018/want-to-give-qt-opcua-a-try/
      but when i run the mingw32-make .exe i get an error 5c74da4a-a98e-4183-a444-56bb61821505-image.png
      I'm at a loss and don't know how to continue.

      any suggestions?

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @athyc have you tried the more recent blog from the link you posted?

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • A Offline
        A Offline
        athyc
        wrote on last edited by
        #3

        Yes, same error it's the mingw32-make that's giving me issues :(

        Pablo J. RoginaP 1 Reply Last reply
        0
        • A athyc

          Yes, same error it's the mingw32-make that's giving me issues :(

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @athyc so you did these steps below, right?

          Execute the following commands in the “Qt 5.12.0 for Desktop (MinGW 5.3.0 32 bit)” shell

          git clone https://code.qt.io/qt/qtopcua.git
          cd qtopcua
          git checkout 5.12
          mkdir build
          cd build
          qmake ..
          mingw32-make
          mingw32-make install
          

          could you post (as text, not an image please) the output where the error is showing up?

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          1
          • fcarneyF Offline
            fcarneyF Offline
            fcarney
            wrote on last edited by
            #5

            @Pablo-J-Rogina said in QtOpcUa build error.:

            https://code.qt.io/qt/qtopcua

            I found it more useful to use one of the backends they are using with qtopcua. The Qt interface didn't provide a server and was client only at the time. I am having success using open62541 as a server in my Qt console application I am developing. YMMV

            C++ is a perfectly valid school of magic.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              athyc
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • A Offline
                A Offline
                athyc
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  athyc
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    athyc
                    wrote on last edited by
                    #9

                    C:\Users\Desktop\OPCUA_lib>git clone https://code.qt.io/qt/qtopcua.git
                    Cloning into 'qtopcua'...
                    remote: Counting objects: 8151, done.
                    remote: Compressing objects: 100% (4183/4183), done.
                    Rremote: Total 8151 (delta 5067), reused 6341 (delta 3892)
                    Receiving objects: 100% (8151/8151), 2.48 MiB | 3.95 MiB/s, done.
                    Resolving deltas: 100% (5067/5067), done.

                    C:\Users\Desktop\OPCUA_lib>cd qtopcua

                    C:\Users\Desktop\OPCUA_lib\qtopcua>git checkout 5.12
                    Switched to a new branch '5.12'
                    Branch '5.12' set up to track remote branch '5.12' from 'origin'.

                    C:\Users\Desktop\OPCUA_lib\qtopcua>mkdir build

                    C:\Users\Desktop\OPCUA_lib\qtopcua>cd build

                    C:\Users\Desktop\OPCUA_lib\qtopcua\build>qmake ..
                    Info: creating stash file C:\Users\Desktop\OPCUA_lib\qtopcua\build.qmake.stash
                    Info: creating cache file C:\Users\Desktop\OPCUA_lib\qtopcua\build.qmake.cache

                    Running configuration tests...
                    Checking for Open62541... no
                    Checking for Unified Automation C++ SDK... no
                    Done running configuration tests.

                    Configure summary:

                    Qt Opcua:
                    Open62541 .............................. yes
                    Unified Automation C++ SDK ............. no
                    Support for namespace 0 NodeId names ... yes
                    Namespace 0 NodeIds generator .......... no

                    Qt is now configured for building. Just run 'mingw32-make'.
                    Once everything is built, you must run 'mingw32-make install'.
                    Qt will be installed into 'C:\Qt\5.14.1\mingw73_64'.

                    Prior to reconfiguration, make sure you remove any leftovers from
                    the previous build.

                    C:\Users\Desktop\OPCUA_lib\qtopcua\build>mingw32-make
                    cd src\ && ( if not exist Makefile C:\Qt\5.14.1\mingw73_64\bin\qmake.exe -o Makefile "C:\Users\Desktop\OPCUA_lib\qtopcua\src\src.pro" ) && mingw32-make -f Makefile
                    mingw32-make[1]: Entering directory 'C:/Users//Desktop/OPCUA_lib/qtopcua/build/src'
                    cd opcua\ && ( if not exist Makefile C:\Qt\5.14.1\mingw73_64\bin\qmake.exe -o Makefile "C:\Users\Desktop\OPCUA_lib\qtopcua\src\opcua\opcua.pro" ) && mingw32-make -f Makefile
                    Project MESSAGE: perl -w C:\Qt\5.14.1\mingw73_64\bin\syncqt.pl -module QtOpcUa -version 5.12.8 -outdir "C:/Users//Desktop/OPCUA_lib/qtopcua/build" -builddir "C:/Users//Desktop/OPCUA_lib/qtopcua/build" C:/Users//Desktop/OPCUA_lib/qtopcua
                    Use of uninitialized value $directory in concatenation (.) or string at C:\Qt\5.14.1\mingw73_64\bin\syncqt.pl line 691.
                    fileparse(): need a valid pathname at C:\Qt\5.14.1\mingw73_64\bin\syncqt.pl line 694.
                    Project ERROR: Failed to run: perl -w C:\Qt\5.14.1\mingw73_64\bin\syncqt.pl -module QtOpcUa -version 5.12.8 -outdir "C:/Users//Desktop/OPCUA_lib/qtopcua/build" -builddir "C:/Users//Desktop/OPCUA_lib/qtopcua/build" C:/Users//Desktop/OPCUA_lib/qtopcua
                    mingw32-make[1]: *** [Makefile:52: sub-opcua-make_first] Error 3
                    mingw32-make[1]: Leaving directory 'C:/Users//Desktop/OPCUA_lib/qtopcua/build/src'
                    mingw32-make: *** [Makefile:53: sub-src-make_first] Error 2

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      athyc
                      wrote on last edited by
                      #10

                      So i did a reinstall of everything now, the error i get now is related to perl after i run mingw32-make.

                      All steps at show above.

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        athyc
                        wrote on last edited by
                        #11

                        Switched to Qt 5.12.2 mingw73_32 still same error.

                        Pablo J. RoginaP 1 Reply Last reply
                        0
                        • A athyc

                          Switched to Qt 5.12.2 mingw73_32 still same error.

                          Pablo J. RoginaP Offline
                          Pablo J. RoginaP Offline
                          Pablo J. Rogina
                          wrote on last edited by
                          #12

                          @athyc

                          Project ERROR: Failed to run: perl

                          1. Do you have Perl installed?
                          2. If so, is it available in the path?
                          3. What's the output of following command:
                          perl -w C:\Qt\5.14.1\mingw73_64\bin\syncqt.pl -module QtOpcUa -version 5.12.8 -outdir
                          

                          Upvote the answer(s) that helped you solve the issue
                          Use "Topic Tools" button to mark your post as Solved
                          Add screenshots via postimage.org
                          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                          1 Reply Last reply
                          1
                          • A Offline
                            A Offline
                            athyc
                            wrote on last edited by
                            #13

                            I just reinstalled Strawberry perl (32-bit) to ensure all versions are 32-bit.
                            I changed the path from a desktop folder to the QT\mingw folder and cloned the git link there.
                            It's running the mingw32-make now will update you when its done.

                            1 Reply Last reply
                            1
                            • A Offline
                              A Offline
                              athyc
                              wrote on last edited by
                              #14

                              It works, got my first OPC connection now!

                              Pablo J. RoginaP 1 Reply Last reply
                              2
                              • A athyc

                                It works, got my first OPC connection now!

                                Pablo J. RoginaP Offline
                                Pablo J. RoginaP Offline
                                Pablo J. Rogina
                                wrote on last edited by
                                #15

                                @athyc great, so please don't forget to mark your post as solved and upvote the answer(s) that helped you.

                                Upvote the answer(s) that helped you solve the issue
                                Use "Topic Tools" button to mark your post as Solved
                                Add screenshots via postimage.org
                                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                                1 Reply Last reply
                                1

                                • Login

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