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


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

Linking problem

From Kevin Nathan <knathan@project54.com>
Newsgroups comp.os.linux.development.apps
Subject Linking problem
Date 2011-12-15 00:11 -0700
Message-ID <20111215001104.13eda1b8@efreet.linux> (permalink)

Show all headers | View raw


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. The previous maintainer left
no notes on how he was doing this. The current autoconf/automake system
does not allow running on slightly older systems or newer KDE
4.x/Qt4.0, at least not when I compile it. We have some clients that
are running the older systems and we cannot make them upgrade, so I am
stuck trying to support them.

I've never had to do this before, since my other projects have all
mandated certain minimum versions. I figured I could set up a directory
in the user's home with all the libs/includes I need for the current
version so the system versions wouldn't matter. Is this possible? If
so, where can I find info on doing this? None of my searching for the
last few days has shown me the path. I thought I could use
--sysroot=DIR and re-compiled the toolchain to allow that, but it still
links with the system lib locations. 

What I have right now is:

   /home/username/progroot

with the system dirs copied below it (lib/, usr/lib, etc.) and use
--sysroot=/home/username/progroot. When checking with ldd, instead of
seeing /home/username/progroot/usr/lib/libraryname.so, I am still
seeing /usr/lib/libraryname.so.

I am beginning to lose my eyesight after reading docs on the GNU
website and others. If someone can point me to a page, or pages, that
cover this, I would be extremely grateful!


-- 
Kevin Nathan (Arizona, USA)  

Open standards. Open source. Open minds. 
The command line is the front line.
Linux 2.6.37.6-0.9-desktop
 23:41pm  up 4 days 10:51,  13 users,  load average: 0.00, 0.01, 0.08

Back to comp.os.linux.development.apps | Previous | NextNext 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