Skip to content

Instantly share code, notes, and snippets.

@thilong
Last active July 7, 2022 23:21
Show Gist options
  • Save thilong/462e2555952a338943ac4ecba5c66e24 to your computer and use it in GitHub Desktop.
Save thilong/462e2555952a338943ac4ecba5c66e24 to your computer and use it in GitHub Desktop.

How to build SDL2 for odroid go advance

Please run this commands on odroid-go advance machine with stock rom( ubuntu 18.04.3 es ).

install following packages

  • build-essential
  • gcc
  • cmake
  • autogen
  • autoconf
  • pkg-config
  • linux-rga
  • libsm-dev
  • libudev-dev
  • libxext-dev
  • libdrm-dev
  • libgbm-dev
  • zlib1g-dev
  • libasound2-dev
  • libfreetype6-dev
  • libgles2-mesa-dev
  • libgles3-mesa-dev

build command

  • cd ~
  • git clone https://github.com/AreaScout/SDL.git
  • cd SDL
  • ./autogen.sh
  • ./configure --disable-video-opengl --enable-video-kmsdrm --disable-video-vulkan --disable-video-x11
  • make -j3
  • sudo make install

notice

  • after ./configure , there should be kmsdrm in "Video drivers".

build "linux-rga"

  • git clone https://github.com/rockchip-linux/linux-rga.git
  • cd linux-rga
  • sudo mkdir /usr/local/include/rga
  • sudo cp *.h /usr/local/include/rga/
  • mkdir build
  • make CFLAGS=-fPIC PROJECT_DIR=build
  • cp build/lib/librga.so /usr/local/lib/aarch64-linux-gnu/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment