Aleph
Aleph copied to clipboard
Few steps closer for a complete Conan packaging, for issue #27
- Added Conan file to automatically fetch the dependencies using their Conan recipes:
-
Boost
, with its components. -
RapidJSON
-
PyBind11
-
Eigen3
-
tinyxml2
-
- The
FLANN
has no Conan recipe available yet. Could be made manually if it is significant and needed.
Using Conan
mkdir build
cd build
conan install .. -o enable_rapidjson=True -o enable_eigen=True -o enable_tinyxml2=True -o enable_pybind=True --build missing
cmake ..
This will download and install all the optional dependencies except the FLANN
. Also, any option in the Conan installation command can be omitted.
Conan in general is very promising, well documented, very active support, but not yet widely adopted since it is very new.
Forgot to tell, you need to explicitly ask the Conan to use the new C++ ABI libstdc++11
, by one of the following:
Override this requirement in the installation command:
conan install .. [-o enable_rapidjson=True] [-o enable_eigen=True] [-o enable_tinyxml2=True] [-o enable_pybind=True] --build missing -s compiler.libcxx=libstdc++11
OR, Add this requirement to the default Conan profile in your home directory (e.g nano ~/.conan/profiles/default
), and make sure you have the following line:
compiler.libcxx=libstdc++11
instead of
compiler.libcxx=libstdc++