Steppable 0.0.1
A CAS project written from scratch in C++
|
Steppable is configured using CMake, in order to enable building across different platforms and compilers. As a result, one needs an external build system, e.g., Make to build it.
To get started, you would need:
Software | Purpose | Alternatives | Required? |
---|---|---|---|
LLVM Clang | C++ Compiler | GCC, MSVC... | YES |
CMake | Configure | None | YES |
Make | Building | Ninja, Visual Studio... | YES |
Python | Building | None | YES |
Git | Downloading | Download as Zip | NO |
First, clone the repository using the command:
For more information on getting the source code, see Getting the Source Code.
Then, in the local folder, make a new directory. You can call it whatever you like, but I would recommend calling it build
.
Release builds are commonly used for production. Therefore, the executables and libraries are often optimized, in order to save some storage for end users.
CMake defaults to release builds, which means that one need not to specify any options to make a release build.
To make a release build:
CMD.EXE
for Windows at the build directory.After the prompt, type:
For users with ninja
installed and working, please use the build below:
Then, invoke the build tool. CMake generates Makefiles by default, so the command to build is:
CMake also supports invoking the build command itself. You can also call:
bin/
directory in the build directory, and the libraries are in the lib/
directory.Debug builds are commonly used for development. The build also includes debug symbols, linking binary code to a human-readable format.
To make a release build:
CMD.EXE
for Windows at the build directory.After the prompt, type:
For users with ninja
installed and working, please use the build below:
Then, invoke the build tool. CMake generates Makefiles by default, so the command to build is:
CMake also supports invoking the build command itself. You can also call
bin/
directory in the build directory, and the libraries are in the lib/
directory. You can run the binaries with a debugger to inspect them for bugs.In the lib
directory, there should be a file starting steppyble
. It is a compiled Python shared object, which can be imported from Python.