Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.apps > #329

Re: Linking problem

From Rainer Weikusat <rweikusat@mssgmbh.com>
Newsgroups comp.os.linux.development.apps
Subject Re: Linking problem
Date 2011-12-16 00:47 +0000
Message-ID <874nx17375.fsf@sapphire.mobileactivedefense.com> (permalink)
References <20111215001104.13eda1b8@efreet.linux> <8762himaw3.fsf@sapphire.mobileactivedefense.com> <20111215162948.60b95d1c@efreet.linux>

Show all headers | View raw


Kevin Nathan <knathan@project54.com> writes:
> On Thu, 15 Dec 2011 09:39:40 +0000
> Rainer Weikusat <rweikusat@mssgmbh.com> wrote:
>
>>Kevin Nathan <knathan@project54.com> writes:
>>> I have just been tasked with maintaining a KDE/Qt app originally
>>> written in 2004/2005 and parts of it updated in 2009. It is currently
>>> compiling on a KDE 3.5.7 and Qt 3.0 system and needs to be able to
>>> run on systems with various versions of KDE.
>>
>>Chances are that the -rpath or -R linker options do what you
>>need. You'll have to ship the libraries and the binaries which need 
>>them and know the place where the libraries will be installed. 
>
> I already have this ready, by copying everything necessary under the
> home dir and will have an install CD for them to run. It's been years
> since I built an RPM, so that is next on my list. :-)
>
>>The compiler will also need suitable -I options to find the 'custom'
>>headers and the linker additional -L to find them at link time.
>>
>
> I've noticed that the "--sysroot" puts the -R in front of the header
> includes, so I just have to figure out what I am missing during the
> linking step. My current problem here is to inhibit the system
> libraries. I've added the LDFLAGS=--sysroot=DIR but I must be missing
> something. I will be digging into it more, tonight.

Forget --sysroot. You need to add your include directories with -I,
add your library directories with -L and add them again with -Wl,-R
and that's it. If the binaries are still linked against system
libraries you don't want, something is still missing in your custom
library directory.

Back to comp.os.linux.development.apps | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Linking problem Kevin Nathan <knathan@project54.com> - 2011-12-15 00:11 -0700
  Re: Linking problem Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-12-15 09:39 +0000
    Re: Linking problem Kevin Nathan <knathan@project54.com> - 2011-12-15 16:29 -0700
      Re: Linking problem Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-12-16 00:47 +0000
        Re: Linking problem Kevin Nathan <knathan@project54.com> - 2011-12-15 23:42 -0700
          Re: Linking problem Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-12-16 17:46 +0000
            Re: Linking problem Kevin Nathan <knathan@project54.com> - 2011-12-16 10:55 -0700
            Re: Linking problem Kevin Nathan <knathan@project54.com> - 2012-01-01 10:49 -0700
          Re: Linking problem Lusotec <nomail@nomail.not> - 2011-12-19 00:27 +0000
            Re: Linking problem Kevin Nathan <knathan@project54.com> - 2011-12-19 10:16 -0700

csiph-web