Skip to content

Compilation fails #128

@Gwouigwoui

Description

@Gwouigwoui

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions