This project is for getting started with developing CPP+SDL apps for the MiyooMini devices. This repo contains a simple "Hello World" application for the Miyoo Mini. The application displays the text "Hello Miyoo" in the center of the screen.
There are plenty of comments in both versions of the .cpp for users to get familiar with the SDL functions. Hope it helps!!
- Open the
HelloMiyoo
folder located in theSource/VisualStudio
directory. In there you will find a project solution for opening in Visual Studios. - Configure Visual Studios with SDL and SDL_ttf libraries and include directories.
- Compile and run the program.
- Clone and start the docker container for the union-miyoomini-toolchain.
- For instructions on how to get started union-miyoomini-toolchain please refer to their github READ.me
- union-miyoomini-toolchain
- Transfer the contents
workspace
folder from theSource/Union-miyoomini-toolchain
directory of this repo to the development environment/workspace
.- Optionally you could just replace the
workspace
folder with the one from this repo.
- Optionally you could just replace the
- Compile the HelloMiyoo program using the provided CMakeList and Toolchain files:
cd build cmake .. -DCMAKE_TOOLCHAIN_FILE=../Toolchain.cmake make
- The binary should be located in
workspace/build/HelloMiyoo
- Connect the Miyoo Mini device to your computer.
- Refer to the OnionOS wiki for the various ways to do this, e.i: FTP, Webserver, Samba, etc..
- Transfer the
HelloMiyoo
folder found in theApp
directory of this repo to the device. Place theHelloMiyoo
in/mnt/SDCARD/App
folder of the miyoo mini. - On the miyoo mini device, navigate to your Apps list. Refresh your App list by bringing up and exiting the 'search' function - pressing
x
- Navigate to the HelloMiyoo app and launch it.
The project has the following directory structure:
- HelloMiyoo
- App
- HelloMiyoo
- Source
- VisualStudio
- HelloMiyoo
- Union-miyoomini-toolchain
- workspace