Hello!

I would like to compile svn r1189 libtorrent and rtorrent but not want
to install as my installed stable version is working at the moment.
This means that my svn libtorrent include and lib path is not in the
system path but my installed one is there. Configure script write
something about libtorrent_CFLAGS and libtorrent_LIBS but I cannot get
that to work.

Now I am using this at configure step

libtorrent_CFLAGS="-I/root/src/rtorrent/libtorrent-trunk-extended/pkgdir/usr/local/include"
\
libtorrent_LIBS="-L/root/src/rtorrent/libtorrent-trunk-extended/pkgdir/usr/local/lib
-ltorrent" \

and get errors.

I take a look into the Makefile and looks like the order is wrong
because the system path (/usr/local/include) is before my custom path
which means that gcc look the headers in system path instead my custom
path. What I mean, excerpt from Makefile:

CXXFLAGS = -pipe -march=native -O2 -fno-strict-aliasing -pthread
-DNDEBUG
-I/usr/local/include/sigc++-2.0
-I/usr/local/lib/sigc++-2.0/include
-I/usr/local/include
-I/root/src/rtorrent/libtorrent-trunk-extended/pkgdir/usr/local/include
-I/usr/local/include

LIBS = -lncursesw
-L/usr/local/lib -lsigc-2.0
-L/usr/local/lib -lcurl
-L/root/src/rtorrent/libtorrent-trunk-extended/pkgdir/usr/local/lib -ltorrent
-L/usr/local/lib
-Wl,-rpath,/usr/local/lib
-lxmlrpc_server -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok

If I remove the first -I/usr/local/include by hand the compile
finishes successfully but cannot makes executable and gives a lot of
undefined symbol error.

I am using FreeBSD 8.3-RC3. Please help.

Bye,
a
_______________________________________________
Libtorrent-devel mailing list
[email protected]
http://rakshasa.no/mailman/listinfo/libtorrent-devel

Reply via email to