[olsr-dev] Problems loading a plugin in an AccessCube/MeshCube of 4G Systeme

Daniel Ruiz López (spam-protected)
Fri Jan 27 17:53:10 CET 2006


Hi,

I've made a plugin based on the famous "powerinfo" plugin.

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.


The problem is when I want to run my plugin in one AccessCube/MeshCube of 4G
Systeme (It runs over Nylon 0.8.).

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:

---------- Plugin loader ----------
Library: olsrd_dani.so.0.1
DL loading failed: "olsrd_dani.so.0.1: cannot open shared object file: No
such file or directory"!
-- PLUGIN LOADING FAILED! --


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.
I'm running the version 0.4.9 of olsrd.

My Makefile starts as the following:

#############################################
# EXAMPLE MAKEFILE TO CREATE A OLSRD PLUGIN #
#############################################

#Alter this file to fit your needs

CC ?= ../mipsel-linux-gcc
STRIP ?= strip
PLUGINFLAGS =  -fPIC -DOLSR_PLUGIN -I/root/Desktop/olsrd-0.4.9/src

ifeq ($(OS), linux)
NAME ?= olsrd_dani.so.0.1
LIBDIR ?= $(INSTALL_PREFIX)/usr/lib
# -fPIC creates position independent code
LIBS ?= -lc -lm
CFLAGS ?= -Wall -g -O2 -Wmissing-prototypes -Wstrict-prototypes
LDFLAGS ?= -fPIC
INSTALL_LIB = install -D -m 755 $(NAME) $(LIBDIR)/$(NAME);\
        /sbin/ldconfig -n $(LIBDIR)
all:    plugin
install:install_olsrd
endif





Thanks in advance,

--
---------------------------------------
Dani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20060127/7c45f6a8/attachment.html>


More information about the Olsr-dev mailing list