Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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


    TEMPLATE = app
    CONFIG -= moc
    CONFIG += qt

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

    TARGET = Rigid_Body_Simulation

    OBJECTS_DIR += ../bin/DEBUG
    MOC_DIR += ../bin/tmp
    UI_DIR += ../bin/tmp

    # Input

    HEADERS += ../include/BaseBodyDynamics.h\

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

    INTERFACES += Rigid_Body_Simulation.ui

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

    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 04:25 PM. Reason: fixing the codes

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    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