robotology-superbuild icon indicating copy to clipboard operation
robotology-superbuild copied to clipboard

Document and test in CI ROBOTOLOGY_USES_LUA option and update setup.sh

Open traversaro opened this issue 7 years ago • 3 comments

Once it is documented, we can remove the mark_as_advanced.

traversaro avatar Jan 30 '18 09:01 traversaro

Original code in the README removed in https://github.com/robotology/robotology-superbuild/pull/31 :

| ROBOTOLOGY_USES_LUA | Include software and plugins that depend on the Lua scripting language. | OFF | Documentation on Lua dependency. |

Lua

Support for this dependency is enabled by the ROBOTOLOGY_USES_LUA CMake option.

Configuration

TODO

Check the installation

TODO

traversaro avatar Jan 30 '18 09:01 traversaro

Another existing problem (cc @xEnVrE) is that at the moment the setup.sh ( https://github.com/robotology/robotology-superbuild/blob/master/cmake/template/setup.sh.in ) and all related files in Windows (see https://github.com/robotology/robotology-superbuild/issues/147) do not set the LUA_CPATH env variable, so you will need to set it manually.

traversaro avatar Jun 26 '19 07:06 traversaro

@Nicogene probably experienced a regression as this option is not tested in CI:

In file included from /Users/runner/work/icub-tests/icub-tests/yarp/src/carriers/portmonitor_carrier/MonitorBinding.cpp:14: 

 

/Users/runner/work/icub-tests/icub-tests/yarp/src/carriers/portmonitor_carrier/lua/MonitorLua.h:16:10: fatal error: 'swigluarun.h' file not found 

 

#include "swigluarun.h" 

 

 ^~~~~~~~~~~~~~ 

 

1 error generated. 

 

make[2]: *** [src/carriers/portmonitor_carrier/CMakeFiles/yarp_portmonitor.dir/MonitorBinding.cpp.o] Error 1 

 

make[1]: *** [src/carriers/portmonitor_carrier/CMakeFiles/yarp_portmonitor.dir/all] Error 2 

 
make: *** [all] Error 2

traversaro avatar May 28 '21 09:05 traversaro