Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, January 2007
problem with qt-4.2 build


Message 1 in thread

Well i downloaded and compiled Qt-4.2 from source code
and was on my way to build qt ruby with it.

and i got an error here:

configure:30741: /bin/sh ./libtool --silent
--mode=link g++ -o conftest -Wnon-virtual-dtor
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wconversion
-Wchar-subscripts -Wall -W -Wpointer-arith -O2 -g -O2
-Wformat-security -Wmissing-format-attribute
-fno-exceptions -fno-check-new -fno-common
-I/opt/qt4//include -I. -I.  -DQT_THREAD_SUPPORT 
-D_REENTRANT  -L/opt/qt4//lib -L/usr/X11R6/lib    
-L/usr/X11R6/lib   conftest.cc  -lQtGui -lpng -lz -lm
-ljpeg -ldl  -lXext -lX11 -lSM -lICE  -lpthread
-lQtGui -lQtCore  1>&5 /tmp/cc7kDRdF.o: In function
`QString':/opt/qt4//include/QtCore/qstring.h:341:
undefined reference to `QString::fromAscii_helper(char
const*, int)'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QDir::toNativeSeparators(QString const&)'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QString::compare(QString const&, Qt::CaseSensitivity)
const'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QAbstractItemModelPrivate::staticEmptyModel()'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QAbstractItemModel::persistentIndexList() const'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QTimeLine::endFrame() const'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QObjectPrivate::clearGuards(QObject*)'
/opt/qt4/lib/libQtGui.so: undefined reference to
`qMetaTypeGuiHelper'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QObject::dynamicPropertyNames() const'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QUrl::hasFragment() const'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QMetaObject::userProperty() const'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QTimeLine::setDuration(int)'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QAbstractItemModel::layoutAboutToBeChanged()'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QObjectPrivate::deleteChildren()'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QCoreApplicationPrivate::attribs'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QTimeLine::~QTimeLine()'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QTimeLine::QTimeLine(int, QObject*)'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QTimeLine::setFrameRange(int, int)'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QTimeLine::stop()'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QDateTimeParser::fieldInfo(int) const'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QTimeLine::currentFrame() const'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QString::compare(QLatin1String const&,
Qt::CaseSensitivity) const'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QTimeLine::start()'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QAbstractItemModel::supportedDragActions() const'
/opt/qt4/lib/libQtGui.so: undefined reference to
`QTimeLine::startFrame() const'
/opt/qt4/lib/libQtGui.so: undefined reference to
`qrand()'
collect2: ld returned 1 exit status
configure:30744: $? = 1
configure: failed program was:
#include "confdefs.h"
#include <QtGui/QPushButton>
 
int main() {
    QPushButton hello("Hello world!");
    hello.resize(100, 30);
 
    return 0;
}
#if ! (QT_VERSION >= 0x040100)
#error 1
#endif
configure:30778: error: Qt (>= Qt 4.1) (library qt)
not found. Please check your installation (and make
sure you compiled Qt with -debug - doing symlinks to a
-release build of Qt4 will introduce breakage, do not
do that -)!
For more details about this problem, look at the end
of config.log.


So looks like qstring.h has a function defined
fromAscii_helper, but as it turns out there is no
implementation of that method.

I start assistant and do a search on
QString::fromAscii_helper and it fetches no results. 

--
 [ signature omitted ] 

Message 2 in thread

On Monday 08 January 2007 20:09, hemant wrote:
> Well i downloaded and compiled Qt-4.2 from source code
> and was on my way to build qt ruby with it.

Did you ask on the qt ruby maillist(s)?

> and i got an error here:
[cut]
> /opt/qt4/lib/libQtGui.so: undefined reference to
> `QDir::toNativeSeparators(QString const&)'
> /opt/qt4/lib/libQtGui.so: undefined reference to
> `QString::compare(QString const&, Qt::CaseSensitivity)
> const'
[cut]

My guess would be: you compile qt ruby with a different version of GCC than 
what you have used to compile Qt itself. At least those errors sound kinda' 
familiar.


	Konrad

Attachment:

Attachment: pgpb41lZsxn4F.pgp
Description: PGP signature


Message 3 in thread

On Jan 8, 2007, at 2:09 PM, hemant wrote:

> Well i downloaded and compiled Qt-4.2 from source code
> and was on my way to build qt ruby with it.
>
> and i got an error here:

I'm going to guess you have multiple versions of Qt on your system.   
The qtruby scripts are probably finding the headers for one version  
and the libraries for another.  Make sure you're explicitly in which  
directories it's looking.

Caleb

--
 [ signature omitted ] 

Message 4 in thread

--- Caleb Tennis <caleb@xxxxxxxxxxxx> wrote:

> 
> On Jan 8, 2007, at 2:09 PM, hemant wrote:
> 
> > Well i downloaded and compiled Qt-4.2 from source
> code
> > and was on my way to build qt ruby with it.
> >
> > and i got an error here:
> 
> I'm going to guess you have multiple versions of Qt
> on your system.   
> The qtruby scripts are probably finding the headers
> for one version  
> and the libraries for another.  Make sure you're
> explicitly in which  
> directories it's looking.
> 
> Caleb
> 

Very true. I managed to fix this problem.




--
 [ signature omitted ]