These instructions work in a Bash environment. If you are on Windows, Bash is now officially supported! (Windows 10 required). Installation instructions can be found here.
-
Clone the repository to the desired location on your system
git clone --recursive [email protected]:udacity/cpp-grapher.git
-
cd
into the repositorycd cpp-grapher
-
Your project is ready for use!
mkdir -p build && cd build
cmake -G "Unix Makefiles" .. && cmake --build . --target Tests -- -j 8
Sources/Tests/Tests
Build project & run application (assuming you are in the project root folder, as per above instructions)
mkdir -p build && cd build
cmake -G "Unix Makefiles" .. -DCMAKE_BUILD_TYPE=Release && cmake --build . --target cpp-grapher
Sources/Modules/cpp-grapher/cpp-grapher input_datapoints_file output_graph_filename.png
If you are more comfortable with GUI-based development, I recommend taking a look at JetBrains' CLion. It works with C++11/14 with "Intellisense" and refactoring tools, CMake dependency management and has cross-platform (Mac/Linux/Windows) support.
- ImageMagick (for Magick++)
- Binary installation instructions (OS X):
brew install imagemagick --with-quantum-depth-8
- Binary installation instructions (OS X):