QT + GLUT NOT WORKING - help!!!
Im using OS X and QT. On my mac i can easily find GLUT.framework installed in my libraries, but when i try to use it in QT, it just throws me an error:
Quote:
/Users/Astroy/ProjektiQT/RacunalniskaGrafika1-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Debug/../RacunalniskaGrafika1/main.cpp:3:
error: GL/glut.h: No such file or directory
and because of that also:
error: 'glutInit' was not declared in this scope
The program is simple:
Quote:
#include <QtGui/QApplication>
#include "vaja1.h"
#include <GL/glut.h>
int main(int argc, char *argv[])
{
glutInit(&argc, argv);
QApplication a(argc, argv);
Vaja1 w;
w.show();
return a.exec();
}
and the project:
Quote:
#-------------------------------------------------
#
# Project created by QtCreator 2012-10-18T20:08:13
#
#-------------------------------------------------
QT += core gui opengl
TARGET = RacunalniskaGrafika1
TEMPLATE = app
SOURCES += main.cpp\
vaja1.cpp \
glwidget.cpp
HEADERS += vaja1.h \
glwidget.h
FORMS += vaja1.ui
LIBS += -lglut
so it should be working, i have done this trough a tutorial but... its just doesn't seem to work.... Help please!