Shivakvs

Let's share my code

Qt June 14, 2010

Filed under: Qt Programming — myworldkvs @ 2:46 pm

Qt Config parameters:

Cross Compile the Qt Source code:


./configure -arch arm -xplatform qws/linux-arm-g++ -prefix /usr/local/ -little-endian -armfpa -qt-mouse-tslib -L-lts -no-qt3support -no-largefile -optimized-qmake -no-sm

Qt compilation error:

/qt-x11-opensource-src-4.5.3/lib/libQtGui.so: undefined reference to `XShmDetach'
/qt-x11-opensource-src-4.5.3/lib/libQtGui.so: undefined reference to `XShapeCombineRegion'
/qt-x11-opensource-src-4.5.3/lib/libQtGui.so: undefined reference to `XShapeCombineMask'
/qt-x11-opensource-src-4.5.3/lib/libQtGui.so: undefined reference to `XShmCreateImage'
/qt-x11-opensource-src-4.5.3/lib/libQtGui.so: undefined reference to `XShmAttach'
/qt-x11-opensource-src-4.5.3/lib/libQtGui.so: undefined reference to `XShmQueryVersion'
/qt-x11-opensource-src-4.5.3/lib/libQtGui.so: undefined reference to `XShmCreatePixmap'

Solution:

Linking problem: add -lXext to the linker options(QMAKE_LIBS_X11).

Advertisement
 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.