When trying to create a gem window on a beagleboard I get the following:

error: GEM: Unable to create single buffer window
error: GEM: Error creating const context
error: GEM: A serious error occured creating const Context
error: GEM: Continue at your own risk!
error: GEM: Unable to create double buffer window
error: GEM: Unable to create window
error: [gemwin]: no window made

Anyone has any idea why, or what should I do?