Pseudomanifold / Aleph

A library for exploring persistent homology
https://pseudomanifold.github.io/Aleph/
MIT License
101 stars 17 forks source link

Few steps closer for a complete Conan packaging, for issue #27 #51

Open A-Alaa opened 5 years ago

A-Alaa commented 5 years ago

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.

A-Alaa commented 5 years ago

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++