Template project for running EEZ Flow firmware project using SDL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.4 KiB

3 years ago
### Ownership and License
The contributors are listed in CONTRIB.TXT. This project uses the GPL v3 license, see LICENSE.TXT.
This project uses the [C4.1 (Collective Code Construction Contract)](http://rfc.zeromq.org/spec:22) process for contributions.
2 years ago
To report an issue, use the [issues page](https://github.com/eez-open/eez-flow-template-sdl/issues) tracker.
3 years ago
## Build
2 years ago
First, build the project using EEZ Studio.
3 years ago
#### Linux
```
sudo apt-get update
sudo apt-get install -y git libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev cmake build-essential libbsd-dev
2 years ago
cd {{projectDirPath}}
3 years ago
mkdir -p build/linux
cd build/linux
3 years ago
cmake ../..
make
```
Start simulator with:
```
./{{projectName}}
3 years ago
```
#### Windows
Install [Visual Studio Community 2017](https://visualstudio.microsoft.com/downloads/) and [CMake](https://cmake.org/install/).
Download and install SDL2 development libraries for Windows from https://www.libsdl.org/download-2.0.php.
3 years ago
Download and install SDL2_Image development libraries for Windows from https://github.com/libsdl-org/SDL_image/releases.
3 years ago
Update these environment variables in `cmake.bat` according to the location (and version) where SDL2 and SDL2_Image has been installed:
3 years ago
```
set SDL2DIR=..\SDL2-2.0.14
set SDL2IMAGEDIR=..\SDL2_image-2.0.4
```
Execute `cmake.bat`:
```
2 years ago
cd {{projectDirPath}}
.\cmake.bat
```
2 years ago
Visual Studio solution is created in `{{projectDirPath}}\build\win32`.
Use Visual Studio to build the solution.