买了《嵌入式LINUX应用开发完全手册》,我按照p509页配置编译Qtopia时,出现了错误。下面的是完整的配置编译信息,请各位看看我是哪个地方出了问题:
hujunli@hujunli-desktop

/work/GUI/qtopia-free-2.2.0$ ./configure -qte '-embedded -no-xft -xplatform linux-arm-g++ -qconfig qpe -depths 16,32 -no-qvfb -system-jpeg -gif' -qpe '-xplatform linux-arm-g++ -edition pda -displaysize 240x320' -qt2 '-no-xft' -dqt '-no-xft'
This is the Qtopia Free Edition.
You are licensed to use this software under the terms of
the Qtopia Free Edition License.
Type '?' to view the Qtopia Free Edition License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.
Do you accept the terms of the Qtopia Free Edition License? yes
WARNING: Qtopia does not support x86_64. Checking your -platform and -xplatform arguments.
Qt 2 is using -platform linux-32-g++
Qt 3 is using -platform linux-g++-32
Qt/E is using -platform linux-32-g++
Qt/E is using -xplatform linux-arm-g++
Qtopia is using -platform linux-g++-32
Qtopia is using -xplatform linux-arm-g++
Using the following configurations:
QPE_CFG=" '-edition' 'pda' '-displaysize' '240x320' -no-qtopiadesktop -release -platform 'linux-g++-32' -xplatform 'linux-arm-g++'"
QTE_CFG="'-embedded' '-no-xft' '-qconfig' 'qpe' '-depths' '16,32' '-no-qvfb' '-system-jpeg' '-gif' -release -platform 'linux-32-g++' -xplatform 'linux-arm-g++'"
QT2_CFG="-no-xft -platform 'linux-32-g++'"
DQT_CFG="-no-xft -platform 'linux-g++-32'"
Qtopia is now configured.
Type "make" to build the qtopia bundle (and the tools, if required).
Type "make install" to install Qtopia.
Type "make cleaninstall" to install Qtopia after removing the image first (avoid stale files in the image).
Type "make clean" to clean the qtopia bundle.
Type "make tools" to build the tools bundle.
Type "make cleantools" to clean the tools bundle.
To manually build a particular component (eg. because it failed to build)
source the set...Env script. eg. . ./setQpeEnv; cd $QPEDIR; make
hujunli@hujunli-desktop

