Creating an OPCUA connection to QT
Unsolved
General and Desktop
-
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
-
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