Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWIG 4.1.1 Failure #6

Open
jacobwilliams opened this issue Mar 2, 2023 · 0 comments
Open

SWIG 4.1.1 Failure #6

jacobwilliams opened this issue Mar 2, 2023 · 0 comments

Comments

@jacobwilliams
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant