I'm using Xubuntu 12.04 and am getting errors when using InitSprite() -
/usr/bin/ld: cannot find -IGL
/usr/bin/ld: cannot find -IGLU
In the manual, it says that "This function tries to initialize SDL, so if it fails, it's probably because the SDL library is not found or is a previous version (1.2 required)."
Well I've installed SDL on my system (following the instructions at http://www.upubuntu.com/2012/01/how-to- ... imple.html), but I'm still getting the errors. Any suggestions?
Thanks in advance!
Graphics libraries?
Re: Graphics libraries?
Ok, some progress. After installing the libsdl package ("sudo apt-get install libsdl1.2-dev") I no longer get those error messages, instead I get "the debugged executable quit unexpectedly" when running this code:
Code: Select all
If InitSprite() = 0 Or OpenScreen(640, 480, 16, "Test") = 0
MessageRequester("Error!", "Unable to Initialize Environment", #PB_MessageRequester_Ok)
End
Else
ClearScreen(RGB(0,0,0))
StartDrawing(ScreenOutput())
DrawText(280,240,"Hello, World!")
StopDrawing()
FlipBuffers()
Delay(5000)
EndIf
End
Re: Graphics libraries?
Finally got it working. I had to install OpenGL (sudo apt-get install freeglut3 freeglut3-dev) and also install NVIDIA drivers.