• 6742阅读
  • 1回复

MAKE Qt-2.2.0出错,按照韦哥的书,想编译一个ARM用QT [复制链接]

上一主题 下一主题
离线yankaga
 
只看楼主 倒序阅读 楼主  发表于: 2009-11-25
从红色字幕开始处出现错误,之前有其他错误,但是已经修改过,希望各位大大帮助下

小弟我是初学者,什么都还不懂,希望大侠们教教小弟。

系统是FEDORA11的。


make[6]: Entering directory `/home/jjyang/qtopia/src/qtopia-free-2.2.0/qtopia/src/tools/qcop'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/home/jjyang/qtopia/src/qtopia-free-2.2.0/qtopia/src/tools/qcop'
make[5]: Leaving directory `/home/jjyang/qtopia/src/qtopia-free-2.2.0/qtopia/src/tools/qcop'
cd tools/qdawggen && make -f Makefile
make[5]: Entering directory `/home/jjyang/qtopia/src/qtopia-free-2.2.0/qtopia/src/tools/qdawggen'
make[6]: Entering directory `/home/jjyang/qtopia/src/qtopia-free-2.2.0/qtopia/src/tools/qdawggen'
test -d ../../../bin/ || mkdir -p ../../../bin/
g++  -o ../../../bin/qdawggen .obj/release-shared/main.o .obj/release-shared/qdawg.o .obj/release-shared/qmemoryfile.o .obj/release-shared/global.o .obj/release-shared/qmemoryfile_unix.o   -L/home/jjyang/qtopia/src/qtopia-free-2.2.0/dqt/lib -L/usr/X11R6/lib -L/home/jjyang/qtopia/src/qtopia-free-2.2.0/qtopia/lib -L/home/jjyang/qtopia/src/qtopia-free-2.2.0/qt2/lib -lqt-mt -lXext -lX11 -lm -lpthread
.obj/release-shared/main.o:(.rodata._ZTV6QGList[vtable for QGList]+0x18): undefined reference to `QPtrCollection::newItem(void*)'
.obj/release-shared/main.o:(.rodata._ZTI6QGList[typeinfo for QGList]+0x8): undefined reference to `typeinfo for QPtrCollection'
.obj/release-shared/qdawg.o: In function `QDawg::createFromWords(QStringList const&)':
qdawg.cpp:(.text+0x36d5): undefined reference to `QString::QString(QMemArray<char> const&)'
.obj/release-shared/qdawg.o:(.rodata._ZTV8QIntDictI10QValueListIP5QTrieEE[vtable for QIntDict<QValueList<QTrie*> >]+0x18): undefined reference to `QPtrCollection::newItem(void*)'
.obj/release-shared/qmemoryfile_unix.o: In function `QMemoryFile::openData(QString const&, int, unsigned int)':
qmemoryfile_unix.cpp:(.text+0x486): undefined reference to `QString::operator+=(char const*)'
.obj/release-shared/qmemoryfile_unix.o: In function `operator+(QString const&, char const*)':
qmemoryfile_unix.cpp:(.text._ZplRK7QStringPKc[operator+(QString const&, char const*)]+0x37): undefined reference to `QString::fromAscii(char const*, int)'

collect2: ld 返回 1
make[6]: *** [../../../bin/qdawggen] 错误 1
make[6]: Leaving directory `/home/jjyang/qtopia/src/qtopia-free-2.2.0/qtopia/src/tools/qdawggen'
make[5]: *** [all] 错误 2
make[5]: Leaving directory `/home/jjyang/qtopia/src/qtopia-free-2.2.0/qtopia/src/tools/qdawggen'
make[4]: *** [sub-tools-qdawggen] 错误 2
make[4]: Leaving directory `/home/jjyang/qtopia/src/qtopia-free-2.2.0/qtopia/src'
make[3]: *** [sub-src-components_pro] 错误 2
make[3]: Leaving directory `/home/jjyang/qtopia/src/qtopia-free-2.2.0/qtopia/src'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/home/jjyang/qtopia/src/qtopia-free-2.2.0/qtopia/src'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/home/jjyang/qtopia/src/qtopia-free-2.2.0/qtopia'

***********************************************************************
*  
*                  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/jjyang/qtopia/src/qtopia-free-2.2.0/qtopia/doc/html/index.html
*  
***********************************************************************
离线yankaga
只看该作者 1楼 发表于: 2009-11-25
关于之前报出的如下错误,小弟去网上下载了一个page.h文件并放入/usr/include/asm/下面,但是不知道对不对?

g++  -c -I/home/jjyang/qtopia/src/qtopia-free-2.2.0/qt2/include -pipe -O2 -Wall -W -DNO_DEBUG -I/home/jjyang/qtopia/src/qtopia-free-2.2.0/qt2/src/3rdparty/libpng -o qvfbview.o qvfbview.cpp
qvfbview.cpp:39:22: 错误:asm/page.h:没有那个文件或目录
In file included from qvfbview.cpp:27:
/home/jjyang/qtopia/src/qtopia-free-2.2.0/qt2/include/qimage.h: In member function ‘int QImageTextKeyLang::operator<(const QImageTextKeyLang&) const’:
/home/jjyang/qtopia/src/qtopia-free-2.2.0/qt2/include/qimage.h:58: 警告:建议在‘||’的操作数中出现的‘&&’前后加上括号
qvfbview.cpp: In constructor ‘QVFbView::QVFbView(int, int, int, int, QVFbView::Rotation, bool, QWidget*, const char*, uint)’:
qvfbview.cpp:138: 错误:‘PAGE_SIZE’在此作用域中尚未声明


make[1]: *** [qvfbview.o] 错误 1
make[1]: Leaving directory `/home/jjyang/qtopia/src/qtopia-free-2.2.0/qt2/tools/qvfb'
* ---------------------------------------------------------------------------
*
*               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/jjyang/qtopia/src/qtopia-free-2.2.0/qt2/bin/moc
*   /home/jjyang/qtopia/src/qtopia-free-2.2.0/qt2/bin/uic
*   /home/jjyang/qtopia/src/qtopia-free-2.2.0/qt2/bin/qvfb
*   /home/jjyang/qtopia/src/qtopia-free-2.2.0/dqt/bin/lrelease
*   /home/jjyang/qtopia/src/qtopia-free-2.2.0/dqt/bin/lupdate
*
* As a rule, these tools need to be built only once.
*
******************************************************************************
快速回复
限100 字节
 
上一个 下一个