Hi, <br><br>I've made a plugin based on the famous "powerinfo" plugin.<br><br>I compile it with the default Makefile (using gcc) and I put my plugin in the /usr/lib of my computer, olsrd loads it correctly after modifying the /etc/olsrd.conf.
<br><br><br>The problem is when I want to run my plugin in one AccessCube/MeshCube of 4G Systeme (It runs over Nylon 0.8.).<br><br>I crosscompile the plugin with mipsel-linux-gcc and I put it in /usr/lib of my cube, but when I start olsrd it appears the following:
<br><br>---------- Plugin loader ----------<br>Library: olsrd_dani.so.0.1<br>DL loading failed: "olsrd_dani.so.0.1: cannot open shared object file: No such file or directory"!<br>-- PLUGIN LOADING FAILED! --<br>
<br><br>I've tried to specify the full path of the plugin in the olsrd.conf, apart from inserting the path /usr/lib in the /etc/ld.so.conf but it does the same.<br>I'm running the version 0.4.9 of olsrd.<br><br>My Makefile starts as the following:
<br><br>#############################################<br># EXAMPLE MAKEFILE TO CREATE A OLSRD PLUGIN #<br>#############################################<br><br>#Alter this file to fit your needs<br><br>CC ?= ../mipsel-linux-gcc
<br>STRIP ?= strip<br>PLUGINFLAGS = -fPIC -DOLSR_PLUGIN -I/root/Desktop/olsrd-0.4.9/src<br><br>ifeq ($(OS), linux)<br>NAME ?= olsrd_dani.so.0.1<br>LIBDIR ?= $(INSTALL_PREFIX)/usr/lib<br># -fPIC creates position independent code
<br>LIBS ?= -lc -lm<br>CFLAGS ?= -Wall -g -O2 -Wmissing-prototypes -Wstrict-prototypes<br>LDFLAGS ?= -fPIC<br>INSTALL_LIB = install -D -m 755 $(NAME) $(LIBDIR)/$(NAME);\<br> /sbin/ldconfig -n $(LIBDIR)<br>all: plugin
<br>install:install_olsrd<br>endif<br><br><br><br><br><br>Thanks in advance,<br><br clear="all"><br>-- <br>---------------------------------------<br>Dani