This repository shows the basic layout of a C# SDL2 application for the Miyoo Mini
runs on both windows and Miyoo for quicker debugging and development.
- Runtime: linux-arm
- Deployment mode: Self-contained
- File publish options:
- Publish single file
- Trim unused code
- Compile SDL2-CS
- Add as a dependency in Visual Studio
- Download SDL2
- Place SDL2.dll into
/bin/Debug/net6.0/ - Run
- Publish to folder
- Copy files from the folder to
SDCARD/App/SDL_Mini_Example/
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
- Prevents dotnet from complaining about globalization library
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$mydir/lib/
- Appends required libraries to the required enviroment variable
Using SDL2 as a frame buffer
- Unfortunately, all of SDL2 functionality has not been completed inside of Steward-Fu's port of SDL2 however enough exits to create C# programs.
SDL2_ttf and SDL2_image do work and have been tested although they will require additional libraries to work. I recommend downloading Parayste to obtain the libraries required. SDL2-gfx will not work as the graphics cannot be drawn to a surface as far as I know.