yarp icon indicating copy to clipboard operation
yarp copied to clipboard

YARP Bindings do not get installed

Open Tobias-Fischer opened this issue 10 years ago • 10 comments
trafficstars

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:

  1. Switch ON the following flags: YARP_COMPILE_BINDINGS; CREATE_LUA
  2. make -> bindings are compiled in build/lib/lua
  3. make install -> bindings should be copied to CMAKE_INSTALL_PREFIX/lib/lua, but are not

Would be great if this could be fixed.

Thanks, Tobias

Tobias-Fischer avatar Apr 21 '15 17:04 Tobias-Fischer

It looks like that python and allegro bindings are installed, all the others are not

drdanz avatar May 12 '15 13:05 drdanz

However it still requires to set LUA_CPATH, i.e.:

export LUA_CPATH=;;;<INSTALL_PREFIX>/bin/?.so

lornat75 avatar May 21 '15 16:05 lornat75

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

drdanz avatar May 21 '15 16:05 drdanz

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.

drdanz avatar May 21 '15 17:05 drdanz

Problem with installation in lib/lua/5.2 is that you need to know the lua version.

lornat75 avatar May 22 '15 08:05 lornat75

I confirm that it works if yarp.so is installed in lib/lua/

The problem is how to tell cmake about the lua version...

lornat75 avatar May 22 '15 11:05 lornat75

Both FindLua.cmake and FindLua51.cmake (we are using the latter) define LUA_VERSION_STRING.

traversaro avatar May 22 '15 11:05 traversaro

Works on Ubuntu 14.04

lornat75 avatar May 22 '15 12:05 lornat75

Closing, thanks @lornat75 and @traversaro!

Tobias-Fischer avatar Dec 30 '15 12:12 Tobias-Fischer

Reopening this until all the bindings are installed in the proper place.

drdanz avatar Jan 04 '16 17:01 drdanz