Hi all:
I'm trying to link external libraries in ns-3 but I am not able.
I have try lots of different ways based on many external libraries (like GSL, libxml2, sqlite3,...) used in ns-3 by looking wscript files.
I want to use libxml++ to work with flow monitor xml files.
I have my own files in src/contrib and it worked propertly.
I introduce in src/contrib/wscript file those lines (based on how stats includes sqlite3):
conf.env['LIBXML++'] = conf.check(lib='libxml++', define_name='LIBXML++', uselib='LIBXML++')
conf.report_optional_feature("libxml++", "Lib XML ++",
conf.env['LIBXML++'],
"library 'libxml++' not found")
./waf configure shows the following:
patxi@patxi-HPCompaq:~/pfc/ns-allinone-3.6/ns-3.6$ ./waf configure
Checking for program g++ : ok /usr/bin/g++
Checking for program cpp : ok /usr/bin/cpp
Checking for program ar : ok /usr/bin/ar
Checking for program ranlib : ok /usr/bin/ranlib
Checking for g++ : ok
Checking for program pkg-config : ok /usr/bin/pkg-config
Checking for regression reference traces : ok ../ns-3.6-ref-traces (guessed)
Checking for -Wno-error=deprecated-declarations support : yes
Checking for -Wl,--soname=foo support : yes
Checking for header stdlib.h : ok
Checking for header signal.h : ok
Checking for header pthread.h : ok
Checking for high precision time implementation : 128-bit integer
Checking for header stdint.h : ok
Checking for header inttypes.h : ok
Checking for header sys/inttypes.h : not found
Checking for library rt : ok
Checking for header netpacket/packet.h : ok
Checking for header linux/if_tun.h : ok
Checking for pkg-config flags for GTK_CONFIG_STORE : ok
Checking for pkg-config flags for LIBXML2 : ok
Checking for library libxml++ : not found
---- Summary of optional NS-3 features:
...
GtkConfigStore : enabled
XmlIo : enabled
Lib XML ++ : not enabled (library 'libxml++' not found)
SQlite stats data output : enabled
...
I found the library (ubuntu 8.10) in the shown folder:
/usr/include/libxml++-2.6/libxml++/libxml++.h
I also tryed putting libxml++-2.6 instead, the absolute path...
I'm spending to much time to go nowhere.
I hope that a more experenced ns-3 (waf) user could give me a hand.
I shouldn't be so difficult, but I can't.
Thanks in advance.
Patxi
--
Patxi Azpiroz De Pedro