Link Search Menu Expand Document
Table of contents
  1. Installing from source
    1. For Windows
  2. Installing the MATLAB interface
  3. Installing the Julia interface
  4. Installing the Python interface

Installing from source

The installation requires CMake and GCC.

In the path where you want to keep the source code, run the following commands

git clone https://github.com/darnstrom/daqp.git
mkdir build
cd build
cmake ..
cmake --build .

To copy the header files and libraries into includedir and libdir, respectively, run the following command in the build folder

cmake --build . --target install

For Windows

The commands mentioned above can be executed on Windows by, for example, using Git BASH after installing CMake and TDM-GCC. Make sure that CMake is added to PATH during installation.)

Installing the MATLAB interface

The MATLAB interface can be installed directly in MATLAB by running the following commands in the directory where you want to store the m-files:

websave('install_daqp','https://raw.githubusercontent.com/darnstrom/daqp/master/interfaces/daqp-matlab/install_daqp.m')
install_daqp

It is also possible to generate the mex-file used in the MATLAB interface when building from source by passing the flag MATLAB when setting up CMake, or by running the script make_daqp in MATLAB.

Installing the Julia interface

In the REPL run the command

] add DAQP 

Installing the Python interface

pip install daqp