• 6349阅读
  • 2回复

RedHat9.0上安装qtopia-opensource-src-4.2.1的错误请教 [复制链接]

上一主题 下一主题
离线duancp
 

只看楼主 倒序阅读 楼主  发表于: 2008-10-06
— 本帖被 XChinux 从 Qt for Windows 移动到本区(2010-02-07) —
我在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]: *** [redirect_all] Error 2
make[5]: Leaving directory `/mnt/nfs/qtopiatslibinstall/src/tools/qt/moc'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/mnt/nfs/qtopiatslibinstall/src/tools/qt/moc'
make[3]: *** [sub-tools-qt-moc] Error 2
make[3]: Leaving directory `/mnt/nfs/qtopiatslibinstall/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/nfs/qtopiatslibinstall/src'
make[1]: *** [qtopia_all] Error 2
make[1]: Leaving directory `/mnt/nfs/qtopiatslibinstall'
make: *** [all] Error 2
[ 此贴被duancp在2008-10-06 14:54重新编辑 ]
离线axlrose

只看该作者 1楼 发表于: 2008-10-08
换个新发行版吧,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
[axlrose@ibmgentoo qtopiabase] $ cp custom-linux-ipaq-g++.cpp custom-linux-arm_v5t_le-g++.cpp
[axlrose@ibmgentoo qtopiabase] $ cp custom-linux-ipaq-g++.h custom-linux-arm_v5t_le-g++.h


export QWS_MOUSE_PROTO=“USB:/dev/mice"

[I] 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] $ ./application -qws
Connected to VFB server :0: 320 x 240 x 32 113x85mm (71x71dpi)
./application: symbol lookup error: ./application: undefined symbol: _ZN7QWidget9dropEventEP10QDropEvent

make install 后就OK了
枪炮与玫瑰
离线ppkk008
只看该作者 2楼 发表于: 2008-12-21
我编译qtopia的时候也出现了这个问题,不知道楼主最后是怎么解决的
快速回复
限100 字节
 
上一个 下一个