Stand alone Setup - mzahana/dlp GitHub Wiki
This page explains the setup procedure to use the DLP package as stand-alone C++ implementation. This setup is also required for the ROS interface.
Installation
First, clone this repository,
git clone https://github.com/mzahana/dlp.git
GLPK is already included in this repo. To install it, navigate to the dlp directory and run and run the following commands in order,
./configure
make # to compile GLPK Libs
make check # to make sure everything compiled correctly
make install # to install Libs in the default system paths
NOTE: you might need to use sudo make install instead of make install, if you get error permission denied.
Then go to the 'Using C++' section below to test DLP.
NOTE if compiling DLP test files fails for some reason, try to clean the glpk installation, and re-do it without compliling the shared libs,
# run inside glpk folder
sudo make uninstall
make clean
make distclean
# re-configure without shared libs, and compile/install again
./configure --disable-shared
make # compile
make check # running test files to check if GLPK runs OK!
make install
Then, try to compile DLP test files by following the below instructions.
Testing files
Test files are provided in C++ source files. It can be found in the src folder. After installing GLPK package that is included with this package, got to the dlp folder and
- make sure to install GLPK in the default paths (following above instructions)
- run the following inside DLP folder,
make testDLP
./bin/testDLP
You should see some output that indicates that problem is solved.
- to clean the test files,
make clean