Table of Contents

  1. About
  2. Compile
  3. Install
  4. Run
  5. Screenshot

(Preliminary) SDL on the Zipit 2

About

Hosted here is the first examples of using SDL on the Z2.

Compile

Compile statically with SDL with the following command:

g++ SDL_DisplayBitmap.c -static -lSDL -lpthread

The executable attached to this post was compiled with Scratchbox.

Install

Copy the "a.out" executable and the "image.bmp" to your SD card.

Run

Boot the Z2 with a shell environment. Run the following commands:

export SDL_NOMOUSE=1
/mnt/sd0/a.out

Screenshot

Kinda blurry, but it works.

Attachments