channotation / chap

CHAP is a tool for the functional annotation of ion channel structures:
http://www.channotation.org
Other
18 stars 10 forks source link

compiling the CHAP #29

Open afa32 opened 3 years ago

afa32 commented 3 years ago

cmak .. run ok however when i run make i got the following error. i will appreciate any help.

[ 6%] Built target googletest [ 7%] Building CXX object CMakeFiles/chap.dir/src/aggregation/number_density_calculator.cpp.o In file included from /usr/local/gromacs/include/gromacs/math/vec.h:111:0, from /home/afa32/local/chap-version_0_9_1/include/geometry/spline_curve_1D.hpp:33, from /home/afa32/local/chap-version_0_9_1/include/aggregation/number_density_calculator.hpp:32, from /home/afa32/local/chap-version_0_9_1/src/aggregation/number_density_calculator.cpp:29: /usr/local/gromacs/include/gromacs/math/vectypes.h:96:41: error: ‘remove_cv_t’ is not a member of ‘std’ static_assert(!std::is_pointer<std::remove_cv_t>::value, ^~~ /usr/local/gromacs/include/gromacs/math/vectypes.h:96:41: note: suggested alternative: ‘remove_cv’ static_assert(!std::is_pointer<std::remove_cv_t>::value, ^~~ remove_cv /usr/local/gromacs/include/gromacs/math/vectypes.h:96:41: error: ‘remove_cv_t’ is not a member of ‘std’ /usr/local/gromacs/include/gromacs/math/vectypes.h:96:41: note: suggested alternative: ‘remove_cv’ static_assert(!std::is_pointer<std::remove_cv_t>::value, ^~~ remove_cv /usr/local/gromacs/include/gromacs/math/vectypes.h:96:53: error: template argument 1 is invalid static_assert(!std::is_pointer<std::remove_cv_t>::value, ^~~~~ /usr/local/gromacs/include/gromacs/math/vectypes.h:96:66: error: ‘::value’ has not been declared static_assert(!std::is_pointer<std::remove_cv_t>::value, ^~~~~ /usr/local/gromacs/include/gromacs/math/vectypes.h:96:66: note: suggested alternative: ‘valloc’ static_assert(!std::is_pointer<std::remove_cv_t>::value, ^~~~~ valloc In file included from /home/afa32/local/chap-version_0_9_1/include/geometry/spline_curve_1D.hpp:33:0, from /home/afa32/local/chap-version_0_9_1/include/aggregation/number_density_calculator.hpp:32, from /home/afa32/local/chap-version_0_9_1/src/aggregation/number_density_calculator.cpp:29: /usr/local/gromacs/include/gromacs/math/vec.h:630:6: error: ‘remove_const_t’ in namespace ‘std’ does not name a template type std::remove_const_t norm(T v) ^~~~~~ /usr/local/gromacs/include/gromacs/math/vec.h:635:6: error: ‘remove_const_t’ in namespace ‘std’ does not name a template type std::remove_const_t norm2(T v) ^~~~~~ CMakeFiles/chap.dir/build.make:107: recipe for target 'CMakeFiles/chap.dir/src/aggregation/number_density_calculator.cpp.o' failed make[2]: [CMakeFiles/chap.dir/src/aggregation/number_density_calculator.cpp.o] Error 1 CMakeFiles/Makefile2:388: recipe for target 'CMakeFiles/chap.dir/all' failed make[1]: [CMakeFiles/chap.dir/all] Error 2 Makefile:159: recipe for target 'all' failed make: *** [all] Error 2

manas-kohli commented 3 years ago

Got the same error

Inniag commented 3 years ago

Which version of Gromacs are you using?

gabrielctn commented 3 years ago

Same error here ! Gromacs v2020.4

jianghaizhu commented 3 years ago

Got the same error. Gromacs 2021.2. Ubuntu 20.04. Any suggestions?

Inniag commented 3 years ago

Compile against Gromacs 2018. Due to some API breaks in libgromacs 2018, CHAP is not yet compatible with the newer versions of Gromacs.