Conan Usage
Setup
- Install conan.
pip install conan
- Define the environment variable CONAN_USER_HOME, to avoid that the conan package storage cache is stored in your user directory and is thus synchronized with your profile.
set CONAN_USER_HOME=xxx \\ with xxx being a local directory on your PC
- Configure conan to use our package repository for packages we (still) need to provide ourselves.
conan remote add rwth-vr--bintray https://api.bintray.com/conan/rwth-vr/conan
- For conan >v1.0 we might also need:
conan remote add bincrafters_public https://api.bintray.com/conan/bincrafters/public-conan
Build your project (from terminal)
Windows
-
Open "Developer Prompt for VS2017".
-
Ensure that cmake is appended to your path variable. Otherwise:
set PATH=<cmake binary directory>;%PATH%
- Run the following commands:
cd <build directory>
conan install --build=missing -s compiler="Visual Studio" -s compiler.version=15 <relative path to source directory>
cmake <relative path to source directory>
- If you want to use the Visual Studio Release/Debug-Switch, use cmake_multi
conan install --build=missing -s compiler="Visual Studio" -s compiler.version=15 -g cmake_multi -s build_type=Release -s compiler.runtime=MD ..
conan install --build=missing -s compiler="Visual Studio" -s compiler.version=15 -g cmake_multi -s build_type=Debug -s compiler.runtime=MDd ..
-
Troubleshooting:
-
Windows Universal CRT SDK in the Visual Studio 2017 Installer apparently has to be ticked otherwise an error with missing ctypes.h occurs during building glew.
-
Uploading We might want to host all dependencies so that we can upload the binaries there and circumvent problems that appear when building with conan
conan user -p <APIKEY> -r rwth-vr--bintray <USERNAME>
conan upload glew/2.1.0@RWTH-VR/thirdparty --all (respectively for every other lib)
- APIKEY can be found in you bintray profile under Edit Profile
Apple
- Run the following commands:
cd <build directory>
conan install --build=missing -s compiler="apple-clang" -s compiler.version="8.1" <relative path to source directory>
cmake <relative path to source directory>
- You can also use CMake-GUI for the last step.