Find the answer to your Linux question:
Results 1 to 4 of 4
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 ...
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    3

    make file help required

    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???

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    So, DO you have the OpenGL libraries installed on your system? They might not be there by default.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Apr 2009
    Posts
    3

    make file help

    Ya i do..

    I tried compiling the project with scons and it works well..

    I seem to miss somethin with the make files.. I am not sure if I need some package installed or should I make some modification to the make file

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Duh... Obviously! Sorry, up late last night watching movies. Brain not fully functional right now.

    Try commenting out the test for opengl:
    Code:
    CONFIG(opengl) {
    message(Building with OpenGL support.)
    } else {
    message(OpenGL support is not available.)
    }
    and then try running make again.
    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
  •  
...