Git Product home page Git Product logo

steward-fu / sdl2 Goto Github PK

View Code? Open in Web Editor NEW
23.0 4.0 8.0 283.34 MB

SDL2 with Virtual GPU Support for Miyoo Mini (Plus), TRIMUI SMART and F(x)tec QX1000

Home Page: https://steward-fu.github.io/website/index.htm

License: GNU General Public License v3.0

Makefile 0.11% CMake 0.83% Shell 1.10% C 49.09% M4 0.78% Java 0.53% Perl 0.22% Batchfile 0.01% PowerShell 0.04% Objective-C 1.87% C++ 45.14% Python 0.02% Metal 0.01% Assembly 0.09% JavaScript 0.05% HTML 0.01% Dockerfile 0.01% Roff 0.01% Objective-C++ 0.03% Lex 0.08%

sdl2's Introduction

SDL2 Library with Virtual GPU Support for Miyoo Mini (Plus)

  • Miyoo Mini (Plus)
    • Build from Scratch
      • How to prepare the build environment (Docker)
      • How to build all libraries
      • How to pack the release build
      • How to delete the build environment (Docker)

 

Miyoo Mini (Plus)

image image

 

Build from Scratch

How to prepare the build environment (Docker)

$ sudo docker build -t mmiyoo .

How to build all libraries (SDL2 and virtual GPU)

$ sudo docker run -it --rm -v $(pwd):/sdl2_miyoo mmiyoo /bin/bash
# cd /sdl2_miyoo
# rm -rf swiftshader/build/*
# make cfg
# make

How to build the SDL2 library only

$ sudo docker run -it --rm -v $(pwd):/sdl2_miyoo mmiyoo /bin/bash
# cd /sdl2_miyoo
# make clean
# make cfg
# make sdl2

How to build the virtual GPU (swiftshader) library only

$ sudo docker run -it --rm -v $(pwd):/sdl2_miyoo mmiyoo /bin/bash
# cd /sdl2_miyoo
# rm -rf swiftshader/build/*
# make clean
# make cfg
# make gpu

How to build the example

$ sudo docker run -it --rm -v $(pwd):/sdl2_miyoo mmiyoo /bin/bash
# make example

How to delete the build environment (Docker)

$ sudo docker image rm mmiyoo

sdl2's People

Contributors

ninoh-fox avatar steward-fu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sdl2's Issues

Blit combination not supported

-- code --
SDL_Surface* pokemonImage = IMG_Load(imagePath.c_str());
SDL_Rect pokemonRect;
pokemonRect.x = 0; // Adjust the x position according to your needs
pokemonRect.y = 0; // Adjust the y position according to your needs
pokemonRect.w = 128; // Adjust the width to fill the space to the left of the list
pokemonRect.h = 128; // Adjust the height to fill the window height
SDL_BlitScaled(pokemonImage, NULL, screen, &pokemonRect);

`make config` fails

Run:

$ sudo docker build -t mmiyoo .
$ sudo docker run -it --rm -v $(pwd):/sdl2 mmiyoo /bin/bash
$ make config

Fails with:

cd swiftshader/build && /opt/mmiyoo/bin/cmake -DARCH=arm --host=/opt/mmiyoo/share/buildroot/toolchainfile.cmake ..
/bin/sh: 1: cd: can't cd to swiftshader/build
make: *** [Makefile:59: config] Error 2

Also, tried to compile SDL2 on its own via cmake:

cmake -DCMAKE_TOOLCHAIN_FILE=/opt/mmiyoo/share/buildroot/toolchainfile.cmake

But fails with:

Parse error in command line argument: -DEGL_NO_X11
Should be: VAR:type=value
CMake Error: No cmake script provided.
CMake Error at /opt/mmiyoo/share/cmake-3.16/Modules/CheckCSourceCompiles.cmake:109 (try_compile):
  Failed to configure test project build system.
Call Stack (most recent call first):
  cmake/sdlchecks.cmake:822 (check_c_source_compiles)
  CMakeLists.txt:1264 (CheckEGL)

Any ideas?

Configuring SDL2 via configure works but it's missing SDL_revision.h (created by cmake). Recreating the file manually does the trick for now.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.