4 Replies Latest reply on May 17, 2015 12:28 AM by s89

    How to fix CMake error in iotkit-lib-c?


      I’m bitbaking edison-image using edison-src-ww18-15.tgz, no custom config, and the BSP r006 instructions on a fresh Ubuntu 14.04.2 install. It fails on the iotkit-lib-c recipe, with the following errors:

      | CMake Error at /home/sander/edison/edison-src/build/tmp/sysroots/x86_64-linux/usr/share/cmake-2.8/Modules/FindSWIG.cmake:45 (string):
      | string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
      | command.


      Full log: https://gist.github.com/sander/43f80779956222e1c866

      Seems like in build/tmp/sysroots/x86_64-linux/usr/share/cmake-2.8/Modules/FindSWIG.cmake:45, the SWIG_swiglib_output variable is empty:

      string(REGEX REPLACE "[\n\r]+" ";" SWIG_swiglib_output ${SWIG_swiglib_output})


      Any idea how to work around this, or is it easy to fix?