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. Qt 5.0.1 and Ubuntu 12.04
Forum Updated to NodeBB v4.3 + New Features

Qt 5.0.1 and Ubuntu 12.04

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 3 Posters 5.4k 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.
  • R Offline
    R Offline
    RobBa85
    wrote on last edited by
    #1

    Hello,

    I have installed Qt on my Linux-System. Now I have the problem, that when I want execute one of the examples it comes the failure that he don't find the includes.

    In the readme is written that I must add the "Include Path" to the tools search path for include files
    and add the " lib path" to the search path for libaries.

    Can someone please help me and show me the way to add this pathes. I found nothing where i can add these pathes.

    Thank you very much

    Robert

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Please post exact error messages you are getting.

      (Z(:^

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RobBa85
        wrote on last edited by
        #3

        12:41:44: Führe Schritte für Projekt nestedlayouts aus...
        12:41:44: Starte "/home/test/Qt5.0.1/5.0.1/gcc/bin/qmake" /home/test/Qt5.0.1/5.0.1/gcc/examples/widgets/tutorials/widgets/nestedlayouts/nestedlayouts.pro -r -spec linux-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug
        12:41:45: Der Prozess "/home/test/Qt5.0.1/5.0.1/gcc/bin/qmake" wurde normal beendet.
        12:41:45: Starte "/usr/bin/make" -w
        make: Entering directory /home/test/Qt5.0.1/5.0.1/gcc/examples/widgets/tutorials/widgets/nestedlayouts-build-Desktop_Qt_5_0_1_GCC_32bit-Debug' g++ -c -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++ -I../nestedlayouts -I../../../../../include -I../../../../../include/QtWidgets -I../../../../../include/QtGui -I../../../../../include/QtCore -I. -I. -o main.o ../nestedlayouts/main.cpp In file included from ../../../../../include/QtGui/qopenglcontext.h:60:0, from ../../../../../include/QtGui/QtGui:33, from ../../../../../include/QtWidgets/QtWidgets:5, from ../nestedlayouts/main.cpp:43: ../../../../../include/QtGui/qopengl.h:99:21: fatal error: GL/gl.h: No such file or directory compilation terminated. make: *** [main.o] Error 1 make: Leaving directory /home/test/Qt5.0.1/5.0.1/gcc/examples/widgets/tutorials/widgets/nestedlayouts-build-Desktop_Qt_5_0_1_GCC_32bit-Debug'
        12:41:46: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 beendet.
        Error while building/deploying project nestedlayouts (kit: Desktop Qt 5.0.1 GCC 32bit)
        Bei der Ausführung von Schritt 'Make'

        12:41:44: Führe Schritte für Projekt nestedlayouts aus...
        12:41:44: Starte "/home/test/Qt5.0.1/5.0.1/gcc/bin/qmake" /home/test/Qt5.0.1/5.0.1/gcc/examples/widgets/tutorials/widgets/nestedlayouts/nestedlayouts.pro -r -spec linux-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug
        12:41:45: Der Prozess "/home/test/Qt5.0.1/5.0.1/gcc/bin/qmake" wurde normal beendet.
        12:41:45: Starte "/usr/bin/make" -w
        make: Entering directory /home/test/Qt5.0.1/5.0.1/gcc/examples/widgets/tutorials/widgets/nestedlayouts-build-Desktop_Qt_5_0_1_GCC_32bit-Debug' g++ -c -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++ -I../nestedlayouts -I../../../../../include -I../../../../../include/QtWidgets -I../../../../../include/QtGui -I../../../../../include/QtCore -I. -I. -o main.o ../nestedlayouts/main.cpp In file included from ../../../../../include/QtGui/qopenglcontext.h:60:0, from ../../../../../include/QtGui/QtGui:33, from ../../../../../include/QtWidgets/QtWidgets:5, from ../nestedlayouts/main.cpp:43: ../../../../../include/QtGui/qopengl.h:99:21: fatal error: GL/gl.h: No such file or directory compilation terminated. make: *** [main.o] Error 1 make: Leaving directory /home/test/Qt5.0.1/5.0.1/gcc/examples/widgets/tutorials/widgets/nestedlayouts-build-Desktop_Qt_5_0_1_GCC_32bit-Debug'
        12:41:46: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 beendet.
        Error while building/deploying project nestedlayouts (kit: Desktop Qt 5.0.1 GCC 32bit)
        Bei der Ausführung von Schritt 'Make'

        12:41:44: Führe Schritte für Projekt nestedlayouts aus...
        12:41:44: Starte "/home/test/Qt5.0.1/5.0.1/gcc/bin/qmake" /home/test/Qt5.0.1/5.0.1/gcc/examples/widgets/tutorials/widgets/nestedlayouts/nestedlayouts.pro -r -spec linux-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug
        12:41:45: Der Prozess "/home/test/Qt5.0.1/5.0.1/gcc/bin/qmake" wurde normal beendet.
        12:41:45: Starte "/usr/bin/make" -w
        make: Entering directory /home/test/Qt5.0.1/5.0.1/gcc/examples/widgets/tutorials/widgets/nestedlayouts-build-Desktop_Qt_5_0_1_GCC_32bit-Debug' g++ -c -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++ -I../nestedlayouts -I../../../../../include -I../../../../../include/QtWidgets -I../../../../../include/QtGui -I../../../../../include/QtCore -I. -I. -o main.o ../nestedlayouts/main.cpp In file included from ../../../../../include/QtGui/qopenglcontext.h:60:0, from ../../../../../include/QtGui/QtGui:33, from ../../../../../include/QtWidgets/QtWidgets:5, from ../nestedlayouts/main.cpp:43: ../../../../../include/QtGui/qopengl.h:99:21: fatal error: GL/gl.h: No such file or directory compilation terminated. make: *** [main.o] Error 1 make: Leaving directory /home/test/Qt5.0.1/5.0.1/gcc/examples/widgets/tutorials/widgets/nestedlayouts-build-Desktop_Qt_5_0_1_GCC_32bit-Debug'
        12:41:46: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 beendet.
        Error while building/deploying project nestedlayouts (kit: Desktop Qt 5.0.1 GCC 32bit)
        Bei der Ausführung von Schritt 'Make'

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Install mesa packages or OpenGL drivers from your vendor.
          @
          sudo apt-get install libglu1-mesa
          @

          (Z(:^

          1 Reply Last reply
          0
          • R Offline
            R Offline
            RobBa85
            wrote on last edited by
            #5

            ok I have try it; The system says it is the newest Version of libglu1-mesa installed.

            I think i must do the steps from the readme. I think this is the problem

            But I don't find the place where i can add the pathes.

            Original Readme text:

            The Qt 5 installation program adds the installed Qt version
            (<install_dir>/<version>/<compiler>/bin/qmake) to Qt Creator and creates a kit
            that specifies the installed Qt version and compiler. To use the kit, add it for
            your project in the Qt Creator Projects mode. Then select the kit in the Kit
            selector before you build or run the project.

            To compile C++ Qt applications by some other means, add
            <install_dir>/<version>/<compiler>/include to your build tool's search path
            for include files, and <install_dir>/<version>/<compiler>/lib to the search
            path for libraries.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dtop
              wrote on last edited by
              #6

              I had the exact same problem:

              14:43:27: Running steps for project chip...
              14:43:27: Configuration unchanged, skipping qmake step.
              14:43:27: Starting: "/usr/bin/make" -w
              make: Entering directory /home/user/Qt5.0.1/5.0.1/gcc/examples/widgets/graphicsview/chip-build-Desktop_Qt_5_0_1_GCC_32bit-Debug' g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../mkspecs/linux-g++ -I../chip -I../../../../include -I../../../../include/QtOpenGL -I../../../../include/QtPrintSupport -I../../../../include/QtWidgets -I../../../../include/QtGui -I../../../../include/QtCore -I. -I. -o view.o ../chip/view.cpp In file included from ../../../../include/QtGui/qopenglcontext.h:60:0, from ../../../../include/QtGui/QtGui:33, from ../../../../include/QtOpenGL/QtOpenGL:5, from ../chip/view.cpp:49: ../../../../include/QtGui/qopengl.h:99:21: fatal error: GL/gl.h: No such file or directory compilation terminated. make: *** [view.o] Error 1 make: Leaving directory /home/user/Qt5.0.1/5.0.1/gcc/examples/widgets/graphicsview/chip-build-Desktop_Qt_5_0_1_GCC_32bit-Debug'
              14:43:33: The process "/usr/bin/make" exited with code 2.
              Error while building/deploying project chip (kit: Desktop Qt 5.0.1 GCC 32bit)
              When executing step 'Make'

              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