Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Examples won't compile...
Qt 6.11 is out! See what's new in the release blog

Examples won't compile...

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 2.1k 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.
  • M Offline
    M Offline
    McCall
    wrote on last edited by
    #1

    Hi Folks,

    I've downloaded qt-linux-opensource-5.0.1-x86_64-offline and installed on my Ubuntu 12.04LTS system. I can run Qt Creator, but the examples won't compile. For example the Address Book example has this error:

    @20:37:46: Running steps for project addressbook...
    20:37:46: Configuration unchanged, skipping qmake step.
    20:37:46: Starting: "/usr/bin/make" -w
    make: Entering directory /home/mccall/Programming/Qt5.0.1/5.0.1/gcc_64/examples/widgets/itemviews/addressbook-build-Desktop_Qt_5_0_1_GCC_64bit-Debug' g++ -c -m64 -pipe -g -Wall -W -D_REENTRANT -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../mkspecs/linux-g++-64 -I../addressbook -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui -I../../../../include/QtCore -I. -I. -o adddialog.o ../addressbook/adddialog.cpp In file included from ../../../../include/QtGui/qopenglcontext.h:60:0, from ../../../../include/QtGui/QtGui:33, from ../../../../include/QtWidgets/QtWidgets:5, from ../addressbook/adddialog.cpp:43: ../../../../include/QtGui/qopengl.h:99:21: fatal error: GL/gl.h: No such file or directory compilation terminated. make: *** [adddialog.o] Error 1 make: Leaving directory /home/mccall/Programming/Qt5.0.1/5.0.1/gcc_64/examples/widgets/itemviews/addressbook-build-Desktop_Qt_5_0_1_GCC_64bit-Debug'
    20:37:46: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project addressbook (kit: Desktop Qt 5.0.1 GCC 64bit)
    When executing step 'Make'@

    I do have libglu1-mesa installed already:

    @mccall@phenom:~/Programming/Qt5.0.1$ sudo apt-get install libglu1-mesa
    [sudo] password for mccall:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    libglu1-mesa is already the newest version.@

    I guess I'm just missing a package, but I can't seem to work out which one! I found this "thread":http://qt-project.org/forums/viewthread/25501 that had the same problem, but the solution wasn't given...

    Please can someone help?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      McCall
      wrote on last edited by
      #2

      Doh! I didn't have the dev package!

      mccall@phenom:~/Programming/Qt5.0.1$ sudo apt-get install libglu1-mesa-dev

      All works as it should - thanks for looking anyway!

      1 Reply Last reply
      0

      • Login

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