參考資訊:
https://github.com/boostorg/math/issues/675
問題如下:
In file included from wesnoth/src/preferences_display.cpp:40: /opt/mmiyoo/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/math/common_factor_rt.hpp:14:68: error: _Pragma takes a parenthesized string literal BOOST_MATH_HEADER_DEPRECATED("<boost/integer/common_factor_rt.hpp>"); ^ In file included from /opt/mmiyoo/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/math/common_factor_rt.hpp:12, from wesnoth/src/preferences_display.cpp:40: /opt/mmiyoo/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/math/common_factor_rt.hpp:14:1: error: ‘_Pragma’ does not name a type; did you mean ‘__gamma’? BOOST_MATH_HEADER_DEPRECATED("<boost/integer/common_factor_rt.hpp>"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [src/CMakeFiles/wesnoth-game.dir/build.make:469: src/CMakeFiles/wesnoth-game.dir/preferences_display.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:654: src/CMakeFiles/wesnoth-game.dir/all] Error 2 make: *** [Makefile:155: all] Error 2
解法如下:
使用BOOST 1.78版本