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

Static build of Qt OPCUA fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.12
    • OpcUA
    • None
    • Integrity

    Description

      I'm currently working on the porting of this demo on INTEGRITY OS running on i.MX8qm.

      Since this demo application uses Qt OPC UA, which relys on the third party plugin "open62541", I downloaded Qt OPC UA and now am trying to build it.
      (The demo is built with Qt5.12.12)

      The reason why I'm trying static link is because INTEGRITY doesn't allow dynamic link.

      My host machine runs Ubuntu 22.0.4.
      I'm referring to this [document|https://doc.qt.io/qt-5/qtopcua-build-open62541.html  (I'll|https://doc.qt.io/qt-5/qtopcua-build-open62541.html](I'll] call this as "document" from now on) for this steps.

      The first thing I did was to get qtopcua code.

      Then created "build" directory under it.


      Then I git checked out to "refs/tags/v5.12.0", because 5.12 branch seemed not to be supporting INTEGRITY.

      Then set the environment variables in the build directory.

      export OPEN62541=/home/mikio/work/porting/Integrity/20220818/build_qt_for_integrity_qmake/open62541
      export QTOPCUA_OPEN62541_INCLUDE_PATH=$OPEN62541/build
      export QTOPCUA_OPEN62541_LIB_PATH=$QTOPCUA_OPEN62541_INCLUDE_PATH/bin
      export OPEN62541_INCDIR=$OPEN62541/build
      export OPEN62541_LIBDIR=$QTOPCUA_OPEN62541_INCLUDE_PATH/bin
      

      Then I ran the script "setEnvironment.sh", which is needed for INTEGRITY related build.

      //inside setEnvironment.sh
      export PATH=$PATH:/usr/ghs/comp_202114
      export INTEGRITY_DIR=/usr/ghs/int19015
      export INTEGRITY_BSP=platform-imx8
      export INTEGRITY_BUILD_TARGET=chk
      export GL_INC_DIR=/usr/ghs/int19015/imx8-graphics/include/GLES2:/usr/ghs/int19015/imx8-graphics/include:/usr/ghs/int19015/imx8-graphics/include/CL:/usr/ghs/int19015/imx8-graphics/include/EGL:/usr/ghs/int19015/imx8-graphics/include/GL:/usr/ghs/int19015/imx8-graphics/include/GLES:/usr/ghs/int19015/imx8-graphics/include/GLES3:/usr/ghs/int19015/imx8-graphics/include/KHR:/usr/ghs/int19015/imx8-graphics/include/SPIRV:/usr/ghs/int19015/imx8-graphics/include/VG:/usr/ghs/int19015/imx8-graphics/include/vulkan:/usr/ghs/int19015/imx8-graphics/include/VX
      export GL_LIB_DIR=/usr/ghs/int19015/imx8-graphics/libs:/usr/ghs/int19015/imx8-extended-bsp/libs/chk:/usr/ghs/int19015/libs/arm64/chk
      

      Then I ran qmake, which had been created for INTEGRITY, in the same build directory.

      /usr/local/Qt-5.12.12/bin/qmake ../
      

       

       

      This yielded the following output. As you can see, "Open62541" is marked as "no".

      Running configuration tests...
      Done running configuration tests.Configure summary:Qt Opcua:
        Open62541 .............................. no
        Unified Automation C++ SDK ............. no
        Support for namespace 0 NodeId names ... yes
        Namespace 0 NodeIds generator .......... noQt is now configured for building. Just run 'make'.
      Once everything is built, you must run 'make install'.
      Qt will be installed into '/usr/local/Qt-5.12.12'.Prior to reconfiguration, make sure you remove any leftovers from
      the previous build.
      

      I'd like to know how to make it "yes" after qmake.

      Thank you in advance.

       

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes