You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/bash
|
|
|
|
#set -e
|
|
|
|
#set -x
|
|
|
|
|
|
|
|
if [[ "$(uname -s)" == 'Linux' ]]; then
|
|
|
|
sudo apt-get install cmake zlib1g-dev libssh-dev libcurl4-openssl-dev gettext libexpat1-dev
|
|
|
|
sudo apt-get install python-pip libxml2-utils
|
|
|
|
sudo pip install virtualenv
|
|
|
|
else
|
|
|
|
brew update
|
|
|
|
brew install expat gettext libssh
|
|
|
|
brew install pyenv-virtualenv
|
|
|
|
# By default it already has cmake 3.6.2
|
|
|
|
fi
|
|
|
|
|
|
|
|
virtualenv conan
|
|
|
|
source conan/bin/activate
|
|
|
|
pip install conan
|
|
|
|
conan --version
|
|
|
|
conan remote add conan-pix4d https://api.bintray.com/conan/pix4d/conan
|
|
|
|
mkdir -p ~/.conan/profiles
|
|
|
|
|
|
|
|
if [[ "$(uname -s)" == 'Linux' ]]; then
|
|
|
|
printf "os=Linux\narch=x86_64\ncompiler=gcc\ncompiler.version=4.8\nbuild_type=Release\n" > ~/.conan/profiles/release
|
|
|
|
else
|
|
|
|
printf "os=Macos\narch=x86_64\ncompiler=apple-clang\ncompiler.version=7.3\nbuild_type=Release\n" > ~/.conan/profiles/release
|
|
|
|
fi
|
|
|
|
|