Page 1 of 1

Plugin couldn't load dependency libraries

Posted: 15 Feb 2017, 23:12
by Haster

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' 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
    CFLAGS += -D__APPLE__
    EXT = dylib

	@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
	@rm -f lib/*.$(EXT)
	@rm -f *.o
And ldd ouput:

Code: Select all =>  (0x00007ffc77b91000) => /lib/x86_64-linux-gnu/ (0x00007f65ac539000) => /usr/lib/x86_64-linux-gnu/ (0x00007f65ac1b1000) => /lib/x86_64-linux-gnu/ (0x00007f65abf99000) => /lib/x86_64-linux-gnu/ (0x00007f65abbd0000)
        /lib64/ (0x0000559a22ed1000) => /lib/x86_64-linux-gnu/ (0x00007f65ab8c7000)
I think I just overlook something in makefile (I'm not quite good in that stuff), but don't know what exactly.