[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dynamic library not found by poretools



On Sun, Aug 26, 2018 at 08:59:21PM +0200, Andreas Tille wrote:
> I try to package porechop[1] but somehow it does not find its dynamic
> library.  If I install the resulting package I get:
> 
> $ porechop 
> could not find cpp_functions.so - please reinstall

SO_FILE = 'cpp_functions.so'
SO_FILE_FULL = os.path.join(os.path.dirname(os.path.realpath(__file__)), SO_FILE)
if not os.path.isfile(SO_FILE_FULL):
    sys.exit('could not find ' + SO_FILE + ' - please reinstall')

As the executable is in /usr/share/porechop and the lib is in
/usr/lib/x86_64-linux-gnu/porechop, this cannot work. The upstream build
system seems to install them into the same directory.

And wtf is -Wl,-soname,porechop/cpp_functions.so? 

TARGET       = porechop/cpp_functions.so
SONAME       = -soname
$(TARGET): $(OBJECTS)
        $(CXX) $(FLAGS) $(CXXFLAGS) $(LDFLAGS) -Wl,$(SONAME),$(TARGET) -o $(TARGET) $(OBJECTS)

It shouldn't have a soname at all, and especially not THIS ONE.

-- 
WBR, wRAR

Attachment: signature.asc
Description: PGP signature


Reply to: