xEnVrE/thrift-cpp-python-interop

Swig can't build bindings if C++ was not installed in the superbuild

Closed this issue · 1 comments

If CMAKE_INSTALL_PREFIX is not set to /robotology-superbuild/build/install the swig interface compilation fails with:

[ 33%] Swig compile tcpi-python-types.i for python
/robotology-superbuild/build/install/share/yarp/bindings/yarp.i:437: Warning 206: Unexpected tokens after #endif directive.
/home/ecub/thrift-cpp-python-interop/python_library/tcpi-python-types.i:23: Error: Unable to find 'ThriftCppPythonInterop/Service.h'
make[2]: *** [CMakeFiles/tcpi_swig_compilation.dir/build.make:64: CMakeFiles/tcpi.dir/tcpi-python-typesPYTHON.stamp] Error 1
make[2]: *** Deleting file 'CMakeFiles/tcpi.dir/tcpi-python-typesPYTHON.stamp'
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/tcpi_swig_compilation.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

This happens when CMAKE_INSTALL_PREFIX is set to an arbitrary location but even when it is not set and it defaults to /usr/local

xEnVrE commented

@andrearosasco it should be fixed now by #3