2.2 KiB

joomer-efsw-file-monitoring

Watch folder for images and flip them

Demonstrates

  • file monitoring

Usage

joomer-efsw-file-monitoring 
- drag and drop files into the test folder

[todo]

Build

learndir/
└── joomer-efsw-file-monitoring/
└── efsw

Ubuntu Linux

mkdir learndir
cd learndir
git clone https://github.com/SpartanJ/efsw.git
mkdir -p efsw/build
cd efsw/build
cmake ..
make -j4
cd ../..
git clone https://git.indoodle.com/jason/joomer-efsw-file-monitoring.git
cd joomer-efsw-file-monitoring
git switch ProposedCleanup
wget https://raw.githubusercontent.com/nothings/stb/master/stb_image.h
wget https://raw.githubusercontent.com/nothings/stb/master/stb_image_write.h
make all -j4
mkdir bin/Linux/release/test
bin/Linux/release/joomer-efsw-file-monitoring

Windows

  • Download Visual Studio Community Edition
  • Run VisualStudioSetup.exe
  • Workload = [x] Desktop development with C++
  • Individual components = [x] Git For Windows

Run x64 Native Tools Command Prompt for VS

mkdir learndir
cd learndir
git clone https://github.com/SpartanJ/efsw.git
cd efsw
mkdir build
cd build
cmake ..
msbuild efsw.sln /p:Configuration=Release /p:Platform=x64
cd ..
git clone https://git.indoodle.com/jason/joomer-efsw-file-monitoring.git
cd joomer-efsw-file-monitoring
git switch ProposedCleanup
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
msbuild joomer-efsw-file-monitoring.vcxproj /p:Configuration=release /p:Platform=x64 
mkdir -p x64\release\test
x64\release\joomer-efsw-file-monitoring.exe

Troubleshooting

If you receive Error MSB8020, you need to retarget your project. When you build, add /p:PlatformToolset=v### with the correct version number depending on which Visual Studio you have installed.

  • Visual Studio Version,Toolset Name,Internal Version Number
  • Visual Studio 2022,v143,14.3x - 14.4x
  • Visual Studio 2019,v142,14.2x
  • Visual Studio 2017,v141,14.1x
  • Future / Preview,v145,14.5x (Likely VS 2025/Next)

For example, if your using Visual Studio 2022 msbuild joomer-efsw-file-monitoring.vcxproj /p:Configuration=release /p:Platform=x64 /p:PlatformToolset=v143