roboptim/roboptim-core

Debian/Ubuntu installation command line doesn't work

Elektron97 opened this issue · 2 comments

Hi everyone, thank you in advance for your help. I'm trying to install your package, but: sudo apt-get install libroboptim-core-dev command doesn't work. The error is:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libroboptim-core-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libroboptim-core-dev' has no installation candidate

Hi @Elektron97

This package has not been actively used/maintained for a while now. The roboptim-core package has been removed from Debian archives (and thus derivatives) a while back.

If you wish to try and use roboptim you can try to build it from source.

Thank you! For the installation from source I wrote this simple bash script, including some issues that I read here:

#!/bin/bash
## Package Names ##
DOXYGEN_PKG=doxygen
EIGEN_PKG=libeigen3-dev
BOOST_PKG=libboost-all-dev
LOG4CXX_PKG=liblog4cxx-dev
LIBTOOL_PKG=libtool


echo "Welcome to the RobOptim Installation"
#### Dependencies ####
echo "Updating..."
sudo apt-get update
# doxygen
sudo apt-get install $DOXYGEN_PKG
# boost
sudo apt-get install $BOOST_PKG
# eigen
sudo apt-get install $EIGEN_PKG
# log4cxx
sudo apt-get install $LOG4CXX_PKG
# libtool
sudo apt-get install $LIBTOOL_PKG


#### RobOptim ####
echo "Download RobOptim Core..."
# Switch to home directory
cd
git clone git@github.com:roboptim/roboptim-core.git
cd roboptim-core
git submodule update --init
echo "Repository downloaded."
echo "Build library..."
# Create build directory
mkdir _build && cd _build
# Run cmake or ccmake and set the installation options as needed
# Note: RelWithDebInfo is the prefered value for CMAKE_BUILD_TYPE
#       Debug (or no value) is considerable slower than release mode.
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/your/install/prefix ..
# Build the software
sudo make
# Run the test suite
sudo make test
# Install the software
sudo make install
echo "--------------------------------"
echo "Installation completed. Enjoy RobOptim Library!"