robotology / yarp

YARP - Yet Another Robot Platform
http://www.yarp.it
Other
514 stars 193 forks source link

YARP Bindings do not get installed #481

Open Tobias-Fischer opened 9 years ago

Tobias-Fischer commented 9 years ago

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

drdanz commented 9 years ago

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

lornat75 commented 9 years ago

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

export LUA_CPATH=;;;/bin/?.so

drdanz commented 9 years ago

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 commented 9 years ago

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:

lornat75 commented 9 years ago

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

lornat75 commented 9 years ago

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

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

traversaro commented 9 years ago

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

lornat75 commented 9 years ago

Works on Ubuntu 14.04

Tobias-Fischer commented 8 years ago

Closing, thanks @lornat75 and @traversaro!

drdanz commented 8 years ago

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