|
我的Linux系统是Ubuntu 10.04, 按开发板提供的Qt手册,./x86-qtopia-2.2.0-konqueror_build出现错误,末尾如下:
Build konqueror , please wait ...
.: 46: setQpeEnv: not found
 ERROR: Building Qtopia has failed.
解决方法如下所述
安装一些x的包
sudo apt-get -y install x-dev libx11-dev x11proto-xext-dev libxext-dev libqt3-mt-dev uuid uuid-dev
更新依赖关系:
sudo apt-get -f install
下载文件包:xlibs-static-dev.tar.gz,解压后,安装该deb包:sudo dpkg -i xlibs-static-dev_7.1.0-19_all.deb
手动修改x86-qtopia- 2.2.0/qt2/src/tools/qmemoryfile_unix.cpp 143行
将
    if (!f)
        f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY);   
修改为
    if (!f)
        f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY, 0666);
手动修改x86-qtopia-2.2.0/qtopia/src/libraries/qtopia/qmemoryfile_unix.cpp 141行
将
    if (!f)
        f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY);   
修改为
    if (!f)
        f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY, 0666);  
修改/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia/backend/vobject.cpp:419行
    char *dot = strrchr(g,'.');
为
    char *dot = (char*)strrchr(g,'.');
修正/x86-qtopia-2.2.0/qtopia/src/plugins/codecs/wavplugin/wavplugin.cpp:435行
    char *ext = strrchr( path.latin1(), '.' );
改为
    char *ext = (char*)strrchr( path.latin1(), '.' );
修改x86-qtopia-2.2.0-konqueror_biuld的第26行,
把
        . setQpeEnv
改为
        ./setQpeEnv
最后出现错误:
hecking for Qt... configure: error: Qt (>= Qt 2.2.2) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
但是 sudo ./test_x86 可以运行,能够出来qvfb。
只是configure: error: Qt (>= Qt 2.2.2) (headers and libraries) not found. 这个问题不知道怎么解决,搜索里半天没有合适的回答。 |
|