https://github.com/florianvazelle/mosaic
A C++ cli program for creating photomosaic images
https://github.com/florianvazelle/mosaic
cli image-processing sdl2
Last synced: 11 months ago
JSON representation
A C++ cli program for creating photomosaic images
- Host: GitHub
- URL: https://github.com/florianvazelle/mosaic
- Owner: florianvazelle
- Created: 2020-01-23T23:12:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-21T11:51:59.000Z (over 5 years ago)
- Last Synced: 2025-06-06T10:07:18.917Z (about 1 year ago)
- Topics: cli, image-processing, sdl2
- Language: C++
- Homepage:
- Size: 718 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
* A starting point for C++ projects using SDL2.
* Uses [conan.io](https://conan.io) to obtain and setup libraries.
```sh
pip3 install conan
```
* Uses [CMake](https://cmake.org) for build system creation.
## Quickstart
Windows : `auto.bat` # or double-click
Linux : `./auto.sh`
## Manual start
From a command line, at the root of this project.
Make a directory for temporary build files.
```sh
mkdir build
```
Change into that directory
```sh
cd build
```
Ask conan to install libraries, according to `conanfile.txt`
```sh
conan install .. --build missing
```
Ask CMake to make a build system (build files will be in `build` folder. `.sln` file for Visual Studio)
* Windows
```sh
cmake .. -G "Visual Studio 14 2015 Win64"
```
* Linux
```sh
cmake .. -G "Unix Makefiles
```
* Any (auto select build system)
```sh
cmake ..
```
Do the build
- Visual Studio, manually
- open the directory and hit *build*
- Ask CMake to ask the build system to build (OPTIONAL)
```sh
cmake --build . --config Debug
```
## Other resources
- [Template by shearer12345](https://github.com/shearer12345/sdl2template)
- [CMake and Visual Studio](https://docs.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio)
- [Conan SDL2 remote]()