opengl-applikationer men har kört fast i hur man kommer igång.
Har både:
mesa-common-dev och
libglu1-mesa-dev
Har försökt att använda mig av SDL, för att abstrahera bort X11:
Kod: Markera allt
#include <iostream>
#include <SDL/SDL_opengl.h>
#include <SDL/SDL.h>
int main() {
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
std::cout << "Unable to initialize SDL: " << SDL_GetError();
return 1;
}
SDL_Init(SDL_INIT_VIDEO);
SDL_SetVideoMode(800, 600, 24, SDL_OPENGL | SDL_GL_DOUBLEBUFFER);
std::cout << "Hello world!\n";
return 1;
}
Kod: Markera allt
g++ -o Test sdltest.cpp -lSDL
In file included from sdltest.cpp:2:
/usr/local/include/SDL/SDL_opengl.h:45:58: error: GL/glu.h: No such file or directory