Skip to content

Examples for sodium-cxx, C++ library for Functional Reactive Programming

License

Notifications You must be signed in to change notification settings

e4z9/sodium-cxx-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Examples for sodium-cxx

Sodium-cxx is the C++ variant of the Sodium framework for Functional Reactive Programming (FRP). There is a great book Functional Reactive Programming from Stephen Blackheath and Anthony Jones, which includes many examples based on the Java variant of Sodium. This project aims to translate these examples to C++. You find the original examples in the Sodium repository.

How to build

You need C++ compiler tools for your platform (MSVC, MinGW, GCC, or Xcode, depending on platform) and CMake as the build system.

Install Boost

sodium-cxx requires Boost. E.g. on macOS you can install Boost with

brew install boost

Install Qt 6

Many of the sodium-cxx-examples require Qt 6. E.g. on macOS you can install Qt with

brew install qt

or you can use the official binary installers from the Qt Project.

Install sodium-cxx and sodium-qt

sodium-cxx is provided as a submodule of this repository. The same is true for the Sodium FRP bindings for Qt, which are used for the UI.

Simply checkout the submodules with

cd /to/this/directory
git submodule update --init

Build the examples

cd /to/this/directory
cmake -B build -G Ninja .
cmake --build build

If you installed Boost or Qt in a non-standard location (that is not automatically found by CMake), you need to include the path to Boost or Qt -DCMAKE_PREFIX_PATH="/path/to/boost;/path/to/qt" in the first cmake call.

About

Examples for sodium-cxx, C++ library for Functional Reactive Programming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages