Showing posts with label OPCUA. Show all posts
Showing posts with label OPCUA. Show all posts

Friday, September 26, 2025

Building Qt OPC UA wrapper for open62541 on Windows 10 using MinGW

Building Qt OPC UA wrapper for open62541 on Windows 10 using MinGW

Base Requirements(tested on):
OS: Windows 10
Qt: Qt Creator 17.0.1/Qt 6.7.3 (MinGW 11.2.0 64-bit)
Python: Python 3.13 (needed for compiling open62541)

Note:
As of 9/26/2025, Qt 6.9.2 (MinGW 13.1.0 64-bit) is not able to build open62541


Set environment variables, open cmd.exe
call C:\Qt\6.7.3\mingw_64\bin\qtenv2.bat
set path=C:\Qt\Tools\CMake_64\bin;%path%
Build and install open62541
mkdir c:\g
cd c:\g
git clone https://github.com/open62541/open62541.git
cd open62541
git checkout v1.4.13
mkdir build && cd build
cmake .. -G "MinGW Makefiles" -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX="C:/open62541-install"

mingw32-make
mingw32-make install
Build Qt OpcUA
cd c:\g
git clone https://code.qt.io/qt/qtopcua.git
cd qtopcua
git checkout v6.7.3
mkdir build
cd build

qt-cmake .. ^
-G "MinGW Makefiles" ^
-DINPUT_open62541=system ^
-DCMAKE_PREFIX_PATH="C:/open62541-install" ^
-DCMAKE_INSTALL_PREFIX="C:/Qt/6.7.3/mingw_64"

mingw32-make
mingw32-make install

Building Qt OPC UA wrapper for open62541 on Windows 10 using MinGW

Building Qt OPC UA wrapper for open62541 on Windows 10 using MinGW Base Requirements(tested on): OS: Windows 10 Qt: Qt Creator 17.0.1/Qt ...