Find the answer to your Linux question:
Results 1 to 2 of 2
Hi guys.. I am not sure where to post this question.. I am using C++ and open gl to write a application. I compiled it using scons and I get ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    3

    Help with make files


    Hi guys.. I am not sure where to post this question..

    I am using C++ and open gl to write a application. I compiled it using scons and I get the output .

    Now i need to switch to qt which means I need to get to make files. I wrote my .pro files which looked like what I am showing now

    <code>

    TEMPLATE = app
    DEPENDPATH += .
    CONFIG -= moc
    CONFIG += qt

    CONFIG(opengl) {
    message(Building with OpenGL support.)
    } else {
    message(OpenGL support is not available.)
    }


    #OUTPUTS
    TARGET = Rigid_Body_Simulation

    #DIRECTORY PATHS
    OBJECTS_DIR += ../bin/DEBUG
    MOC_DIR += ../bin/tmp
    UI_DIR += ../bin/tmp

    # Input
    INCLUDEPATH += .\
    $(HOME)/GraphicsLib/include\
    ../include

    HEADERS += ../include/BaseBodyDynamics.h\
    ../include/defines.h\
    ../include/Matrix3x3.h\
    ../include/UTIL.h\
    ../include/vec_Util.h\
    ../include/basemath.h\
    ../include/globals.h\
    ../include/Primitives.h\
    ../include/Vec3d.h\
    ../include/MainWindow.h

    SOURCES += BaseBodyDynamics.cpp \
    globals.cpp \
    main.cpp \
    Matrix3x3.cpp \
    Primitives.cpp \
    Vec3d.cpp \
    vec_Util.cpp\
    MainWindow.cpp

    INTERFACES += Rigid_Body_Simulation.ui

    QT += opengl
    LIBS+= -lGLEW -lGL -lGLU -L $(HOME)/GraphicsLib/lib -l GraphicsLib
    </code>



    When I run qmake this generates a make file which when compiled throws up errors stating that Opengl is not found on my system. Can someone point me to where I have gone wrong???
    Last edited by sundar0206; 04-26-2009 at 05:25 PM. Reason: fixing the codes

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,755
    Please don't cross-post all over the place! First off, you will have to look at all your postings to find out what people are saying to you, instead of one place. Second, it is irritating. Third, I think it is a violation of the Terms of Service for this site (it is on other forums, for sure). Anyway, I answered this in one of your other postings...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •