Results 1 to 15 of 15

Thread: qt with glut on windows 10

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2019
    Posts
    8

    Default qt with glut on windows 10

    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
    Attached Images Attached Images

Similar Threads

  1. Linking glut to Qt
    By Mashkur in forum Qt Tools
    Replies: 1
    Last Post: 14th October 2012, 19:18
  2. How to link glut.h?
    By connect_qt in forum Newbie
    Replies: 3
    Last Post: 15th November 2011, 23:14
  3. Qi with glut
    By hudi in forum Qt Programming
    Replies: 7
    Last Post: 14th April 2010, 12:41
  4. using GLUT along with qtcreator/mingw in windows
    By stephanepoirier in forum Qt Programming
    Replies: 1
    Last Post: 3rd March 2009, 06:26

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.