Skip to content

SWIG 4.1.1 Failure #6

@jacobwilliams

Description

@jacobwilliams

For the build script I show in Issue #5, if I update the SWIG version to 4.1.1 (which is the latest), the build fails. I get errors like this:

[46/80] Swig compile PyOF.i for python
FAILED: swig/CMakeFiles/_PyOF.dir/PyOFPYTHON_wrap.cxx swig/PyOF.py /OpenFrames/build/swig/CMakeFiles/_PyOF.dir/PyOFPYTHON_wrap.cxx /OpenFrames/build/swig/PyOF.py 
cd /OpenFrames/build/swig && /OpenFrames/build/osgenv/bin/cmake -E make_directory /OpenFrames/build/swig/CMakeFiles/_PyOF.dir /OpenFrames/build/swig /OpenFrames/build/swig/CMakeFiles/_PyOF.dir && /OpenFrames/build/osgenv/bin/cmake -E env SWIG_LIB=/OpenFrames/build/osgenv/share/swig/4.1.1 /OpenFrames/build/osgenv/bin/swig -python -I/OpenFrames/build/osgenv/include/python3.9 -I/OpenFrames/include -I/OpenFrames/build/osgenv/include -D_WIN64 -DOF_EXPORT -outdir /OpenFrames/build/swig -c++ -interface _PyOF -o /OpenFrames/build/swig/CMakeFiles/_PyOF.dir/PyOFPYTHON_wrap.cxx /OpenFrames/swig/PyOF.i
/OpenFrames/include/OpenFrames/FrameTransform.hpp:37: Error: Syntax error in input(1).
[55/80] Building CXX object Demos/CPP/oflighting/CMakeFiles/oflighting.dir/oflighting.cpp.o
ninja: build stopped: subcommand failed.
[9/27] Swig compile /OpenFrames/build/swig/PyOFInterfaceC.i for python
FAILED: swig/CMakeFiles/_PyOFInterfaceC.dir/PyOFInterfaceCPYTHON_wrap.cxx swig/PyOFInterfaceC.py /OpenFrames/build/swig/CMakeFiles/_PyOFInterfaceC.dir/PyOFInterfaceCPYTHON_wrap.cxx /OpenFrames/build/swig/PyOFInterfaceC.py 
cd /OpenFrames/build/swig && /OpenFrames/build/osgenv/bin/cmake -E make_directory /OpenFrames/build/swig/CMakeFiles/_PyOFInterfaceC.dir /OpenFrames/build/swig /OpenFrames/build/swig/CMakeFiles/_PyOFInterfaceC.dir && /OpenFrames/build/osgenv/bin/cmake -E env SWIG_LIB=/OpenFrames/build/osgenv/share/swig/4.1.1 /OpenFrames/build/osgenv/bin/swig -python -I/OpenFrames/build/osgenv/include/python3.9 -I/OpenFrames/include -D_WIN64 -DOF_EXPORT -outdir /OpenFrames/build/swig -c++ -interface _PyOFInterfaceC -o /OpenFrames/build/swig/CMakeFiles/_PyOFInterfaceC.dir/PyOFInterfaceCPYTHON_wrap.cxx /OpenFrames/build/swig/PyOFInterfaceC.i
/OpenFrames/include/OpenFrames/OF_Interface.h:85: Error: Syntax error in input(1).
[10/27] Swig compile PyOF.i for python
FAILED: swig/CMakeFiles/_PyOF.dir/PyOFPYTHON_wrap.cxx swig/PyOF.py /OpenFrames/build/swig/CMakeFiles/_PyOF.dir/PyOFPYTHON_wrap.cxx /OpenFrames/build/swig/PyOF.py 
cd /OpenFrames/build/swig && /OpenFrames/build/osgenv/bin/cmake -E make_directory /OpenFrames/build/swig/CMakeFiles/_PyOF.dir /OpenFrames/build/swig /OpenFrames/build/swig/CMakeFiles/_PyOF.dir && /OpenFrames/build/osgenv/bin/cmake -E env SWIG_LIB=/OpenFrames/build/osgenv/share/swig/4.1.1 /OpenFrames/build/osgenv/bin/swig -python -I/OpenFrames/build/osgenv/include/python3.9 -I/OpenFrames/include -I/OpenFrames/build/osgenv/include -D_WIN64 -DOF_EXPORT -outdir /OpenFrames/build/swig -c++ -interface _PyOF -o /OpenFrames/build/swig/CMakeFiles/_PyOF.dir/PyOFPYTHON_wrap.cxx /OpenFrames/swig/PyOF.i
/OpenFrames/include/OpenFrames/FrameTransform.hpp:37: Error: Syntax error in input(1).

Again, this is on an M1 Mac, latest develop OpenFrames commit (67cce87).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions