On 09.12.2011 16:24, Artifex Maximus wrote:
On Thu, Dec 8, 2011 at 8:56 AM, Jari Sundell<[email protected]> wrote:
On Wed, Dec 7, 2011 at 7:58 PM, Artifex Maximus<[email protected]> wrote:
Hello!
I wrote a little script for helping on compile git version under
FreeBSD. Need some changes to run on Linux I think. libtorrent is
linked statically so you have to move or symlink only one executable
(rtorrent-git) to the place you want from folder
rtorrent-bin/<timestamp>-git/bin. Useful for using stable and git
branch together. The script written mainly to myself so the code might
fail and looks ugly which I do not care but you might do. You have
been warned. :-)
I was kinda thinking of making something like that script not long ago.
Attached an updated version; uses autogen.sh with proper ACLOCAL_FLAGS
in order to compile on osx, adds support for R/LIBTORRENT_BRANCH to
indicate what branch to use, CXX_STD to set the C++ standard to
compile with and CHECK to enable 'make check'.
LIBTORRENT_BRANCH='c++11' RTORRENT_BRANCH='c++11' CXX='g++-mp-4.6'
CXX_STD='gnu++0x' CHECK=yes ./build-rtorrent
Thanks for the update and I am happy that my script is useful. I made
some changes and now I am able to compile rtorrent-git on FreeBSD
32bit and Debian Wheezy 64bit.
I am not sure how CFLAGS works on 64bit FreeBSD as I have no access to
such system. My Debian 64bit system complains on -march=i686 and
probably 64bit FreeBSD does the same. Debian LDFLAGS must include
-lssl and FreeBSD nicely handle -lssl so I added that to LDFLAGS.
FreeBSD specific flags separated from default flags.
Hi!
Looks like it doesn't work under freebsd amd64
scripts/attributes.m4:110: CC_ATTRIBUTE_UNUSED is expanded from...
configure.ac:115: the top level
configure.ac:20: error: possibly undefined macro: AM_PATH_CPPUNIT
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
ready to configure
+ CFLAGS='-pipe -O2 -pthread -march=i686' CXXFLAGS='-pipe -O2 -pthread
-march=i686 ' LDFLAGS='-s -lssl -lpthread' ./configure
--prefix=/usr/home/emil/build/rtorrent/rtorrent-bin/1323437025-git
--enable-static --disable-shared --disable-debug --disable-extra-debug
--disable-werror --with-kqueue
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
./configure: line 3088: syntax error near unexpected token `1.9.6'
./configure: line 3088: `AM_PATH_CPPUNIT(1.9.6)'
_______________________________________________
Libtorrent-devel mailing list
[email protected]
http://rakshasa.no/mailman/listinfo/libtorrent-devel