60 lines
1.4 KiB
Markdown
60 lines
1.4 KiB
Markdown
# joomer-efsw-file-monitoring
|
|
Watch folder for images and flip them
|
|
|
|
# Demonstrates
|
|
- file monitoring
|
|
|
|
# Usage
|
|
|
|
```
|
|
joomer-ftxui-file-monitoring
|
|
- drag and drop files into the path folder
|
|
```
|
|
|
|
[todo]
|
|
|
|
# Build
|
|
```
|
|
learndir/
|
|
└── joomer-ftxui-file-monitoring/
|
|
|
|
```
|
|
|
|
- Download and Install Premake
|
|
|
|
## Ubuntu Linux (kasm-ubuntu)
|
|
```
|
|
mkdir learndir
|
|
cd learndir
|
|
git clone https://git.indoodle.com/jason/joomer-efsw-file-monitoring.git
|
|
cd joomer-ftxui-file-browser
|
|
make all
|
|
bin/Linux/release/joomer-ftxui-file-monitoring
|
|
```
|
|
|
|
## Windows (win10 enterprise)
|
|
- Download Visual Studio Community Edition 2022
|
|
- Run VisualStudioSetup.exe
|
|
- Workload = [x] Desktop developemnt with C++
|
|
- Individial components = [x] Git For Windows
|
|
|
|
Run **x64 Native Tools Command Prompt for VS 2022**
|
|
```
|
|
mkdir learndir
|
|
cd learndir
|
|
git clone https://git.indoodle.com/jason/joomer-efsw-file-monitoring.git
|
|
premake5 vs2022
|
|
cd joomer-ftxui-file-monitoring/make/windows
|
|
msbuild joomer-ftxui-file-monitoring.vcxproj /t:Build /p:Configuration=Debug /p:Platform=x64
|
|
cd ../..
|
|
bin\Debug\joomer-ftxui-file-monitoring.exe
|
|
```
|
|
|
|
For a prototype app we can just dump the stb headers right into the joomer-efsw-file-monitoring/src dir for simplicity
|
|
```
|
|
curl -LO https://raw.githubusercontent.com/nothings/stb/master/stb_image.h
|
|
curl -LO https://raw.githubusercontent.com/nothings/stb/master/stb_image_write.h
|
|
make all -j4
|
|
```
|
|
|