Stuck on compiling (cross-compiling using scratchbox).

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by rb07 »

The way to fix the dynamic library mess on the NAS is using ldconfig (man page):

Code: Select all

ldconfig /opt/lib
I'm assuming your Optware (ipkg) installation is complete, so it created a mount point /opt to the real location (shown in the output of your find command before -- but I don't remember seeing the /opt path so you better check)
Last edited by rb07 on Fri Jun 15, 2012 5:03 pm, edited 1 time in total.
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by rb07 »

I forgot something important, curl needs a special flag to link statically, so this has to be changed:

Code: Select all

LIBCURL_CFLAGS="-I/home/michele/build/transmission-2.52/curl7260/include/ -DCURL_STATICLIB"
michelinok
Posts: 19
Joined: Wed Aug 18, 2010 1:01 pm

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by michelinok »

I'm not using any sort of ipkg...
I'm currently re-downloading everything from scratch....
I had to abandon the "problem" for some days due to some problem at work.... :twisted: :twisted:
I'll let you know how things are going :)
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: Stuck on compiling (cross-compiling using scratchbox).

Post by rb07 »

michelinok wrote:I'm not using any sort of ipkg...
You are right, I misremembered, you showed the output of "find / -name libevent*" which contained:

Code: Select all

/share/MD0_DATA/.qpkg/Transmission/lib/libevent-2.0.so.5.0.1
I confused the .qpkg with the .optware used by the ipkg script.

Anyway, whatever that .qpkg is, it looks like a full installation of transmission and its libraries... perhaps you could use that by just replacing transmission-daemon with the one you built. I don't know how they start that daemon, probably set environment variables like LD_LIBRARY_PATH, or maybe set a chroot environment.
Post Reply