Page 1 of 1

Plugin couldn't load dependency libraries

Posted: 15 Feb 2017, 23:12
by Haster
Hello,

I'm trying to extend ExtBubbleRob plugin by my own library, but when I'm loading it an error occurs:

Code: Select all

Plugin 'BubbleRob': load failed (could not load). The plugin probably couldn't load dependency libraries. Try 'ldd pluginName.so' for more infos, or simply rebuild the plugin.


Here is my makefile (mostly just modified original one)

Code: Select all

CFLAGS = -std=c++14 -I../include -I/usr/local/include/ -Wall -fPIC
LIB = -L/usr/local/lib -lpattern_follower
OS = $(shell uname -s)
ifeq ($(OS), Linux)
    CFLAGS += -D__linux
    EXT = so
else
    CFLAGS += -D__APPLE__
    EXT = dylib
endif

all:
   @rm -f lib/*.$(EXT)
   @rm -f *.o
   g++ $(CFLAGS) -c  v_repExtBubbleRob.cpp  -o v_repExtBubbleRob.o
   g++ $(CFLAGS) -c ../common/scriptFunctionData.cpp -o scriptFunctionData.o
   g++ $(CFLAGS) -c ../common/scriptFunctionDataItem.cpp -o scriptFunctionDataItem.o
   g++ $(CFLAGS) -c ../common/v_repLib.cpp -o v_repLib.o
   @mkdir -p lib
   g++ scriptFunctionData.o scriptFunctionDataItem.o v_repExtBubbleRob.o v_repLib.o -o lib/libv_repExtBubbleRob.$(EXT)  -lpthread -ldl $(LIB) -shared
clean:
   @rm -f lib/*.$(EXT)
   @rm -f *.o


And ldd ouput:

Code: Select all

        linux-vdso.so.1 =>  (0x00007ffc77b91000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f65ac539000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f65ac1b1000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f65abf99000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f65abbd0000)
        /lib64/ld-linux-x86-64.so.2 (0x0000559a22ed1000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f65ab8c7000)


I think I just overlook something in makefile (I'm not quite good in that stuff), but don't know what exactly.