View Full Version : Porting libgui to arm
In some case I need port just only XBMC's GUI to arm,
I have ported the necessary libraries for arm and
successfully run the makefile in /guilib dir.
But I don't know how to find a test files to test
if my porting guilib work well.
If I need to write this program,what main function
or entrypoint should I need to do? Thanks alot
jmarshall
2009-02-05, 06:03
You need to basically:
1. Create the skin files necessary for it to work (I suggest just grabbing a skin such as PM3 and using that).
2. Create a GUIWindow object (new GUIWindow).
3. Add it to the (global) GUIWindowManager instance.
4. Load the skin (See CApplication::LoadSkin() and just grab what you need).
5. Activate that window (GUIWindowManager::ActivateWindow()).
6. Run the GUIWindowManager's Process() loop, which basically drops down to CApplication::Process() to do the rendering and so on.
Obviously the Graphiccontext and so on will need to be created.
Have fun!
Jonathan
thanks for your help! I will try it.
Besides, I recently reviewed this forum and I found some people said that XBMC need openGL.I'm successfully port the SDL to ARM, but openGL not yet, can I run the XBMC_GUI without openGL??
jmarshall
2009-02-05, 10:35
Yes, but it'll be slow.