yarp
yarp copied to clipboard
YARP Bindings do not get installed
Hi all,
I found a little bug: Bindings of YARP (I only tested LUA) do not get copied to the installation folder when executing make install.
The way this bug can be replicated is as follows:
- Switch ON the following flags: YARP_COMPILE_BINDINGS; CREATE_LUA
make-> bindings are compiled in build/lib/luamake install-> bindings should be copied to CMAKE_INSTALL_PREFIX/lib/lua, but are not
Would be great if this could be fixed.
Thanks, Tobias
It looks like that python and allegro bindings are installed, all the others are not
However it still requires to set LUA_CPATH, i.e.:
export LUA_CPATH=;;;<INSTALL_PREFIX>/bin/?.so
From what I understand it should not be installed in "bin" but in "lib/lua/5.2" or something similar, and I think that you will not have to export LUA_CPATH...
I just noticed that bindings install examples and other stuff that is not supposed to be installed, but do not install the actual target... we should definitely clean up this:
- [ ] Move the bindings examples with the other examples
- [ ] Disable out of source compilation, simplify CMake, remove YARP_COLLISION_AVOIDANCE, etc.
- [ ] Install in the right place all the bindings.
Problem with installation in lib/lua/5.2 is that you need to know the lua version.
I confirm that it works if yarp.so is installed in lib/lua/
The problem is how to tell cmake about the lua version...
Both FindLua.cmake and FindLua51.cmake (we are using the latter) define LUA_VERSION_STRING.
Works on Ubuntu 14.04
Closing, thanks @lornat75 and @traversaro!
Reopening this until all the bindings are installed in the proper place.