Issue with opengl.h



  • I recently had to port of one of my colleagues code in QT from Windows to Ubuntu for implementation of a feature. Right from the day I started its been nothing but headache for more than a week now. The first problem was the importing of the b****y VS based QT project into QTCreator of Ubuntu.

    Project details

    @QT += core xml opengl widgets gui@
    @LIBS += -L"$(ASSIMP_DIR)/lib/libassimp"
    -L$(QGL_DIR) -lQGLViewer
    -Lopengl
    -Lglu@

    In the above,

    @QGL_DIR points to the QGLViewer installation path
    ASSIMP_DIR points to the ASSIMP installation path@

    By yesterday I managed to fix all the holes and managed to get down into fixing directory based api issues until finally I stumbled upon this error

    @/opt/Qt5.2.1/5.2.1/gcc_64/include/QtGui/qopengl.h:270: error: expected ')' before '*' token

    define QOPENGLF_APIENTRYP QOPENGLF_APIENTRY *@

    When I clicked the issue and selected 'Show Ouput', here is what I see,
    @/opt/Qt5.2.1/5.2.1/gcc_64/include/QtGui/qopenglversionfunctions.h:173:11: note: in expansion of macro 'QOPENGLF_APIENTRYP'
    void (QOPENGLF_APIENTRYP Viewport)(GLint x, GLint y, GLsizei width, GLsizei height);@
    ^
    What have I tried so far?

    • Installed QT 5.2.1
    • Installed QT 5.2.0
    • Installed QT 5.1.1

    Operating System and other details

    Ubuntu 13.10
    QT 5.2.1
    64 Bit

    But no luck so far, and I am completely clueless about this. Anybody any ideas? I am sorry if I missed any other details, in that case tell me I will be glad to provide it.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.