Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. meta-qt6 fails with src/gui/opengl/platform/unix/qglxconvenience.cpp:282: undefined reference to `glXGetFBConfigAttrib'
Forum Updated to NodeBB v4.3 + New Features

meta-qt6 fails with src/gui/opengl/platform/unix/qglxconvenience.cpp:282: undefined reference to `glXGetFBConfigAttrib'

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    petero3
    wrote on 30 Nov 2022, 15:12 last edited by
    #1

    Hi

    I'm getting this failure:

    | /workdir/fslckqt/build/tmp/work/cortexa35-mx8-poky-linux/qtbase/6.4.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/11.3.0/ld.bfd: src/gui/CMakeFiles/Gui.dir/opengl/platform/unix/qglxconvenience.cpp.o: in function `qglx_surfaceFormatFromGLXFBConfig(QSurfaceFormat*, _XDisplay*, __GLXFBConfigRec*, int)':
    | /usr/src/debug/qtbase/6.4.1-r0/git/src/gui/opengl/platform/unix/qglxconvenience.cpp:282: undefined reference to `glXGetFBConfigAttrib'
    
    

    from

      /workdir/fslckqt/sources/meta-qt6/recipes-qt/qt6/qtbase_git.bb:do_compile
    

    The full steps I followed were:

    mkdir fslckqt
    cd fslckqt
    repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b kirkstone
    repo sync
    EULA=1 MACHINE=imx8qxp-mek DISTRO=poky source ./setup-environment build

    edit conf/local.conf
    DL_DIR ?= "/workdir/shared/downloads"
    SSTATE_DIR ?= "/workdir/shared/sstate-cache"

    bitbake core-image-minimal
    prove that that works ok, then
    rm -rf tmp

    git clone -b 6.4.1 https://code.qt.io/cgit/yocto/meta-qt6.git/

    edit conf/bblayers.conf
    ${BSPDIR}/sources/meta-qt6 \

    edit local.conf
    QT_EDITION = "commercial"
    CORE_IMAGE_EXTRA_INSTALL:pn-core-image-minimal += "qtbase"

    Similar failure with meta-qt6 dev branch and lts-6.2.7

    I have tried to follow the instructions here as much as possible
    https://doc.qt.io/Boot2Qt/b2qt-meta-qt6.html
    https://code.qt.io/cgit/yocto/meta-qt6.git/about/
    though there are gaps regarding exactly how to add the meta-qt6 layer and compatibility with distros, images etc.

    Thank you
    -- Peter

    P 1 Reply Last reply 30 Nov 2022, 16:46
    0
    • P petero3
      30 Nov 2022, 15:12

      Hi

      I'm getting this failure:

      | /workdir/fslckqt/build/tmp/work/cortexa35-mx8-poky-linux/qtbase/6.4.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/11.3.0/ld.bfd: src/gui/CMakeFiles/Gui.dir/opengl/platform/unix/qglxconvenience.cpp.o: in function `qglx_surfaceFormatFromGLXFBConfig(QSurfaceFormat*, _XDisplay*, __GLXFBConfigRec*, int)':
      | /usr/src/debug/qtbase/6.4.1-r0/git/src/gui/opengl/platform/unix/qglxconvenience.cpp:282: undefined reference to `glXGetFBConfigAttrib'
      
      

      from

        /workdir/fslckqt/sources/meta-qt6/recipes-qt/qt6/qtbase_git.bb:do_compile
      

      The full steps I followed were:

      mkdir fslckqt
      cd fslckqt
      repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b kirkstone
      repo sync
      EULA=1 MACHINE=imx8qxp-mek DISTRO=poky source ./setup-environment build

      edit conf/local.conf
      DL_DIR ?= "/workdir/shared/downloads"
      SSTATE_DIR ?= "/workdir/shared/sstate-cache"

      bitbake core-image-minimal
      prove that that works ok, then
      rm -rf tmp

      git clone -b 6.4.1 https://code.qt.io/cgit/yocto/meta-qt6.git/

      edit conf/bblayers.conf
      ${BSPDIR}/sources/meta-qt6 \

      edit local.conf
      QT_EDITION = "commercial"
      CORE_IMAGE_EXTRA_INSTALL:pn-core-image-minimal += "qtbase"

      Similar failure with meta-qt6 dev branch and lts-6.2.7

      I have tried to follow the instructions here as much as possible
      https://doc.qt.io/Boot2Qt/b2qt-meta-qt6.html
      https://code.qt.io/cgit/yocto/meta-qt6.git/about/
      though there are gaps regarding exactly how to add the meta-qt6 layer and compatibility with distros, images etc.

      Thank you
      -- Peter

      P Offline
      P Offline
      petero3
      wrote on 30 Nov 2022, 16:46 last edited by
      #2

      PS. just incase, did rm -rf /workdir/shared/sstate-cache/ and rm -rf tmp and ran bitbake again, but still same issue.

      P 1 Reply Last reply 6 Dec 2022, 11:21
      0
      • K Offline
        K Offline
        Ktome
        wrote on 2 Dec 2022, 13:45 last edited by
        #3

        Hi Peter,

        I'm actually running into this same issue. Our procedure steps are almost identical. I'm also using Kirkstone, but compiling for a imx8mp machine. I have also tried with Qt 6.4.0 and Dev and keep getting the same issue.

        Did you happen to make any progress? I'm going to keep trying to troubleshoot over the next few days, but I'm hoping someone can help lead us in the right direction.

        P 3 Replies Last reply 5 Dec 2022, 10:47
        0
        • K Ktome
          2 Dec 2022, 13:45

          Hi Peter,

          I'm actually running into this same issue. Our procedure steps are almost identical. I'm also using Kirkstone, but compiling for a imx8mp machine. I have also tried with Qt 6.4.0 and Dev and keep getting the same issue.

          Did you happen to make any progress? I'm going to keep trying to troubleshoot over the next few days, but I'm hoping someone can help lead us in the right direction.

          P Offline
          P Offline
          petero3
          wrote on 5 Dec 2022, 10:47 last edited by
          #4

          Hi @Ktome

          I'm still having the same issue.
          Which distro and image combinations have you tried so far?
          Do you want X11, or Weston/Wayland, or both, or just KMS/DRM?

          I just want KMS/DRM:
          https://doc.qt.io/qt-6.2/embedded-linux.html

          https://github.com/Freescale/fsl-community-bsp-platform
          doesn't name distros or images apart from core-image-minimal

          https://doc.qt.io/Boot2Qt/b2qt-meta-qt6.html
          doesn't name distros or images

          https://code.qt.io/cgit/yocto/meta-qt6.git/about/
          doesn't name distros or images

          https://docs.yoctoproject.org/4.0.5/ref-manual/images.html
          descriptions of images

          https://variwiki.com/index.php?title=Yocto_Build_Release&release=mx8x-yocto-hardknott-5.10.72_2.2.1-v1.1
          (the board we're prototyping with, before manufacturing our own board)
          supports hardknott, not kirkstone yet
          supports qt5, doesn't mention qt6
          "The following distros can be used:
          fslc-xwayland: Distro for Wayland with X11. This distro includes both wayland and X11 features.
          fslc-wayland: Distro for Wayland without X11. This distro includes wayland feature but doesn’t have x11 support.
          Note: Also standard Poky distros can be used"

          1 Reply Last reply
          0
          • K Ktome
            2 Dec 2022, 13:45

            Hi Peter,

            I'm actually running into this same issue. Our procedure steps are almost identical. I'm also using Kirkstone, but compiling for a imx8mp machine. I have also tried with Qt 6.4.0 and Dev and keep getting the same issue.

            Did you happen to make any progress? I'm going to keep trying to troubleshoot over the next few days, but I'm hoping someone can help lead us in the right direction.

            P Offline
            P Offline
            petero3
            wrote on 5 Dec 2022, 11:49 last edited by petero3 12 May 2022, 12:00
            #5

            PS. @Ktome

            fslc-wayland, rather than poky, works for some reason, though I don't want Wayland/Weston myself.

            local.conf
            DISTRO ?= 'fslc-wayland'
            QT_EDITION = "commercial"
            CORE_IMAGE_EXTRA_INSTALL:pn-core-image-weston += "qtbase"

            bitbake core-image-weston
            or
            bitbake core-image-minimal

            1 Reply Last reply
            1
            • K Ktome
              2 Dec 2022, 13:45

              Hi Peter,

              I'm actually running into this same issue. Our procedure steps are almost identical. I'm also using Kirkstone, but compiling for a imx8mp machine. I have also tried with Qt 6.4.0 and Dev and keep getting the same issue.

              Did you happen to make any progress? I'm going to keep trying to troubleshoot over the next few days, but I'm hoping someone can help lead us in the right direction.

              P Offline
              P Offline
              petero3
              wrote on 5 Dec 2022, 14:10 last edited by
              #6

              PPS. @Ktome

              Therefore, looking at fslc-wayland.conf, that has:
              DISTRO_FEATURES:remove = "directfb x11"

              adding that line to my local.conf works around the meta-qt6 build error for poky/core-image-minimal

              Still not sure why the error occurs without that though.
              Would have thought that meta-qt6 should work either way, whether I want x11 or not?

              https://github.com/Freescale/meta-freescale-distro/blob/kirkstone/conf/distro/fslc-wayland.conf
              https://docs.yoctoproject.org/4.0.5/ref-manual/features.html#distro-features

              1 Reply Last reply
              1
              • P petero3
                30 Nov 2022, 16:46

                PS. just incase, did rm -rf /workdir/shared/sstate-cache/ and rm -rf tmp and ran bitbake again, but still same issue.

                P Offline
                P Offline
                petero3
                wrote on 6 Dec 2022, 11:21 last edited by petero3 12 Jun 2022, 13:04
                #7

                Also fails with

                local.conf
                DISTRO ?= 'fslc-x11'
                QT_EDITION = "commercial"
                CORE_IMAGE_EXTRA_INSTALL:pn-core-image-minimal += "qtbase"

                bitbake core-image-minimal

                | /workdir/fslckqt/build/tmp/work/cortexa35-mx8-fslc-linux/qtbase/6.4.1-r0/recipe-sysroot-native/usr/bin/aarch64-fslc-linux/../../libexec/aarch64-fslc-linux/gcc/aarch64-fslc-linux/11.3.0/ld.bfd: src/gui/CMakeFiles/Gui.dir/opengl/platform/unix/qglxconvenience.cpp.o: in function `qglx_surfaceFormatFromGLXFBConfig(QSurfaceFormat*, _XDisplay*, __GLXFBConfigRec*, int)':
                | /usr/src/debug/qtbase/6.4.1-r0/git/src/gui/opengl/platform/unix/qglxconvenience.cpp:282: undefined reference to `glXGetFBConfigAttrib'
                
                1 Reply Last reply
                1
                • K Offline
                  K Offline
                  Ktome
                  wrote on 12 Dec 2022, 01:28 last edited by
                  #8

                  Hi Petero3,

                  I appreciate your help with this. I attempted to the "DISTRO_FEATURES:remove = "directfb x11"" approach but kept getting the same error.

                  I actually backtracked a bit and installed the meta-qt6 layer alongside dunfell instead of kirkstone. This worked without issue so I imagine I'll just stick with dunfell. I appreciate all of your help though.

                  1 Reply Last reply
                  0

                  1/8

                  30 Nov 2022, 15:12

                  • Login

                  • Login or register to search.
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved