Hi guys,
I noticed transmission is still on version 2.32 when version 2.42 is actually out and I wondered why. Well, I'm not wondering anymore: it's a major pain to get it even compiling. And apparently, I'm doing something wrong even though there are no errors during the make anymore.
But first things first: I changed the make/transmission/transmission.mk file to not complain about the latest nightly tar I downloaded and made it fetch that instead of the 2.32 - see Anhang anzeigen 61243 and I deleted the make/transmission/patches folder - no use trying to fine tune when it's not working at all. Since the nightly tarball has to be configured using ./autogen.sh I changed that part of the transmission.mk file as well.
Since transmission wouldn't compile I checked what the problem was: apparently, if I choose
it works, so it must be that 3rd party lib. Right. Reenabled it and ran make, the following error popped up:
Now that's stupid since g++ is installed and working so I checked where that error message comes from: the configure script of transmission (or configure.ac respectively), located in "/home/pk/trunk/source/target-mipsel_uClibc-0.9.31.1/transmission-2.42+" so then I tried figuring out why that stupid check fails and since I still don't understand what exactly it's checking for there I threw out the whole if clause and forced the check to succeed by changing
into
and I also did the same in configure.ac since I don't know if autogen.sh always calls it. Wouldn't want my dirty little hack to be overridden. So now it should always try to build libutp (and it goes "checking µTP... yes" so that's good!).
So now it actually goes on compiling and runs all the way through. It did do some compiling in "source/target-mipsel_uClibc-0.9.31.1/transmission-2.42+/third-party/libutp" as well since there are the new files "libutp.a", "utp.o" and "utp_utils.o".
But now when I flash the image and try to start the transmission-daemon, I get the following error:
Apparently, I haven't fully understood what's happening - where is that libevent error coming from? The library is included in the image, I checked on my box... So maybe I forgot to link it or what? I'm lost. If somebody with more knowledge about cross-compiling and freetz could give me a hint, I'd be very grateful. Thanks in advance!
I noticed transmission is still on version 2.32 when version 2.42 is actually out and I wondered why. Well, I'm not wondering anymore: it's a major pain to get it even compiling. And apparently, I'm doing something wrong even though there are no errors during the make anymore.
But first things first: I changed the make/transmission/transmission.mk file to not complain about the latest nightly tar I downloaded and made it fetch that instead of the 2.32 - see Anhang anzeigen 61243 and I deleted the make/transmission/patches folder - no use trying to fine tune when it's not working at all. Since the nightly tarball has to be configured using ./autogen.sh I changed that part of the transmission.mk file as well.
Since transmission wouldn't compile I checked what the problem was: apparently, if I choose
Code:
$(PKG)_CONFIGURE_OPTIONS += --disable-utp
Code:
checking µTP... configure: error: "Unable to build uTP support -- C++ compiler not found"
Now that's stupid since g++ is installed and working so I checked where that error message comes from: the configure script of transmission (or configure.ac respectively), located in "/home/pk/trunk/source/target-mipsel_uClibc-0.9.31.1/transmission-2.42+" so then I tried figuring out why that stupid check fails and since I still don't understand what exactly it's checking for there I threw out the whole if clause and forced the check to succeed by changing
Code:
if test "x$want_utp" = "xyes" ; then
if test "x$have_utp" = "xyes"; then
LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/"
LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a"
if test "x$libutp_extra_libs" != "x" ; then
LIBUTP_LIBS="$LIBUTP_LIBS $libutp_extra_libs"
fi
$as_echo "#define WITH_UTP 1" >>confdefs.h
build_utp="yes"
else
as_fn_error $? "\"Unable to build uTP support -- C++ compiler not found\"" "$LINENO" 5
fi
fi
Code:
if test "x$want_utp" = "xyes" ; then
LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/"
LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a"
if test "x$libutp_extra_libs" != "x" ; then
LIBUTP_LIBS="$LIBUTP_LIBS $libutp_extra_libs"
fi
$as_echo "#define WITH_UTP 1" >>confdefs.h
build_utp="yes"
fi
So now it actually goes on compiling and runs all the way through. It did do some compiling in "source/target-mipsel_uClibc-0.9.31.1/transmission-2.42+/third-party/libutp" as well since there are the new files "libutp.a", "utp.o" and "utp_utils.o".
But now when I flash the image and try to start the transmission-daemon, I get the following error:
Code:
transmission-daemon: can't load library 'libevent-2.0.so.5'
Starting transmission daemon ... without password protection.. failed.
Apparently, I haven't fully understood what's happening - where is that libevent error coming from? The library is included in the image, I checked on my box... So maybe I forgot to link it or what? I'm lost. If somebody with more knowledge about cross-compiling and freetz could give me a hint, I'd be very grateful. Thanks in advance!