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. Building App on Qt 4.8.5 - Missing Directories or Qt Cannot find them
Forum Updated to NodeBB v4.3 + New Features

Building App on Qt 4.8.5 - Missing Directories or Qt Cannot find them

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt 4.8.5armopengl
19 Posts 3 Posters 5.7k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #8

    Did you re-run qmake after modifying the .pro file ?

    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
    • samapolloS Offline
      samapolloS Offline
      samapollo
      wrote on last edited by
      #9

      @SGaist Yes I did, and I get the same error.

      1 Reply Last reply
      0
      • samapolloS Offline
        samapolloS Offline
        samapollo
        wrote on last edited by
        #10

        Hey guys,
        So I figured out how to fix this issue. In the .pro file add this line:\

        INCLUDEPATH = ("/usr/include/qt4")

        If you are using a different version of qt, just change the number and/or directory to fit your system and build

        1 Reply Last reply
        0
        • samapolloS Offline
          samapolloS Offline
          samapollo
          wrote on last edited by
          #11

          Now I am just having issues with QWidget
          Again saying it cannot be found.

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

            How did you install that Qt 4.8.5 ?

            Also note, that it's pretty old, if you can't go with Qt 5, at least try to go with 4.8.7

            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
            • samapolloS Offline
              samapolloS Offline
              samapollo
              wrote on last edited by
              #13

              Nvm still terminating Saying QtOpenGl is not working.

              [main.o] Error 1

              1 Reply Last reply
              0
              • samapolloS Offline
                samapolloS Offline
                samapollo
                wrote on last edited by samapollo
                #14

                Well its a cross compiled qt for ARM on Ubuntu.
                I followed this guide:
                https://forum.qt.io/topic/52546/tuto-build-qt-to-cross-compile-for-arm/2
                Should I just reinstall/build for a new version?
                No matter what I do I get this stupid QtOpenGL fatal compile error
                @SGaist

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

                  Did you check the configure summary ?

                  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
                  • samapolloS Offline
                    samapolloS Offline
                    samapollo
                    wrote on last edited by
                    #16

                    @SGaist
                    No, how do I create that?

                    1 Reply Last reply
                    0
                    • samapolloS Offline
                      samapolloS Offline
                      samapollo
                      wrote on last edited by samapollo
                      #17

                      Now i'm Having and issue with <GL/gl.h> saying it cannot be found.

                      No more issues with <QtOpenGL/QGLWidget> though.

                      Not sure what to do here. I have installed everything necessary for OpenGL.

                      @Qt-Champions-2014

                      1 Reply Last reply
                      0
                      • samapolloS Offline
                        samapolloS Offline
                        samapollo
                        wrote on last edited by
                        #18

                        This is my .pro file

                        Automatically generated by qmake (2.01a) Thu Oct 4 19:01:12 2007

                        TEMPLATE = app
                        TARGET = loose_cannon
                        CONFIG -= app_bundle
                        DEPENDPATH += .
                        INCLUDEPATH = /usr/include/qt4
                        QT += opengl
                        QT = core gui
                        QT += gui declarative
                        QT += widgets
                        LIBS += -L /usr/lib/ -llibQtOpenGL.so.4.6.2
                        LIBS += IGL
                        LIBS += lfreeglut
                        LIBS += -lglut
                        LIBS += -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm

                        Input

                        SOURCES += main.cpp
                        model.cpp
                        ui/window.cpp
                        ui/ui.cpp
                        ui/controller.cpp
                        ui/cbutton.cpp
                        node.cpp
                        ui/hudobject.cpp
                        ui/radar.cpp
                        ui/hudicon.cpp
                        entity.cpp
                        unit.cpp
                        tank.cpp
                        soundbank.cpp
                        soundthread.cpp
                        SOURCES += glwidget.cpp
                        SOURCES += mainwindow.cpp
                        SOURCES += glm.cpp
                        HEADERS += glwidget.h
                        model.h
                        ui/window.h
                        ui/ui.h
                        ui/controller.h
                        ui/cbutton.h
                        node.h
                        ui/hudobject.h
                        ui/radar.h
                        ui/hudicon.h
                        entity.h
                        unit.h
                        tank.h
                        soundbank.h
                        soundthread.h
                        HEADERS += mainwindow.h
                        HEADERS += glm.h
                        RESOURCES +=
                        QT += opengl
                        multimedia

                        unix {
                        QMAKE_POST_LINK = cp -R ../loose_cannon/data .;
                        }
                        win32 {
                        QMAKE_POST_LINK = xcopy ..\loose_cannon\data*.* data /e;
                        }

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

                          You have an error in your .pro file. Right after the QT += opengl line you have QT = core gui which resets the content of the variable to core gui. That's why you can't get the OpenGL module.

                          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

                          • Login

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