- Install SDL2 using brew:
brew install sdl2
- Navigate to the directory that sdl2 was installed into. For example:
/usr/local/Cellar/sdl2/2.0.5
- Copy the contents of:
/usr/local/Cellar/sdl2/2.0.5/include/
into:
Real-Time-Sonogram/src/include
- Copy the directory:
/usr/local/Cellar/sdl2/2.0.5/lib/
into the directory:
Real-Time-Sonogram/src/lib
Change into the Real-Time-Sonogram/src
directory and build the sonogram
renderer and its corresponding server:
make all
Run the renderer & server, which will listen on port 11112:
./main
Run a test client (in a different terminal):
cd Real-Time-Sonogram/test
while true; do cat new_protoc_test.csv; done | nc localhost 11112
If everything went smoothly, you should see an image akin to the one at the top of this page.
The SDL2 installation instructions are based on: Setting up SDL2 on mac without Xcode
Copyright © 2019 Saveliy Yusufov