letaureau / b-tk

Automatically exported from code.google.com/p/b-tk
0 stars 0 forks source link

Shared libraries do not get installed properly for Mokka under Linux #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure and call make and make install
2. try to run Mokka form the CMAKE_INSTALL_PREFIX/bin path
3.

What is the expected output? What do you see instead?
Mokka should run, but I get:
Mokka: error while loading shared libraries: libBTKCommon.so.0.1: cannot open 
shared object file: No such file or directory

What version of the product are you using? On what operating system?
btk rev. 447 under Ubuntu 10.04.1 x64

Please provide any additional information below.
There are basically two problems:
1. Binaries that link against shared libraries need to get information where 
they reside (sometimes called the rpath). A patch is attached that solves this 
issue
2. The shared libraries are not installed to the path CMAKE_INSTALL_PREFIX/lib 
. This has to be added somewhere in CMakeLists.txt, but I don't know exactly 
where.

Original issue reported on code.google.com by martin.f...@gmail.com on 21 Sep 2010 at 3:32

Attachments:

GoogleCodeExporter commented 9 years ago
Just compiled revision r540 and the error does not occur anymore.

Thanks!

Original comment by martin.f...@gmail.com on 30 Nov 2010 at 10:13

GoogleCodeExporter commented 9 years ago
Fixed in revision r527.

Original comment by arnaud.barre on 30 Nov 2010 at 11:46

GoogleCodeExporter commented 9 years ago

Original comment by arnaud.barre on 30 Nov 2010 at 11:47