Solved using opc ua in qt
-
@Mogli123 hi, try to add .. at the end of your command
-
@LeLev
hi,
I have the 2 dots allready in my code like in my post aboveWhen I run:
cmake -DCMAKE_BUILD_TYPE=Release -G "MinGW Makefiles" -DUA_ENABLE_AMALGAMATION=ON -DCMAKE_INSTALL_PREFIX=c:\path\to\open62541-mingw-install ..
I get this error:
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles" CMake_Make_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles" CMake_Make_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguageI have no experience to work with the shell therefore I have no idea what I can do to solve the error.
-
-
@LeLev
thank you :)
adding links to the system path solved the problembut now I have a building problem with
mingw32-make
error:
cc1.exe: error: unrecognized command line option "-Wpedantic"
cc1.exe: warnings being treated as errors
cc1.exe: error:unrecognized command line option "-Wno-static-in-inline"
...if one error is solved the next one will follow:(
-
@Mogli123
Can you please check your mingw version ? with mingw32-make -veri used mingw that comes with qt, adding this to system path
C:\Qt\5.12.0\mingw73_64\bin
-
@LeLev
Thank you very much for taking the time to help meI'm using mingw from qt, too.
my mingw version is:
GNU Make 4.2.1
Cuilt for x86_64-w64-mingw32
Copyright....I add the same as you to the system path
-
@Mogli123 when you call cmake .. see if your output is ~similar to mine
maybe you need to update gcccmake -DCMAKE_BUILD_TYPE=Release -G "MinGW Makefiles" -DUA_ENABLE_AMALGAMATION=ON .. -- The C compiler identification is GNU 5.1.0 -- The CXX compiler identification is GNU 5.1.0 -- Check for working C compiler: C:/TDM-GCC-64/bin/gcc.exe -- Check for working C compiler: C:/TDM-GCC-64/bin/gcc.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: C:/TDM-GCC-64/bin/g++.exe -- Check for working CXX compiler: C:/TDM-GCC-64/bin/g++.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PythonInterp: C:/Users/lev/AppData/Local/Programs/Python/Python36-32/python.exe (found version "3.6.5") -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.16.2.windows.1") -- Could NOT find Sphinx (missing: SPHINX_EXECUTABLE) -- Could NOT find LATEX (missing: LATEX_COMPILER) -- Configuring done -- Generating done -- Build files have been written to: C:/Users/lev/Documents/LIB/open62541/build
-
@LeLev
I delet the fils in the build folder
try cmake again and all works fine
I don't know why....
THANK you very much for your helping
that is now qopcua 5.12?
Should I load the 5.11 version, because you noticed that the 5.12 does not work for you? -
@Mogli123 right click on your cloned qtopcua folder> TortoiseGit > Show log to see the version.
Please try to build the qtopcua 5.12 and tell me if it works for you.
qmake c:\users\lev\Documents\LIB\qtopcua -- OPEN62541_PREFIX=c:\users\lev\document s\lib\open62541 OPEN62541_INCDIR=c:\users\lev\documents\lib\open62541\build OPEN62541_LIBDIR=c:\users\lev\documents\lib\open62541\bu ild\bin mingw32-make mingw32-make install
-
@LeLev
It seems that I have the 5.11 version
I runed the code like in the discripiton
I see no error but howe can I test if it works?
sorry if this is a stupid question -
@Mogli123 said in using opc ua in qt:
howe can I test if it works?
create a project, a class, include <QtOpcUa> , create QScopedPointer<QOpcUaClient> m_client; , compile