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. Only MinGW compiles OpenGL project with GLEW

Only MinGW compiles OpenGL project with GLEW

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.6k 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.
  • S Offline
    S Offline
    sasmaster
    wrote on last edited by
    #1

    I try to setup Qt (5.1) for GUI in my OpenGL renderer.I linked it with GLEW 1.10.Here is how the .pro file looks like :

    @#-------------------------------------------------

    Project created by QtCreator 2013-09-15T10:07:27

    #-------------------------------------------------

    QT += core gui opengl

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = GPUMemstat
    TEMPLATE = app
    CONFIG += console

    SOURCES += main.cpp
    mainwindow.cpp
    mywidget.cpp
    gpugui.cpp
    gpunvidia.cpp
    nvmlstats.cpp

    HEADERS += mainwindow.h
    mywidget.h
    gpugui.h
    gpunvidia.h
    nvmlstats.h

    FORMS += mainwindow.ui
    gpugui.ui

    win32: LIBS += -L$$PWD/../../../../../Documents/OpenGL_Stuff/glew-1.10.0/lib/Release/Win32/ -lglew32

    INCLUDEPATH += $$PWD/../../../../../Documents/OpenGL_Stuff/glew-1.10.0/include
    DEPENDPATH += $$PWD/../../../../../Documents/OpenGL_Stuff/glew-1.10.0/include

    win32: LIBS += -L$$PWD/../../../../../Documents/OpenGL_Stuff/R313-developer/x86/ -lnvapi

    INCLUDEPATH += $$PWD/../../../../../Documents/OpenGL_Stuff/R313-developer
    DEPENDPATH += $$PWD/../../../../../Documents/OpenGL_Stuff/R313-developer

    win32: PRE_TARGETDEPS += $$PWD/../../../../../Documents/OpenGL_Stuff/R313-developer/x86/nvapi.lib

    win32: LIBS += -L$$PWD/../../../../../Documents/OpenGL_Stuff/tdk_5.320.68/nvml/lib/ -lnvml

    INCLUDEPATH += $$PWD/../../../../../Documents/OpenGL_Stuff/tdk_5.320.68/nvml/include
    DEPENDPATH += $$PWD/../../../../../Documents/OpenGL_Stuff/tdk_5.320.68/nvml/include

    win32: PRE_TARGETDEPS += $$PWD/../../../../../Documents/OpenGL_Stuff/tdk_5.320.68/nvml/lib/nvml.lib@

    I have VC2010 ,VC2012 and MinGW compilers.With MinGW compiler set it compiler and runs fine.But with any other I am getting tons of errors in qopengles2ext.h

    Some of the errors:
    E:\Qt\5.1.0\msvc2010\include\QtGui\qopengles2ext.h:402: error: C2146: syntax error : missing ';' before identifier 'GLint64'
    E:\Qt\5.1.0\msvc2010\include\QtGui\qopengles2ext.h:402: error: C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    E:\Qt\5.1.0\msvc2010\include\QtGui\qopengles2ext.h:403: error: C2146: syntax error : missing ';' before identifier 'GLuint64'

    ....

    How do I disable qopengles2ext.h header parse.As I understand it is needed only if I want to use Qt's OpenGL .

    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