Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why does my application require libQt6OpenGLWidgets.so
Forum Updated to NodeBB v4.3 + New Features

Why does my application require libQt6OpenGLWidgets.so

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 2 Posters 599 Views 2 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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by
    #1

    I don't use OpenGL so why does that library get linked into my application?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What are the modules you are using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • PerdrixP Offline
        PerdrixP Offline
        Perdrix
        wrote on last edited by Perdrix
        #3

        I was specifying:

        find_package(Qt6 6.8 REQUIRED COMPONENTS Core Gui Widgets Network Charts LinguistTools)

        and had to change that when ldd told me the executable needed both DBus and OpenGLWidgets even though I include no headers for either in my code and didn't explicitly link with then either:

        target_link_libraries(DeepSkyStacker PRIVATE
            Qt6::Core
            Qt6::Gui
            Qt6::Widgets
            Qt6::Network
        	DeepSkyStackerKernel
            ZClass
        )
        

        I suppose it is possible that one of my other dependencies pulled in the OpenGLWidgets stuff, but I'd be very surprised.

        target_link_libraries(${PROJECT_NAME} PRIVATE Boost::container)
        target_link_libraries(${PROJECT_NAME} PRIVATE Exiv2::exiv2lib)
        target_link_libraries(${PROJECT_NAME} PRIVATE expat::expat)
        target_link_libraries(${PROJECT_NAME} PRIVATE libraw::raw_r)
        target_link_libraries(${PROJECT_NAME} PRIVATE TIFF::TIFF)
        target_link_libraries(${PROJECT_NAME} PRIVATE ZLIB::ZLIB)
        
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          It might be the charts module that triggers this dependencies.

          What does DeepSkyStackerKernel use ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • PerdrixP Offline
            PerdrixP Offline
            Perdrix
            wrote on last edited by
            #5

            No much apart from QImage and QPixmap

            David

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Silly question but did you do a full rebuild since you changed the CMakefile ?
              AFAIK, it should not be need but sometimes...

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • PerdrixP Offline
                PerdrixP Offline
                Perdrix
                wrote on last edited by
                #7

                Yes I have done a full rebuild...

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Can you create a minimal project that triggers this ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • PerdrixP Offline
                    PerdrixP Offline
                    Perdrix
                    wrote on last edited by
                    #9

                    I can try

                    1 Reply Last reply
                    0
                    • PerdrixP Offline
                      PerdrixP Offline
                      Perdrix
                      wrote on last edited by
                      #10

                      OK this is a dependency from QtCharts :(. It requires both Qt6OpenGL and Qt6OpenGLWidgets.

                      This is true on both Windows and Linux. I'm unclear quite why it needs them but that's why they are getting pulled in.

                      D.

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        Simply because Qt Charts makes use of both unless built without OpenGL support.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        2

                        • Login

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