Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

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

    General and Desktop
    qt 4.8.5 arm opengl
    3
    19
    4552
    Loading More Posts
    • 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.
    • samapollo
      samapollo last edited by

      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 Reply Quote 0
      • samapollo
        samapollo last edited by

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

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          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 Reply Quote 0
          • samapollo
            samapollo last edited by

            Nvm still terminating Saying QtOpenGl is not working.

            [main.o] Error 1

            1 Reply Last reply Reply Quote 0
            • samapollo
              samapollo last edited by samapollo

              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 Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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 Reply Quote 0
                • samapollo
                  samapollo last edited by

                  @SGaist
                  No, how do I create that?

                  1 Reply Last reply Reply Quote 0
                  • samapollo
                    samapollo last edited by samapollo

                    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 Reply Quote 0
                    • samapollo
                      samapollo last edited by

                      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 Reply Quote 0
                      • SGaist
                        SGaist Lifetime Qt Champion last edited by

                        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 Reply Quote 0
                        • First post
                          Last post