MTG / gaia

C++ library to apply similarity measures and classifications on the results of audio analysis, including Python bindings. Together with Essentia it can be used to compute high-level descriptions of music.
http://essentia.upf.edu
GNU Affero General Public License v3.0
271 stars 66 forks source link

Fix build under GCC 6.3.0 #64

Closed a1batross closed 7 years ago

a1batross commented 7 years ago

GCC 6.3.0 forces C++11 by default, and it's causes some build errors in Eigen and gaia2.

../src/metrics/frozencosineangledistance.h:30:48: error: ‘constexpr’ needed for in-class initialization of static data member ‘const Real gaia2::FrozenCosineAngleDistance::defaultUndefinedDistance’ of non-integral type [-fpermissive]
   static const Real defaultUndefinedDistance = 0.0;
/home/a1ba/projects/essentia/gaia/src/3rdparty/Eigen/src/Core/util/Macros.h:252:35: error: unable to find string literal operator ‘operator""X’ with ‘const char [2]’, ‘long unsigned int’ arguments
 #define EIGEN_ASM_COMMENT(X)  asm("#"X)
                                   ^
/home/a1ba/projects/essentia/gaia/src/3rdparty/Eigen/src/Core/products/GeneralBlockPanelKernel.h:640:1: note: in expansion of macro ‘EIGEN_ASM_COMMENT’
 EIGEN_ASM_COMMENT("myend");