Difference between revisions of "SDL Development"

From ArmadeusWiki
Jump to: navigation, search
(Installation)
m
Line 5: Line 5:
 
and choose SDL package in:<br>
 
and choose SDL package in:<br>
 
[[Image:menuconfig_package.png]]<br>
 
[[Image:menuconfig_package.png]]<br>
you can choose packages like SDL_Imagae too; then save your configuration
+
 
 +
[[Image:menuconfig_package_graphics.png]]<br>
 +
 
 +
you can choose packages like SDL_Image too; then save your configuration
  
 
* Regenerate your rootfs
 
* Regenerate your rootfs
Line 12: Line 15:
  
 
==Configuration==
 
==Configuration==
Our SDL version is using the [[FrameBuffer]] interface and so '''it's very important to have a ''/etc/fb.modes'' file up to date with the framebuffer parameters supported by your configuration''' (otherwise SDL try to use the VESA parameters which are may misprogram the i.MXL LCD controller).
+
Our SDL version is using the [[FrameBuffer]] interface and so '''it's very important to have a ''/etc/fb.modes'' file up to date with the framebuffer parameters supported by your configuration''' (otherwise SDL try to use the VESA parameters which may misprogram the i.MXL LCD controller).
  
For example for the Sharp LQ057, activate in ''/etc/fb.modes'':
+
For example for the Sharp LQ057, put in ''/etc/fb.modes'':
 
  mode "320x240-176"
 
  mode "320x240-176"
 
     # D: 16.000 MHz, H: 43.836 kHz, V: 176.047 Hz
 
     # D: 16.000 MHz, H: 43.836 kHz, V: 176.047 Hz
Line 25: Line 28:
 
==Usage==
 
==Usage==
  
Take a look at ''armadeus/target/demos/armanoid/'' sources in your SVN view
+
Take a look at ''armadeus/target/demos/armanoid/'' sources in your SVN view.
  
 
<br>[[Image:FrenchFlag.png]] [[Fr:Développement SDL | Cette page en français]]
 
<br>[[Image:FrenchFlag.png]] [[Fr:Développement SDL | Cette page en français]]

Revision as of 21:23, 29 November 2007

Installation

  • Launch Buildroot configuration
# make menuconfig

and choose SDL package in:
Menuconfig package.png

Menuconfig package graphics.png

you can choose packages like SDL_Image too; then save your configuration

  • Regenerate your rootfs
# make

and reflash it on your board

Configuration

Our SDL version is using the FrameBuffer interface and so it's very important to have a /etc/fb.modes file up to date with the framebuffer parameters supported by your configuration (otherwise SDL try to use the VESA parameters which may misprogram the i.MXL LCD controller).

For example for the Sharp LQ057, put in /etc/fb.modes:

mode "320x240-176"
   # D: 16.000 MHz, H: 43.836 kHz, V: 176.047 Hz
   geometry 320 240 320 240 16
   timings 62500 9 27 0 7 9 2
   rgba 5/11,6/5,5/0,0/0
endmode

By default the Armadeus LCD (Microtips) parameters are used in /etc/fb.modes.

Usage

Take a look at armadeus/target/demos/armanoid/ sources in your SVN view.


FrenchFlag.png Cette page en français