Hey guys im trying to get glut working with opengl but getting this error
The program has unexpectedly finished
Im using windows 10 qt 5 and freeglut for mvc3.0 and visual c++
i attached a screenshot of the error
I was following this tutorial
https://www.youtube.com/watch?v=A-PRoXR_62Q
But then I gotta add glut and its not been working
This is my .pro file, if needed im also open to switching to mingw
QT += core gui opengl
LIBS += opengl32.lib -glu32
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = qtopengl2
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
CONFIG += c++11
SOURCES += \
glwidget.cpp \
main.cpp \
mainwindow.cpp
HEADERS += \
glwidget.h \
mainwindow.h
FORMS += \
mainwindow.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
win32:CONFIG(release, debug|release): LIBS += -LD:/ufilesD/freeglutMSVC/freeglut/lib/x64/ -lfreeglut
else:win32:CONFIG(debug, debug|release): LIBS += -LD:/ufilesD/freeglutMSVC/freeglut/lib/x64/ -lfreeglut
INCLUDEPATH += D:/ufilesD/freeglutMSVC/freeglut/include
DEPENDPATH += D:/ufilesD/freeglutMSVC/freeglut/include
LIBS += -LGLU
Bookmarks