Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Issue with opengl.h
Forum Updated to NodeBB v4.3 + New Features

Issue with opengl.h

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 592 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    aalavandhaann
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved