Skip to content

steward-fu/sdl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This repository hosts the SDL v1.2 source code that ports for both Miyoo A30 and F(x)tec Pro1 (QX1000) devices. For Miyoo A30, it utilizes the OpenGL ES 2.0 for rendering. If the CFW installed on Miyoo A30 doesn't support the OpenGL ES 2.0, then, it means you cannot use this SDL v1.2 on your device. For F(x)tec Pro1, the rendering is based on the Wayland Client and it only tested on Sailfish OS with v4.4.0.72.

 

How to Build

Miyoo A30

The environment is based on Debian 12 (bookworm).

$ cd
$ wget https://github.com/steward-fu/website/releases/download/miyoo-a30/a30_toolchain-v1.0.tar.gz
$ tar xvf a30_toolchain-v1.0.tar.gz
$ sudo mv a30 /opt

$ export PATH=/opt/a30/bin:$PATH
$ export CC=arm-linux-gcc
$ export CXX=arm-linux-g++
$ export LD=arm-linux-ld
$ export AS=arm-linux-as

$ git clone https://github.com/steward-fu/sdl
$ cd sdl
$ ./autogen.sh
$ ./configure --enable-video-a30 --disable-video-x11 --build=arm-linux
$ make -j4

$ ls build/.libs/*.so*
  build/.libs/libSDL.so
  build/.libs/libSDL-1.2.so.0
  build/.libs/libSDL-1.2.so.0.11.4

 

F(x)tec Pro1 (QX1000)

The environment is based on Sailfish OS v4.4.0.72.

$ cd
$ git clone https://github.com/steward-fu/sdl
$ cd sdl
$ ./autogen.sh
$ ./configure --enable-video-qx1000 --disable-video-x11 --build=arm-linux
$ make -j4
$ sudo make install

 

How to Run

Miyoo A30

Put libSDL-1.2.so.0 and the executable file in the same folder

# kill -STOP `pidof MainUI`
# LD_LIBRARY_PATH=. ./xxx
# kill -CONT `pidof MainUI`