Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. compiling err
Qt 6.12 LTS is out! See what's new in the release blog

compiling err

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.2k Views
  • 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.
  • S Offline
    S Offline
    sovereignc
    wrote on last edited by
    #1

    g++ -Wl,-O1 -Wl,-rpath,/home/suck/Qt/5.8/gcc_64/lib -o test main.o mainwindow.o moc_mainwindow.o -L/home/suck/Qt/5.8/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
    /usr/bin/ld: cannot find -lGL

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
      wrote on last edited by
      #2

      It may be missing Library. Try this

      sudo apt-get install libglu1-mesa-dev

      Dheerendra
      @Community Service
      Certified Qt Specialist
      https://www.pthinks.com

      S 1 Reply Last reply
      3
      • dheerendraD dheerendra

        It may be missing Library. Try this

        sudo apt-get install libglu1-mesa-dev

        S Offline
        S Offline
        sovereignc
        wrote on last edited by
        #3

        @dheerendra

        Thanks that worked.

        now it is giving:
        QApplication: invalid style override passed, ignoring it.

        I needed to install Linux from Windows 10 forced upgrade.

        RatzzR 1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
          wrote on last edited by
          #4

          Super. Move the current issue to solved state. You can post. Another question for ur next problem.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          https://www.pthinks.com

          1 Reply Last reply
          1
          • S sovereignc

            @dheerendra

            Thanks that worked.

            now it is giving:
            QApplication: invalid style override passed, ignoring it.

            I needed to install Linux from Windows 10 forced upgrade.

            RatzzR Offline
            RatzzR Offline
            Ratzz
            wrote on last edited by
            #5

            @sovereignc said in compiling err:

            now it is giving:
            QApplication: invalid style override passed, ignoring it.

            May be this link can help you https://forum.qt.io/topic/75398/qt-5-8-0-qapplication-invalid-style-override-passed-ignoring-it

            --Alles ist gut.

            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
            • Unsolved