标题:RedHat9.0上安装qtopia-opensource-src-4.2.1的错误请教
作者:duancp
日期:2008-10-06 14:43
内容:
我在RedHat9.0上安装qtopia-opensource-src-4.2.1.tar.gz时碰到了下面的问题(configure的时候通过,但是make的时候出现错误),请问我该怎么解决?
compiling/mnt/nfs/qtopiatslibinstall/qtopiacore/qt/src/corelib/io/qfsfileengine_unix.cpp
linking ../../../bin/moc
/usr/bin/ld: release-shared/moc.o: Relocations in generic ELF (EM: 40)
release-shared/moc.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[6]: *** [../../../bin/moc] Error 1
make[6]: Leaving directory `/mnt/nfs/qtopiatslibinstall/qtopiacore/host/src/tools/moc'
make[5]: *** Error 2
make[5]: Leaving directory `/mnt/nfs/qtopiatslibinstall/src/tools/qt/moc'
make[4]: *** Error 2
make[4]: Leaving directory `/mnt/nfs/qtopiatslibinstall/src/tools/qt/moc'
make[3]: *** Error 2
make[3]: Leaving directory `/mnt/nfs/qtopiatslibinstall/src'
make[2]: *** Error 2
make[2]: Leaving directory `/mnt/nfs/qtopiatslibinstall/src'
make[1]: *** Error 2
make[1]: Leaving directory `/mnt/nfs/qtopiatslibinstall'
make: *** Error 2
#1 [axlrose 10-08 21:30]
换个新发行版吧,RH9 太老了,可以考虑 ubuntu, fedora等发行版,更推荐gentoo
先解决包依赖问题,然后慢慢安,我前段时间安了 qtopia-core ,中间遇到些问题,
以下是之前记录的一些东西,不知道对你有用不,
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin 为host交叉编译器目录,
拷一个最相近的修改 /opt/qtopia/embedded_qtopia/qtopia-opensource-4.2.4/qtopiacore/qt/mkspecs/qws/linux-arm_v5t_le-g
*******************************************************************************
Qtopia Core (target) is configured
*******************************************************************************
ERROR: You must provide custom files in the following locations:
/opt/qtopia/embedded_qtopia/qtopia-opensource-4.2.4/src/libraries/qtopiabase/custom-linux-arm_v5t_le-g++.h
/opt/qtopia/embedded_qtopia/qtopia-opensource-4.2.4/src/libraries/qtopiabase/custom-linux-arm_v5t_le-g++.cpp
解决 ;
/opt/qtopia/embedded_qtopia/qtopia-opensource-4.2.4/src/libraries/qtopiabase
cp
$ cp custom-linux-ipaq-g++.cpp custom-linux-arm_v5t_le-g++.cpp
$ cp custom-linux-ipaq-g++.h custom-linux-arm_v5t_le-g++.h
export QWS_MOUSE_PROTO=“USB:/dev/mice"
dev-libs/libevent
Available versions: 1.3a ~1.3e 1.4.3 1.4.4 ~1.4.5
Installed versions: 1.4.4(19时28分18秒 2008年07月14日)
Homepage: http://monkey.org/~provos/libevent/
Description: A library to execute a function when a specific event occurs on a file descriptor
编译qtopia时发现 找不到 asm/page.h ,把内核中的文件拷到 /usr/include/asm下面就OK了
要在qvfb&./xxxxx -qws (上面忘了加 qws) 要不然要出问题
把 qtopia/bin加到PATH中,使用 qtopiamake而不是qmake
默认没有这个类
想用的话自己改 src/tools/qconfig-qpe.h 找到对应的宏给注释掉, 重新configure;make
查找到 /qtopiacore/qconfig-qpe.h
axlrose@mygentoo application] $ ./ap ..
#2 [ppkk008 12-21 13:09]
我编译qtopia的时候也出现了这个问题,不知道楼主最后是怎么解决的