OpenFrames icon indicating copy to clipboard operation
OpenFrames copied to clipboard

SWIG 4.1.1 Failure

Open jacobwilliams opened this issue 1 year ago • 0 comments

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 (67cce87f1ccd23df91d6d070d86c06ceb180dadb).

jacobwilliams avatar Mar 02 '23 12:03 jacobwilliams