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 simulationserver examle
Forum Updated to NodeBB v4.3 + New Features

QTOPCUA simulationserver examle

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 2.1k 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.
  • D Offline
    D Offline
    dencla
    wrote on last edited by
    #1

    I'm having an issue building the simulationserver example.

    I, Running QT Creator 17.0.0 "Built on Jun 17 2025 16:32:24 based on Qt 6.9.1 (MSVC 2022, x86_64).

    I'm using the qtopcua supplied with Qt6.9.1 for develpmment.

    I built the main qtopcua without issue, but when I try to build the example simulation server I get the following error when I try to build it.

    In the example I am providing I told the maintenance tool no, but in a previous build I told it yes and it cannot find the missing addon, and stalls.

    [cmake] Running C:\Qt\Tools\CMake_64\bin\cmake.exe -S C:/Qt/Projects/qtopcua/examples/opcua/waterpump/simulationserver -B C:/Qt/Projects/qtopcua/examples/opcua/waterpump/simulationserver/build/Desktop_Qt_6_9_1_MinGW_64_bit-Debug in C:\Qt\Projects\qtopcua\examples\opcua\waterpump\simulationserver\build\Desktop_Qt_6_9_1_MinGW_64_bit-Debug.
    [cmake] -- Qt Creator: CMake could not find: Qt6OpcUa. Now installing: qt.qt6.691.addons.qtopcua with the MaintenanceTool ...
    [cmake] -- Qt Creator: Using MaintenanceTool in GUI Mode. Set QT_CREATOR_MAINTENANCE_TOOL_PROVIDER_USE_CLI to ON for CLI mode.
    [cmake] IFW Version: 4.10.0, built with Qt 6.7.2.
    [cmake] Build date: Jun  3 2025
    [cmake] Installer Framework SHA1: 6c5ea218dd6f2358b1ee71890e0f2f42785b385b
    [cmake] [0] Arguments: C:/Qt/MaintenanceTool.exe, --script, C:/Qt/Projects/qtopcua/examples/opcua/waterpump/simulationserver/build/Desktop_Qt_6_9_1_MinGW_64_bit-Debug/.qtc/package-manager/maintenance_tool_provider.qs, --verbose
    [cmake] [45] Operations sanity check succeeded.
    [cmake] [55] Using metadata cache from "C:/Users/jdenn/AppData/Local/cache\\qt-unified-windows-online"
    [cmake] [55] Found 591 cached items.
    [cmake] [57] Reading Qt Account settings from disk: "C:/Users/jdenn/AppData/Roaming/Qt/qtaccount.ini"
    [cmake] [58] Opensource installation detected: "C:/Qt"
    [cmake] [58] QtAccount information:
    [cmake] [58] Login completed: false
    [cmake] [58] Email: "hometlc@swbell.net"
    [cmake] [58] Total number of licenses: 0
    [cmake] [58] Account type: 1
    [cmake] [59] Language: en-US
    [cmake] [63370] Loaded control script "C:/Qt/Projects/qtopcua/examples/opcua/waterpump/simulationserver/build/Desktop_Qt_6_9_1_MinGW_64_bit-Debug/.qtc/package-manager/maintenance_tool_provider.qs"
    [cmake] [63370] Using control script: "C:/Qt/Projects/qtopcua/examples/opcua/waterpump/simulationserver/build/Desktop_Qt_6_9_1_MinGW_64_bit-Debug/.qtc/package-manager/maintenance_tool_provider.qs"
    [cmake] [64374] qtcreator.install.packages : Qt Creator : CMake could not find: Qt6OpcUa<br><br>Do you want to install the missing packages? Yes|No
    [cmake] [107978] tracking events QList("MouseButtonRelease", "Quit")
    [cmake] [108018] Warning: An empty storage type is specified, caching will be disabled.
    [cmake] CMake Warning at build/Desktop_Qt_6_9_1_MinGW_64_bit-Debug/.qtc/package-manager/maintenance_tool_provider.cmake:270 (message):
    [cmake]   Qt MaintenanceTool returned an error.
    [cmake] 
    [cmake]   IFW Version: 4.10.0, built with Qt 6.7.2.
    [cmake] 
    [cmake]   Build date: Jun 3 2025
    [cmake] 
    [cmake]   Installer Framework SHA1: 6c5ea218dd6f2358b1ee71890e0f2f42785b385b
    [cmake] 
    [cmake]   [0] Arguments: C:/Qt/MaintenanceTool.exe, --script,
    [cmake]   C:/Qt/Projects/qtopcua/examples/opcua/waterpump/simulationserver/build/Desktop_Qt_6_9_1_MinGW_64_bit-Debug/.qtc/package-manager/maintenance_tool_provider.qs,
    [cmake]   --verbose
    [cmake] 
    [cmake]   [45] Operations sanity check succeeded.
    [cmake] 
    [cmake]   [55] Using metadata cache from
    [cmake]   "C:/Users/jdenn/AppData/Local/cache\\qt-unified-windows-online"
    [cmake] 
    [cmake]   [55] Found 591 cached items.
    [cmake] 
    [cmake]   [57] Reading Qt Account settings from disk:
    [cmake]   "C:/Users/jdenn/AppData/Roaming/Qt/qtaccount.ini"
    [cmake] 
    [cmake]   [58] Opensource installation detected: "C:/Qt"
    [cmake] 
    [cmake]   [58] QtAccount information:
    [cmake] 
    [cmake]   [58] Login completed: false
    [cmake] 
    [cmake]   [58] Email: "hometlc@swbell.net"
    [cmake] 
    [cmake]   [58] Total number of licenses: 0
    [cmake] 
    [cmake]   [58] Account type: 1
    [cmake] 
    [cmake]   [59] Language: en-US
    [cmake] 
    [cmake]   [63370] Loaded control script
    [cmake]   "C:/Qt/Projects/qtopcua/examples/opcua/waterpump/simulationserver/build/Desktop_Qt_6_9_1_MinGW_64_bit-Debug/.qtc/package-manager/maintenance_tool_provider.qs"
    [cmake] 
    [cmake] 
    [cmake]   [63370] Using control script:
    [cmake]   "C:/Qt/Projects/qtopcua/examples/opcua/waterpump/simulationserver/build/Desktop_Qt_6_9_1_MinGW_64_bit-Debug/.qtc/package-manager/maintenance_tool_provider.qs"
    [cmake] 
    [cmake] 
    [cmake]   [64374] qtcreator.install.packages : Qt Creator : CMake could not find:
    [cmake]   Qt6OpcUa<br><br>Do you want to install the missing packages? Yes|No
    [cmake] 
    [cmake]   [107978] tracking events QList("MouseButtonRelease", "Quit")
    [cmake] 
    [cmake]   [108018] Warning: An empty storage type is specified, caching will be
    [cmake]   disabled.
    [cmake] 
    [cmake] Call Stack (most recent call first):
    [cmake]   build/Desktop_Qt_6_9_1_MinGW_64_bit-Debug/.qtc/package-manager/maintenance_tool_provider.cmake:304 (qt_maintenance_tool_install)
    [cmake]   CMakeLists.txt:17 (find_package)
    [cmake] 
    [cmake] 
    [cmake] CMake Error at build/Desktop_Qt_6_9_1_MinGW_64_bit-Debug/.qtc/package-manager/maintenance_tool_provider.cmake:315 (find_package):
    [cmake]   Found package configuration file:
    [cmake] 
    [cmake]     C:/Qt/6.9.1/mingw_64/lib/cmake/Qt6/Qt6Config.cmake
    [cmake] 
    [cmake]   but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
    [cmake]   FOUND.  Reason given by package:
    [cmake] 
    [cmake]   Failed to find required Qt component "OpcUa".
    [cmake] 
    [cmake]   Expected Config file at
    [cmake]   "C:/Qt/6.9.1/mingw_64/lib/cmake/Qt6OpcUa/Qt6OpcUaConfig.cmake" does NOT
    [cmake]   exist
    [cmake] 
    [cmake] 
    [cmake] 
    [cmake]   Configuring with --debug-find-pkg=Qt6OpcUa might reveal details why the
    [cmake]   package was not found.
    [cmake] 
    [cmake]   Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
    [cmake]   of the path variables that find_package uses to try and find the package.
    [cmake] 
    [cmake] Call Stack (most recent call first):
    [cmake]   CMakeLists.txt:17 (find_package)
    [cmake] 
    [cmake] 
    [cmake] -- Configuring incomplete, errors occurred!
    [cmake] 
    [cmake] The command "C:\Qt\Tools\CMake_64\bin\cmake.exe -S C:/Qt/Projects/qtopcua/examples/opcua/waterpump/simulationserver -B C:/Qt/Projects/qtopcua/examples/opcua/waterpump/simulationserver/build/Desktop_Qt_6_9_1_MinGW_64_bit-Debug" terminated with exit code 1.
    [cmake] 
    [cmake] Elapsed time: 01:49.
    

    It calls the maintenance tool and is looking for OpcUa and cannot find it.

    I'm excited that I have gotten this far I just need some clarity.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dencla
      wrote on last edited by
      #2

      Qt6OpcUa only appears on my computer as a directory or a cmake file. I could not find any libraries or plugins.

      sbelaS 1 Reply Last reply
      0
      • D dencla

        Qt6OpcUa only appears on my computer as a directory or a cmake file. I could not find any libraries or plugins.

        sbelaS Offline
        sbelaS Offline
        sbela
        wrote on last edited by
        #3

        @dencla You have to build it yourself and install it.

        I would like!

        D 1 Reply Last reply
        0
        • sbelaS sbela

          @dencla You have to build it yourself and install it.

          D Offline
          D Offline
          dencla
          wrote on last edited by
          #4

          @sbela I thought that I did that when I did the build on qtopcua. Or am I missing something?
          It said that it was successful.

          JKSHJ 1 Reply Last reply
          0
          • D Offline
            D Offline
            dencla
            wrote on last edited by
            #5

            What are the file names thatI should see and where shold they be located.

            1 Reply Last reply
            0
            • D dencla

              @sbela I thought that I did that when I did the build on qtopcua. Or am I missing something?
              It said that it was successful.

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              @dencla said in QTOPCUA simulationserver examle:

              @sbela I thought that I did that when I did the build on qtopcua. Or am I missing something?
              It said that it was successful.

              Did you install it? cmake --install . This assumes that you had your CMAKE_PREFIX_PATH set correctly, for example by using the qt-cmake tool: https://doc.qt.io/qt-6/cmake-build-on-cmdline.html#qt-cmake

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              1
              • D Offline
                D Offline
                dencla
                wrote last edited by
                #7

                Just an Update. I have been able to build bothe the client and server example application. Thanks to all!! I was exstatic aa few weeks ago and was able to get a device to connect the new clinet that i created to its opc ua Server and it kept failing. I was successful using MinGW 64 6.9.1, but then I was told that that version did not include security and I needed to use MSVC 2019 x64. I have been trying to rebuild it eversince under MSVC 6.10.1 64 with out success, I keep gettin build errors of all sorts. I fix one thing then I get another. Are ther instructions on how to build OPC UA under either platform with security enabled?

                1 Reply Last reply
                0
                • D dencla has marked this topic as solved
                • JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote last edited by
                  #8

                  Glad to hear that you've made progress!

                  Let's continue the security question at https://forum.qt.io/topic/163829/opc-ua-client-security

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  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