Skip to content

libssh & libzip compilation

David Mansolino edited this page Feb 4, 2019 · 3 revisions

This page explains how to recompile the libssh and libzip dependencies on every platforms. libssh and libzip are not used directly by Webots but are distributed with Webots and are used by several controllers requiring to create zip archives and ssh connections.

Windows

On Windows, libssh and libzip are provided as MSYS2 pacman packages and are automatically installed when installing the msys dependencies.

Linux

On Linux, libssh and libzip are also provided as packages called libssh-dev and libzip-dev and are automatically installed when installing the required packages.

Mac

You need to have python 2.7, cmake, git and perl (Windows: see http://strawberryperl.com/)

python ~/webots/src/install_scripts/zlib_installer.py --install
python ~/webots/src/install_scripts/libssh_installer.py --install
python ~/webots/src/install_scripts/libzip_installer.py --install

Package creation

cd ~/webots
tar -cvSjf libssh.tar.bz2 include/libssh/libssh/*.h lib/*ssh.*
tar -cvSjf libzip.tar.bz2 include/libzip/*.h lib/*zip.*
Clone this wiki locally