2011-06-29 21:57:49     Build QT Project error

Document created by Aaronwu Employee on Aug 27, 2013
Version 1Show Document
  • View in full screen mode

2011-06-29 21:57:49     Build QT Project error

bao li (CHINA)

Message: 101876   

 

Hi,

 

  I'm trying to building a qt project with  qt-embedded 4.5.0,but i have the following error:

 

/opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: warning: libQtNetwork.so.4, needed by /home/libao/qt-embedded-linux-opensource-src-4.5.0/lib/libQtGui.so, not found (try using -rpath or -rpath-link)

/home/libao/qt-embedded-linux-opensource-src-4.5.0/lib/libQtGui.so: undefined reference to `QAbstractSocket::readData(char*, long long)'

/home/libao/qt-embedded-linux-opensource-src-4.5.0/lib/libQtGui.so: undefined reference to `QAbstractSocket::socketDescriptor() const'

/home/libao/qt-embedded-linux-opensource-src-4.5.0/lib/libQtGui.so: undefined reference to `QTcpServer::hasPendingConnections() const'

/home/libao/qt-embedded-linux-opensource-src-4.5.0/lib/libQtGui.so: undefined reference to `QAbstractSocket::connected()'

/home/libao/qt-embedded-linux-opensource-src-4.5.0/lib/libQtGui.so: undefined reference to `QTcpSocket::qt_metacast(char const*)'

/home/libao/qt-embedded-linux-opensource-src-4.5.0/lib/libQtGui.so: undefined reference to `QTcpServer::incomingConnection(int)'

/home/libao/qt-embedded-linux-opensource-src-4.5.0/lib/libQtGui.so: undefined reference to `QTcpServer::QTcpServer(QObject*)'

/home/libao/qt-embedded-linux-opensource-src-4.5.0/lib/libQtGui.so: undefined reference to `QTcpSocket::qt_metacall(QMetaObject::Call, int, void**)'

collect2: ld returned 1 exit status

make: *** [bin/ecg] Error 1

 

 

Does someone knows how to solve it?

 

 

 

Best regards,

 

libao.

QuoteReplyEditDelete

 

 

2011-06-29 22:21:50     Re: Build QT Project error

Mike Frysinger (UNITED STATES)

Message: 101877   

 

as the warning says, add -Wl,-rpath-link flags to wherever libQtNetwork.so.4 is located

QuoteReplyEditDelete

 

 

2011-06-29 22:30:33     Re: Build QT Project error

bao li (CHINA)

Message: 101878   

 

I have slove it ,thank you.

Attachments

    Outcomes