Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-91287

Example waterpump/simulationserver not compiling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.12.11, 5.15.2
    • OpcUA
    • Ubuntu20.04 x64
    • Linux/X11

    Description

      Install Qt5.15.2 gcc binaries and Automation Qt OpcUA. Run qmake and make to Examples/Qt-5.15.2/opcua/waterpump/simulationserver. Compile fails with:

      g++ -c -pipe -O2 -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_OPCUA_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/johanna/RTA/qt5/Examples/Qt-5.15.2/opcua/waterpump/simulationserver/../../../..//src/plugins/opcua/open62541 -I/home/johanna/RTA/qt5/5.15.2/gcc_64/include/QtOpcUa/5.15.2 -I/home/johanna/RTA/qt5/5.15.2/gcc_64/include/QtOpcUa/5.15.2/QtOpcUa -I/home/johanna/RTA/qt5/5.15.2/gcc_64/include -I/home/johanna/RTA/qt5/5.15.2/gcc_64/include/QtOpcUa -I/home/johanna/RTA/qt5/5.15.2/gcc_64/include/QtNetwork/5.15.2 -I/home/johanna/RTA/qt5/5.15.2/gcc_64/include/QtNetwork/5.15.2/QtNetwork -I/home/johanna/RTA/qt5/5.15.2/gcc_64/include/QtNetwork -I/home/johanna/RTA/qt5/5.15.2/gcc_64/include/QtCore/5.15.2 -I/home/johanna/RTA/qt5/5.15.2/gcc_64/include/QtCore/5.15.2/QtCore -I/home/johanna/RTA/qt5/5.15.2/gcc_64/include/QtCore -I. -I/home/johanna/RTA/qt5/5.15.2/gcc_64/mkspecs/linux-g++ -o main.o main.cpp
      In file included from main.cpp:51:
      simulationserver.h:54:10: fatal error: qopen62541.h: No such file or directory
         54 | #include <qopen62541.h>
            |          ^~~~~~~~~~~~~~
      compilation terminated.
      make: *** [Makefile:851: main.o] Error 1
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            fmeerkoetter Frank Meerkötter
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes