How to set up the environment to program with opengl and sdl in linux framebuffer console in arm development board

hi
i want to know how can i to set up the environment to program with opengl and sdl in linux framebuffer console in arm development board?Is the sdl can be compiled for arm and at the same time support mesa3D in linux framebuffer console?I want to 3D program in arm/linux console,is that possible?or is there any other solution to achieve this?i need the detail instruction list about how the set up the environment. Can you help me ?thanks