[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-linux
Subject:    Re: [kde-linux] Re: Problems upgrading Qt
From:       Jan Simonson <nytt () simonson ! se>
Date:       2003-09-30 10:22:22
[Download RAW message or body]

tisdagen den 30 september 2003 08.22 skrev James Richard Tyrer:
> Stampede wrote:
> > James Richard Tyrer wrote:
> >> Tom Wesley wrote:
> >>> On Saturday 27 September 2003 21:01, James Richard Tyrer wrote:
> >>>> I upgraded from Qt-3.1.2 to Qt-3.2.1 and now I get this error
> >>>> when starting some applications:
> >>>>
> >>>> relocation error: /usr/kde3/lib/libkdecore.so.4: undefined
> >>>> symbol: _ZN7QString6setNumExi
> >>>>
> >>>> Is there some simple way to avoid this problem?
> >>>>
> >>>> -- JRT
> >>>
> >>> The version of KDE you are using will need to be compiled
> >>> against qt-3.2, and if I recall correctly 3.1.4 is the first
> >>> stable to do such....
> >>
> >> Yes, I rebuilt my KDE-3.1.4 CVS tree against Qt-3.2.1 and that
> >> is when the problem started.
> >
> > Do you have multiple versions of Qt installed?
>
> Yes, I didn't remove the old version yet.  I have apps linked to
> it.
>
> > Are you sure the same library is being referenced both at compile
> > and runtime
>
> I'm not sure what happened but I have been tracking down all of
> the: "*.la" files that contain a reference to the old version and
> relinking the associated library.
>
> But, the question remains, is there a way to avoid this problem
> when you upgrade Qt.

For quite some time now I have used a system which works well for me:

In /usr/local I have different qt's ie /usr/local/qt-3.1.2  /usr/
local/qt-3.2.0 /usr/local/qt-3.2.1 and so on. When there is a new 
version available I unpack and compile it in yet another directory 
like the above. 

In /usr I have a link pointing to the qt in use like /usr/qt --> /usr/
local/qt-3.2.1 right now. When I want to use a new qt I just remove 
this link and make a new one to the new qt. Should there be any 
problems it's quite easy to restore it to the one used before.
When everything works fine I rename the old qt to /usr/local/
qt-3.1.2.tabort (tabort = remove in swedish) and leave it like that 
for a while before finally removing it. During this period I notice 
any references to the old qt and it's easy to resolv them.

In /etc/profile I have a simple QTDIR="/usr/qt" (and a KDEDIR="/usr/
kde" as I use the same system for kde). When I want to use different  
qt (not the systemwide) for a user I just edit the .bash_profile for 
that user.

Hope this can be of any help.

Regards,
Jan
-- 
Jan Simonson

___________________________________________________
This message is from the kde-linux mailing list.
Account management:  http://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic