PureW
June 5th, 2007, 12:02 PM
EDIT: The problem is that SDL can't find GL/glu.h.
Hello, I need help setting up SDL and OpenGL in Ubuntu 7.04 64bits.
I installed my nvidia drivers from nvidia.com.
This far I have only programmed in Windows and Visual Studio
but now I need help getting started in Ubuntu. I don't know what packages
and editors I need, although I've heard Emacs and Vim are the best.
But that's not the main issue. After following http://www.libsdl.org/faq.php?action=listentries&category=3#21
and doing:
g++ -o Test sdltest.cpp `sdl-config --cflags --libs`
EDIT: I did
grep file | g++ -o Test sdltest.cpp `sdl-config --cflags --libs`
and then it said:
/usr/local/include/SDL/SDL_opengl.h:45:58: error: GL/glu.h: No such file or directory
From another thread I found out I had to install ibgl1-mesa-dev but that did not help.
sdltest.cpp looks like this:
#include <iostream>
#include <SDL_opengl.h>
int main() {
std::cout << "Hello world!\n";
return 1;
}
I compiled SDL from source with
./configure
make
sudo make install
And I read and followed this: http://www.libsdl.org/faq.php?action=listentries&category=3#23
and now my /etc/ld.so.conf contains:
include /etc/ld.so.conf.d/*.conf
include /usr/local/lib I think it looks like Im missing some header-files but I don't know which ones.
I have tried googling but with no good results.
Hello, I need help setting up SDL and OpenGL in Ubuntu 7.04 64bits.
I installed my nvidia drivers from nvidia.com.
This far I have only programmed in Windows and Visual Studio
but now I need help getting started in Ubuntu. I don't know what packages
and editors I need, although I've heard Emacs and Vim are the best.
But that's not the main issue. After following http://www.libsdl.org/faq.php?action=listentries&category=3#21
and doing:
g++ -o Test sdltest.cpp `sdl-config --cflags --libs`
EDIT: I did
grep file | g++ -o Test sdltest.cpp `sdl-config --cflags --libs`
and then it said:
/usr/local/include/SDL/SDL_opengl.h:45:58: error: GL/glu.h: No such file or directory
From another thread I found out I had to install ibgl1-mesa-dev but that did not help.
sdltest.cpp looks like this:
#include <iostream>
#include <SDL_opengl.h>
int main() {
std::cout << "Hello world!\n";
return 1;
}
I compiled SDL from source with
./configure
make
sudo make install
And I read and followed this: http://www.libsdl.org/faq.php?action=listentries&category=3#23
and now my /etc/ld.so.conf contains:
include /etc/ld.so.conf.d/*.conf
include /usr/local/lib I think it looks like Im missing some header-files but I don't know which ones.
I have tried googling but with no good results.