[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: Compile problems with Qt-3.2.1
From: James Richard Tyrer <tyrerj () acm ! org>
Date: 2003-09-27 19:22:45
[Download RAW message or body]
James Richard Tyrer wrote:
> David Faure wrote:
>
>> On Tuesday 23 September 2003 07:52, James Richard Tyrer wrote:
>>
>>> I have upgraded to Qt-3.2.1 and now I consistently get errors such as
>>> this:
>>>
>>> undefined reference to `QString::setNum(long long, int)
>>>
>>> Specifically, one instance:
>>>
>>> make[4]: Entering directory `/home/CVS/koffice/lib/store'
>>> /bin/sh ../../libtool --silent --mode=link --tag=CXX
>>> /usr/local/bin/g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W
>>> -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500
>>> -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2
>>> -march=k6-3 -mcpu=k6-3 -O2 -Wformat-security
>>> -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
>>> -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
>>> -DQT_NO_TRANSLATION -o libkstore.la -rpath /usr/kde3/lib
>>> -L/usr/X11R6/lib -L/usr/local/qt-3.2.1/lib -L/usr/kde3/lib
>>> -version-info 2:0:0 -L/usr/kde3/lib -no-undefined -Wl,--no-undefined
>>> -Wl,--allow-shlib-undefined koStore.lo koTarStore.lo
>>> koDirectoryStore.lo koZipStore.lo koStoreDrag.lo -lkio
>>> .libs/koStore.o: In function `KoStore::createStore(QString const&,
>>> KoStore::Mode, QCString const&, KoStore::Backend)':
>>> .libs/koStore.o(.text+0x10e): undefined reference to
>>> `QString::setNum(long long, int)'
>>
>>
>> That's in Qt-3.2.1 but not in earlier versions of Qt. So it sounds
>> like it's finding the
>> wrong version of Qt.
>
>
> That sounds logical, but that would mean that: KoStore.o was correctly
> build against Qt-3.2.1 and now it can't find it when it is linked.
> Doesn't make much sense does it??
>
>> I suggest to add -Q -v -Wl,-t to the link line, to see which lib
>> it's picking up.
>
>
> Thanks for your suggestion. it lists the whole command line with:
>
> -L/usr/local/qt-3.1.2/lib
> -L/usr/local/qt-3.2.1/lib
>
> But it only lists 3.2.1 in the list.
>
> So, that is the problem. I must have kdelibs that are still linked
> against 3.1.2.
>
> I thought that I relinked KDE but I checked and it still has: "*.la"
> files with: "qt-3.1.2" in them. :-)
>
> I have a script that deletes all: "*.la*" files that contain a given
> string, but I must have screwed up when I used it.
>
> Thanks again.
After (again)rebuilding/relinking aRts & KDELibs against QT-3.2.1 KOffice
is now building OK. I wonder what I did wrong the first time. :-\
This is certainly something to be on the lookout for since there was no
indication that there was any problem with KDE.
--
JRT
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic