Skip to content

Latest commit

 

History

History
74 lines (51 loc) · 1.28 KB

README.md

File metadata and controls

74 lines (51 loc) · 1.28 KB

Real-Time-Sonogram

Prerequisites

SDL2

Installing

macOS

  1. Install SDL2 using brew:
brew install sdl2
  1. Navigate to the directory that sdl2 was installed into. For example:
/usr/local/Cellar/sdl2/2.0.5
  1. Copy the contents of:
/usr/local/Cellar/sdl2/2.0.5/include/

into:

Real-Time-Sonogram/src/include
  1. Copy the directory:
/usr/local/Cellar/sdl2/2.0.5/lib/

into the directory:

Real-Time-Sonogram/src/lib

Try it out!

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

License

Copyright © 2019 Saveliy Yusufov