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

Build

learndir/
└── joomer-efsw-file-monitoring/
   └──x64
        └──release
                └──test     
    └──Linux
        └──release
           └──test 
└── efsw

Ubuntu Linux

Run terminal

# Install the following if not already installed
sudo apt update
sudo apt install git
sudo apt install cmake
sudo apt install build-essential cmake # build-essential contains gcc,g++ and make

# create all the directories needed
mkdir learndir && cd learndir
mkdir efsw joomer-efsw-file-monitoring

# Build Entropia File System Watcher
cd efsw
git clone https://github.com/SpartanJ/efsw.git .
mkdir -p build
cd build
cmake ..
make -j$(nproc)

# Build joomer-efsw-file-monitoring
cd ../../joomer-efsw-file-monitoring
git clone https://git.indoodle.com/jason/joomer-efsw-file-monitoring.git .
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 -j$(nproc)
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
mkdir efsw joomer-efsw-file-monitoring

# Build Entropia File System Watcher
cd efsw
git clone https://github.com/SpartanJ/efsw.git .
cmake -B ./build
cmake --build ./build --config Release -j%NUMBER_OF_PROCESSORS%

# Build joomer-efsw-file-monitoring
cd ../joomer-efsw-file-monitoring
git clone https://git.indoodle.com/jason/joomer-efsw-file-monitoring.git .
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 

# create test folder to put images in
mkdir x64\release\test

# run
x64\release\joomer-efsw-file-monitoring.exe
Description
watch pictures come in a folder and flip
Readme 848 KiB
Languages
C++ 59.2%
Makefile 40.8%