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
272 stars 66 forks source link

Compilation fails #128

Open Gwouigwoui opened 2 months ago

Gwouigwoui commented 2 months ago

Hi,

I'm using Ubuntu 22.04 (WSL) with swig 4.3.0 and python 3.10.12. I don't run into any issues with the first step (./waf configure --with-python-bindings --with-asserts), however ./waf fails at step 85/92 with the following output:

[85/92] Processing src/bindings/gaia.swig
23:11:48 runner ['/usr/local/bin/swig', '-c++', '-python', '-w451', '-o', '/home/guillaume/gaia/build/src/bindings/gaia2.swigwrap_1.cxx', '-Isrc', '-I../src', '-Isrc/bindings', '-I../src/bindings', '-Isrc/metrics', '-I../src/metrics', '-Isrc/3rdparty', '-I../src/3rdparty', '-I/usr/include/python3.10', '-I/usr/include/x86_64-linux-gnu/qt5/QtCore', '-I/usr/include/x86_64-linux-gnu/qt5', '-I/usr/include/x86_64-linux-gnu/qt5/QtConcurrent', '-I/usr/include/eigen3', '-DGAIA_VERSION="2.4.6"', '-DGAIA_GIT_SHA="v2.4.4-164-g0d0942b"', '-DPYTHONDIR="/usr/local/lib/python3/dist-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python3/dist-packages"', '-DHAVE_PYEMBED=1', '-DHAVE_PYEXT=1', '-DHAVE_PYTHON_H=1', '-DNDEBUG', '-DQT_CORE_LIB', '-DQT_CONCURRENT_LIB', '-DQT_CORE_LIB', '../src/bindings/gaia.swig']
../src/bindings/factory.i:24: Error: Template 'gaia2::Factory' undefined.
../src/bindings/layoutawarefactory.i:29: Error: Template 'gaia2::LayoutAwareFactory' undefined.
../src/bindings/layoutawarefactory.i:52: Error: Template 'gaia2::LayoutAwareFactory' undefined.
../src/bindings/gaia.swig:185: Error: 'mergeLayouts' is multiply defined in the generated target language module.
../src/bindings/../pointlayout.h:312: Error: Previous declaration of 'mergeLayouts'
../src/bindings/gaia.swig:186: Error: 'mergeDataSets' is multiply defined in the generated target language module.
../src/bindings/../dataset.h:483: Error: Previous declaration of 'mergeDataSets'

Waf: Leaving directory `/home/guillaume/gaia/build'
Build failed
 -> task in '_gaia2' failed with exit status 1:
        {task 139968395062832: swig gaia.swig -> gaia2.swigwrap_1.cxx,gaia2.py}
['/usr/local/bin/swig', '-c++', '-python', '-w451', '-o', '/home/guillaume/gaia/build/src/bindings/gaia2.swigwrap_1.cxx', '-Isrc', '-I../src', '-Isrc/bindings', '-I../src/bindings', '-Isrc/metrics', '-I../src/metrics', '-Isrc/3rdparty', '-I../src/3rdparty', '-I/usr/include/python3.10', '-I/usr/include/x86_64-linux-gnu/qt5/QtCore', '-I/usr/include/x86_64-linux-gnu/qt5', '-I/usr/include/x86_64-linux-gnu/qt5/QtConcurrent', '-I/usr/include/eigen3', '-DGAIA_VERSION="2.4.6"', '-DGAIA_GIT_SHA="v2.4.4-164-g0d0942b"', '-DPYTHONDIR="/usr/local/lib/python3/dist-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python3/dist-packages"', '-DHAVE_PYEMBED=1', '-DHAVE_PYEXT=1', '-DHAVE_PYTHON_H=1', '-DNDEBUG', '-DQT_CORE_LIB', '-DQT_CONCURRENT_LIB', '-DQT_CORE_LIB', '../src/bindings/gaia.swig']

Any idea what's going on?

Thanks!