/work/GUI/qtopia-free-2.2.0$ make
/home/hujunli/work/GUI/qtopia-free-2.2.0/qtopia/scripts/buildQtopia
Building Qtopia Tools.
***********************************
********* Build Qt 2 **************
***********************************
QT2_CFG="-no-xft -platform 'linux-32-g++'"
This is the Qt Free Edition.
You are licensed to use this software under the terms of either
the Q Public License (QPL) or the GNU General Public License (GPL).
Type 'Q' to view the Q Public License.
Type 'G' to view the GNU General Public License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.
Do you accept the terms of the license?
/usr/lib/libGLU.so is a threaded library, Qt needs to be as well.
symlink created for src/tools/qconfig-qpe.h
Build type: linux-32-g++-shared
Thread support..................... no
GIF support........................ no
MNG support........................ no
JPEG support....................... no
OpenGL support .................... no
NAS sound support.................. no
Session management................. yes
Xft support (Anti-Aliased Fonts) .. no
XKB support ....................... yes
Creating makefiles...
Qt is now configured for building. Just run make.
To reconfigure, run make clean and configure.
make[1]: 正在进入目录 `/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/src/moc'
g++ -m32 -o ./moc mocgen.o qbuffer.o qcollection.o qcstring.o qdatastream.o qdatetime.o qfile.o qgarray.o qgdict.o qglist.o qglobal.o qgvector.o qiodevice.o qregexp.o qstring.o qtextcodec.o qtextstream.o qutfcodec.o qfile_unix.o
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.so when searching for -lstdc++/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.a when searching for -lstdc++/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.so when searching for -lstdc++/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.a when searching for -lstdc++/usr/bin/ld: cannot find -lstdc++collect2: ld 返回 1make[1]: *** [moc] 错误 1make[1]:正在离开目录 `/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/src/moc'* ---------------------------------------------------------------------------
*
* ERROR: Building Qtopia Tools has failed.
*
* Please investigate the problem by looking at the error messages in the
* make output.
* The Qtopia tools can be build using the separate buildQtopiaTools script
* which can be found in the qtopia/scripts directory of the package. The
* script is also invoked with the command 'make tools' from the package root
* directory.
*
* On most machines the default configuration options in the script works fine.
* In case this doesn't work the configure parameters in the buildQtopiaTools
* script need to be tweaked to fit the environment/compiler used on the machine
* and then run manually from the cmd line.
*
* Please make sure that the following binaries exist before trying to build
* Qtopia:
* /home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/bin/moc
* /home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/bin/uic
* /home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/bin/qvfb
* /home/hujunli/work/GUI/qtopia-free-2.2.0/dqt/bin/lrelease
* /home/hujunli/work/GUI/qtopia-free-2.2.0/dqt/bin/lupdate
*
* As a rule, these tools need to be built only once.
*
******************************************************************************
***********************************
********* Build Qt 3 **************
***********************************
DQT_CFG="-no-xft -platform 'linux-g++-32'"
WARNING: /usr/lib/libGLU.so is threaded!
The Qt OpenGL module requires Qt to be configured with -thread.
This is the Qt/X11 Open Source Edition.
You are licensed to use this software under the terms of either
the Q Public License (QPL) or the GNU General Public License (GPL).
Type 'Q' to view the Q Public License.
Type 'G' to view the GNU General Public License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.
Do you accept the terms of either license?
Creating qmake. Please wait...
make[1]: 正在进入目录 `/home/hujunli/work/GUI/qtopia-free-2.2.0/dqt/qmake'
g++ -o qmake project.o property.o main.o makefile.o unixmake2.o unixmake.o msvc_nmake.o borland_bmake.o mingw_make.o msvc_dsp.o msvc_vcproj.o option.o winmakefile.o projectgenerator.o metrowerks_xml.o pbuilder_pbx.o msvc_objectmodel.o meta.o qtmd5.o qstring.o qtextstream.o qiodevice.o qglobal.o qgdict.o qcstring.o qdatastream.o qgarray.o qbuffer.o qglist.o qptrcollection.o qfile.o qfile_unix.o qregexp.o qgvector.o qgcache.o qbitarray.o qdir.o quuid.o qfileinfo_unix.o qdir_unix.o qfileinfo.o qdatetime.o qstringlist.o qmap.o qconfig.o qunicodetables.o qsettings.o qlocale.o -m32
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.so when searching for -lstdc++/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.a when searching for -lstdc++/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.so when searching for -lstdc++/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.a when searching for -lstdc++/usr/bin/ld: cannot find -lstdc++collect2: ld 返回 1make[1]: *** [qmake] 错误 1make[1]:正在离开目录 `/home/hujunli/work/GUI/qtopia-free-2.2.0/dqt/qmake'
qmake failed to build. Aborting.
* ---------------------------------------------------------------------------
*
* ERROR: Building Qtopia Tools has failed.
*
* Please investigate the problem by looking at the error messages in the
* make output.
* The Qtopia tools can be build using the separate buildQtopiaTools script
* which can be found in the qtopia/scripts directory of the package. The
* script is also invoked with the command 'make tools' from the package root
* directory.
*
* On most machines the default configuration options in the script works fine.
* In case this doesn't work the configure parameters in the buildQtopiaTools
* script need to be tweaked to fit the environment/compiler used on the machine
* and then run manually from the cmd line.
*
* Please make sure that the following binaries exist before trying to build
* Qtopia:
* /home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/bin/moc
* /home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/bin/uic
* /home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/bin/qvfb
* /home/hujunli/work/GUI/qtopia-free-2.2.0/dqt/bin/lrelease
* /home/hujunli/work/GUI/qtopia-free-2.2.0/dqt/bin/lupdate
*
* As a rule, these tools need to be built only once.
*
******************************************************************************
***********************************
********* Build Qt/Embedded *******
***********************************
QTE_CFG="'-embedded' '-no-xft' '-qconfig' 'qpe' '-depths' '16,32' '-no-qvfb' '-system-jpeg' '-gif' -release -platform 'linux-32-g++' -xplatform 'linux-arm-g++'"
This is the Qt/Embedded Free Edition.
You are licensed to use this software under the terms of
the GNU General Public License (GPL).
Type 'G' to view the GNU General Public License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.
Do you accept the terms of the license?
symlink created for src/tools/qconfig-qpe.h
Building on: linux-32-g++-shared
Building for: linux-arm-g++-shared
Thread support..................... no
Configuration...................... qconfig-qpe.h
Creating makefiles...
Qt is now configured for building. Just run make.
To reconfigure, run make clean and configure.
make[1]: 正在进入目录 `/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/src'
echo '#include "kernel/qt.h"' >allmoc.cpp
arm-linux-g++ -E -DQT_MOC_CPP -I/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -DNO_DEBUG -fPIC -DQT_NO_QWS_SNAP -DQT_NO_QWS_VOODOO3 -DQT_NO_QWS_MACH64 -DQT_NO_QWS_MATROX -DQT_NO_QWS_VNC -DQT_NO_QWS_VGA_16 -DQT_NO_QWS_DEPTH_4 -DQT_NO_QWS_DEPTH_8 -DQT_NO_QWS_DEPTH_18 -DQT_NO_QWS_DEPTH_24 -DQT_NO_QWS_VFB -DQT_BUILTIN_GIF_READER=1 -DQT_NO_IMAGEIO_MNG -DQT_NO_SM_SUPPORT -DQT_NO_XKB -I/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/src/3rdparty/zlib
-I/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/src/3rdparty/libpng -I/usr/X11R6/include -I3rdparty/kernel -I3rdparty/tools >allmoc.h allmoc.cpp/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/bin/moc -o allmoc.cpp allmoc.hmake[1]: /home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/bin/moc:命令未找到make[1]: *** [allmoc.cpp] 错误 127make[1]:正在离开目录 `/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/src'
***********************************************************************
*
* ERROR: Building Qtopia has failed.
*
* Please search the make output for any error messages.
*
* Hint: If the configuration has changed since the last successfull
* build consider using make clean to ensure that all binaries
* are rebuilt using the new configuration.
*
* For more information about the build process please use a browser
* and go to the getting started section in:
* /home/hujunli/work/GUI/qtopia-free-2.2.0/qtopia/doc/html/index.html
*
***********************************************************************
***********************************
********* Build Qtopia ************
***********************************
QPE_CFG=" '-edition' 'pda' '-displaysize' '240x320' -no-qtopiadesktop -release -platform 'linux-g++-32' -xplatform 'linux-arm-g++'"
The following configuration values have been guessed or autodetected:
-arch arm
-fontfamilies helvetica fixed micro smallsmooth smoothtimes
-fontsizes all
-fontstyles 50 50i 75 75i
-languages en_US
WARNING: defaultbuttons-arm.conf does not exist.
Symlinking header files to include directory
Creating qmake...make[1]: 正在进入目录 `/home/hujunli/work/GUI/qtopia-free-2.2.0/qtopia/qmake'
./usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++collect2: ld 返回 1make[1]: *** [/home/hujunli/work/GUI/qtopia-free-2.2.0/qtopia/bin/qmake] 错误 1make[1]:正在离开目录 `/home/hujunli/work/GUI/qtopia-free-2.2.0/qtopia/qmake'Failed to make qmake ***********************************************************************
*
* ERROR: Building Qtopia has failed.
*
* Please search the make output for any error messages.
*
* Hint: If the configuration has changed since the last successfull
* build consider using make clean to ensure that all binaries
* are rebuilt using the new configuration.
*
* For more information about the build process please use a browser
* and go to the getting started section in:
* /home/hujunli/work/GUI/qtopia-free-2.2.0/qtopia/doc/html/index.html
*
***********************************************************************
hujunli@hujunli-desktop

/work/GUI/qtopia-free-2.2.0$
我的主机开发环境是ubuntu8.04 amd64,这一步前面的步骤都已经通过,是不是因为我装的是amd64的ubuntu,导致有些文件不能编译?配置的过程中也出现了警告。baidu,google了半天也没有找到解决方法

,请各位看看问题出在哪里?