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. Creating an OPCUA connection to QT
Forum Updated to NodeBB v4.3 + New Features

Creating an OPCUA connection to QT

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 198 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.
  • D Offline
    D Offline
    dencla
    wrote on last edited by
    #1

    I am trying to create an opcua connection for my qt application.

    I tried to install qtopcua on my SElinux desktop.
    When I try to build the application I get the following error:

    #include <private/qfactoryloader_p.h> 44:10 Fatal Error ; 'private/qfactoryloader_p.h' File or directory not found.
    

    And in fact the private directory and the qfactoryloder files do not exist. I have looked everywhere and cannot find these files.

    I installed the qtopcua instance as follows:

    git clone https://code.qt.io/qt/qtopcua.git
    cd qtopcua
    git checkout 5.12
    mkdir build && cd build
    ~/Qt/5.12.0/gcc_64/bin/qmake ..
    make
    ```/***
    sudo make install # sudo is not required if Qt 5.12 has been installed to a directory owned by the user
    ***/
    
    I tried to do this installation on my apple and it does not get these errors, it just errors out with a qmake error -1: Error 1
    
    I could use some direction on this.
    
    Thanks
    1 Reply Last reply
    0
    • N Offline
      N Offline
      NewPony
      wrote on last edited by
      #2

      Dont know if it helps under Debian i did it with the ninja build tool:

      sudo apt install openssl libssl-dev libmbedtls-dev libmbedtls14t64 ninja-build
      
      cd <QT_DIR>/<QT_VERSION>/Src/qtopcua
      # if qt opcua folder not there:
      cd <QT_DIR>/<QT_VERSION>/Src/
      git clone https://code.qt.io/qt/qtopcua.git
      cd qtopcua
      git checkout <QT_VERSION>
      
      mkdir build && cd build  
      
      <QT_DIR>/<QT_VERSION>/gcc_64/bin/qt-cmake -GNinja ..
      # To build the official Qt OPC UA examples: -DQT_BUILD_EXAMPLES=ON.
      
      ninja
      
      sudo ninja install
      
      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