How to run QT application on X-window of the embedded platform
-
Thanks for you help me again.
Now I am more clearer to my question. I will cross-compile QT-lib and QT-application on my X86-computer, and I will download the compiled QT-lib and QT-application on my EVM-board((ARM+Ubuntu+X-window)) to run. So I need using my cross-compilation(linux-arm-gnueabi-g++) to cross-compile.
one question i want to make sure:
[quote author="Serg" date="1337013285"]bq. you should specify target platform as “linux-arm-gnueabi-g++” (not qws),[/quote]
what does this sentence mean? do you mean configure like this:"./configure -xplatform qws/linux-arm-gnueabi-g++". Especially, what does *''(not qws)" *mean?Or you can tell me more details to "./configure", yeah i have check “./configure —help”.
Thank you so much for your warm-heart!!! -
-xplatform used with -embedded only, you should use -platform.
I'm not sure, but I think it will be correct: "./confugure -platform arm-none-linux-gnueabi-g++". Also you should correctly configure environment variables (e.g. CC, LD, etc.) on your host system for cross-compilation (check cross-compiler documentation).
-
Yesterday I tried to compile QT-LIB following what you said. However, when I compiling the qt-everywhere-opensource-src-4.8.1, there is a error :
/home/xushaofan/qt_4.8.1_pkg/qt-x11-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-x11-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-x11-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-x11-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-x11-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-x11-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-x11-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-x11-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-x11-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-x11-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-x11-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-x11-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-x11-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-x11-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")My configure is "./confugure -platform arm-none-linux-gnueabi-g++" as you told me , and I think I configure environment variables correctly.
Can you tell me where someting wrong is? Thank you very much. -
Sorry to reply later beacause I was busy for other things these days.
[quote author="Serg" date="1337231425"]You should use qmake for target platform (that runs on x86, but produces output for arm), not native qmake.[/quote]
I think "qmake" is a tool used for generating Makefile, so it runs on x86, and produces output(Makefile) for X86 not for arm. Is that true?
By the way, I find an other way to get qt-lib for X11 based arm. I link the system with internet, and use “apt-get instal libqt4-dev”, then the ubuntu can download qt-lib for arm. However, when I run a QT test-program(compiled linking downloaded QT-lib) on my system, the program can output a window, but have an error:"undefined symbol: _ZN7QWidget8qwsEventEP8QWSEvent". Can you tell me what wrong about this way to get QT-lib and run QT-program.
Thanks for your warm-heart again!!!
-
bq. I think “qmake” is a tool used for generating Makefile, so it runs on x86, and produces output(Makefile) for X86 not for arm. Is that true?
The qmake tool requires a platform and compiler specific qmake.conf file describing the various default values, to generate the appropriate Makefiles. You should use correct qmake.conf file.
bq. However, when I run a QT test-program(compiled linking downloaded QT-lib) on my system, the program can output a window, but have an error:“undefined symbol: _ZN7QWidget8qwsEventEP8QWSEvent”. Can you tell me what wrong about this way to get QT-lib and run QT-program.
Looks like your program uses QWidget::qwsEvent(), that is not available in non-embedded linux environments. "Check this thread":http://qt-project.org/forums/viewthread/3043 .
-
The first question.
When I use "./configure -xplatform linux-arm-gnueabi-g++ "to configure, there is no error about "/home/xushaofan/qt_4.8.1_pkg/qt-x11-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting “)”)", but it generate an error:"Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/mkspecs/linux-arm-gnueabi-g++."I find the variables of QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 is in the /mkspecs/common/linux.conf, and I change the variables to XLib's path, but this error remain.
How to solve this problem?
-
qt-everywhere-opensource-src-x.y.z/mkspecs directory used for (cross) compiling Qt for various targets.
qt-everywhere-opensource-src-x.y.z/mkspecs/qws directory used for (cross) compiling Qt embedded for various targets.So, I checked "mkspecs directory":http://qt.gitorious.org/qt/qt/trees/4.8/mkspecs and found a mistake.
bq. I’m not sure, but I think it will be correct: “./configure -platform arm-none-linux-gnueabi-g++”.
Correct is: "./configure -platform linux-arm-gnueabi-g++".
-
Correct is: “./configure -platform linux-arm-gnueabi-g++”.
But in /mkspecs directory, there is no folder of "linux-arm-gnueabi-g++",and my qt opensource's version is 4.8.1. So I just copied /mkspecs/qws/linux-arm-gnueabi-g++ to /mkspecs. I think what I did is not true, but I dont know how to get linux-arm-gnueabi-g++ in /mkspecs.
-
About second question.
Your qt test program was built on arm system as a native program? Can you show ldd output?bq. But in /mkspecs directory, there is no folder of “linux-arm-gnueabi-g++”,and my qt opensource’s version is 4.8.1. So I just copied /mkspecs/qws/linux-arm-gnueabi-g++ to /mkspecs. I think what I did is not true, but I dont know how to get linux-arm-gnueabi-g++ in /mkspecs.
Copy it from qt.gitorious, Are you checked the link "mkspecs directory":http://qt.gitorious.org/qt/qt/trees/4.8/mkspecs ?
-
My cross compiler is arm-none-linux-gnueabi-g++ not linux-arm-gnueabi-g++.
I copy the folder of linux-arm-gnueabi-g++ from qt.gitorious to /mkspecs, and I replace "linux-arm-gnueabi-g++" for "arm-none-linux-gnueabi-g++ ". Then I configure "./configure -platform linux-arm-gnueabi-g++",there is two errors:
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/mkspecs/linux-arm-gnueabi-g++.But if I configure "./configure -xplatform linux-arm-gnueabi-g++" after clean configure, there just an error:
Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/mkspecs/linux-arm-gnueabi-g++. -
So, there are two ways:
- Write your own mkspec for arm-none-linux-gnueabi-g++ compiler (or find in google). Then ./configure -arch arm -xplatform arm-none-linux-gnueabi-g++;
- "sudo apt-get install g++-arm-linux-gnueabi" and try to use mkspec from qt.gitorius. Then ./configure -arch arm -xplatform linux-arm-gnueabi-g++.
bq. Basic XLib functionality test failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11
You need to specify X11 include files and libraries, arm libs!
-
You need to specify X11 include files and libraries, arm libs!
================================
I have specified X11 include files and libraries(for arm)' path by modifing linux.conf in /mkspecs/common, but the error remain. Is it right?
It is too later tonight, I will compile QT-lib following what you said tomorrow.
Anyway, thank you help me again and again. -
bq. I have specified X11 include files and libraries(for arm)’ path by modifing linux.conf in /mkspecs/common, but the error remain. Is it right?
I'm think it's right.
This error can be when libXext is missed.
Here is "Qt for X11 requirements":http://qt-project.org/doc/qt-4.8/requirements-x11.html. Ensure that you have all required libs. -
One more question, when I configure my QT-lib compiling using "./configure -xplatform linux-arm-gnueabi-g++",
it outputs "You have not explicitly asked to use pkg-config and are cross-compiling.
pkg-config will not be used to automatically query cflag/lib parameters for
dependencies"
But when I use "./configure", there is no that message.Although it is not en error, I think something is not configured right.
-
After I modified "QMAKE_LIBS_X11 = -lXext -lX11 -lm -lxcb -lpthread-stubs -lXau -lXdmcp " in /mkspecs/common/linux.conf,
now I can configure successfully by using "./configure -arch arm -xplatform linux-arm-gnueabi-g++ -force-pkg-config".However, after I "make", there are some errors:
arm-none-linux-gnueabi-g++ -Wl,-rpath-link,/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.1/lib -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.1/lib -o rsslisting .obj/release-shared/main.o .obj/release-shared/rsslisting.o .obj/release-shared/moc_rsslisting.o -L/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib -lQtXml -L/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib -lQtGui -L/opt/ezsdk_5_03_01_15/linux-devkit/arm-none-linux-gnueabi/usr/lib -lQtNetwork -lQtCore -lpthread
/opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libXrender.so.1, needed by /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so, not found (try using -rpath or -rpath-link)
/opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libXext.so.6, needed by /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so, not found (try using -rpath or -rpath-link)
/opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libX11.so.6, needed by /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so, not found (try using -rpath or -rpath-link)
/opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libxcb.so.1, needed by /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so, not found (try using -rpath or -rpath-link)
/opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libpthread-stubs.so.0, needed by /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so, not found (try using -rpath or -rpath-link)
/opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libXau.so.6, needed by /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so, not found (try using -rpath or -rpath-link)
/opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libXdmcp.so.6, needed by /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so, not found (try using -rpath or -rpath-link)
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXSetTile' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XReparentWindow'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXSetIMValues' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XConvertSelection'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXSetFillStyle' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XUnsetICFocus'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to `XQueryColors' -
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XTranslateCoordinates' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XDeleteProperty'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXSetWMColormapWindows' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XVisualIDFromVisual'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXSetICFocus' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XMaxRequestSize'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXGetErrorDatabaseText' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XUngrabButton'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXOpenIM' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XGetInputFocus'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXCheckTypedEvent' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XDefineCursor'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXSetFunction' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XKillClient'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXRenderCreatePicture' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XVaCreateNestedList'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXGetFontPath' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XShapeCombineRegion'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXSetClipRectangles' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XGetWindowAttributes'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXRemoveFromSaveSet' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XGrabButton'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXGetKeyboardMapping' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XFreePixmap'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXLoadQueryFont' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XFillPolygon'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXUnionRectWithRegion' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XSyncDestroyCounter'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXmbTextPropertyToTextList' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XRenderCreateCursor'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXGetSelectionOwner' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XCloseDisplay'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXSync' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XGetAtomName'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXCheckIfEvent' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XPutImage'
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference toXDrawString16' /home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/lib/libQtGui.so: undefined reference to
XListPixmapFormats'
collect2: ld returned 1 exit status
make[3]: *** [rsslisting] Error 1
make[3]: Leaving directory/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/examples/xml/rsslisting' make[2]: *** [sub-rsslisting-make_default] Error 2 make[2]: Leaving directory
/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/examples/xml'
make[1]: *** [sub-xml-make_default] Error 2
make[1]: Leaving directory `/home/xushaofan/qt_4.8.1_pkg/qt-everywhere-opensource-src-4.8.1/examples'
make: *** [sub-examples-make_default-ordered] Error 2Can you tell me how to eliminate these error?