Hello everybody,
is SDL (http://www.libsdl.org) supported on AM335x? If so, how can I install/compile it?
Regards,
/Morix
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello everybody,
is SDL (http://www.libsdl.org) supported on AM335x? If so, how can I install/compile it?
Regards,
/Morix
Hi Morix,
SDL is not supported by default in the TI AM335x SDK. You can try to cross-compile it, but I couldn't find anyone who has done it for the Arago Project.
Here are some useful links I found:
http://wiki.libsdl.org/FAQLinux#How_do_I_add_SDL_to_my_project.3F
http://kevino.tistory.com/entry/How-to-cross-compile-SDL-for-target-arm-board
http://forums.libsdl.org/viewtopic.php?p=8696&sid=0f7c0fef844d15f380e49e5c4ad83801
http://www.libsdl.org/tmp/SDL/README-raspberrypi.txt
http://www.libsdl.org/tmp/SDL/README-linux.txt
Best regards,
Miroslav
Thanks Miroslav for your reply.
I cross-compiled SDL and here my results:
- SDL 1.2 using "fbcon" takes a lot of CPU (for animating a simple surface) and does not handle VSYNC on AM335x, even enabling it with SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
- SDL 2.0 dropped the support for "fbcon" and so I had to also cross-compile "directfb" (http://directfb.org) for getting it to work... but in this case the animation is so slow... maybe it is possible to compile directfb optimizing it someway for the AM335x architecture? Does anybody else ever tried to do something similar?
Thanks & regards.
Morix, take a look at the links provided by Prathab Srinivas in the post here: http://e2e.ti.com/support/arm/sitara_arm/f/791/t/224927.aspx
I hope you find them useful.
Best regards,
Miroslav