[Olsr-users] Help with layer2info plugin

Henning Rogge (spam-protected)
Thu Mar 17 08:40:11 CET 2016


On Wed, Mar 16, 2016 at 9:30 PM, Fábio Carvalho
<(spam-protected)> wrote:
> Yes, i have the liboonf_nl80211_listener.so.0.11.1 on directory build.
>
> When i compile the framework it shows an error about libnl-tiny (not found
> this dependency) but the OLSRv2 page says that i can install libnl-tiny or
> libnl-3

Yes, that is correct.

it checks first for libnl-tiny... if you have it installed the
installation script guesses you want to use it. No other reason to
have it around.
See src-plugins/generic/nl80211_listener/CMakeList.txt

> Git commit: v0.11.1-3-g9c63701, Git version: 0.11.1
> -- Found Doxygen: /usr/bin/doxygen (found version "1.8.6")
> -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
> -- checking for module 'libnl-tiny'

checking for libnl-tiny (mostly OpenWRT).

> --   package 'libnl-tiny' not found

failed.

> -- checking for module 'libnl-genl-3.0'

because of the failed check, see if libnl-genl-3.0-dev is available

> --   found libnl-genl-3.0, version 3.2.21

Yes it is.

> -- Using 'nl-genl-3;nl-3' for nl80211 access

inform the user that libnl3 will be used for nl80211_listener

> -- Configuring done
> -- Generating done
> -- Build files have been written to: /olsrv2/oonf/build
>
> On file /oonf/build/CMakeCache.txt
>
> //Dependencies for the target
> oonf_nl80211_listener_LIB_DEPENDS:STATIC=general;oonf_core;general;oonf_config;general;oonf_common;general;nl-genl-3;general;nl-3;

That looks fine.

The puzzeling question is if nl80211_listener is compiled (so the
nl80211_listener target is available for cmake), why is it not in the
executable.

in src/olsrd2/CMakeList.txt the variable OONF_OPTIONAL_STATIC_PLUGINS
should be set to nl80211_listener when it is not set...

which in turn (in cmake/link_app.cmake, line 41 to 51) should add it
to the "plugin" liust (if it is not already in there).

I have attached a "debug" patch for the build environment... can you
apply it, remove the whole build directory and run "cmake .." on a new
build directory (and post the output here)?

Henning
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake.patch
Type: text/x-patch
Size: 1086 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20160317/cc75de35/attachment-0001.bin>


More information about the Olsr-users mailing list