fedora13编译Qtopia问题

来源:互联网 发布:成都网络推广028zhiya 编辑:程序博客网 时间:2024/05/16 09:55

友善之臂mini2440

gcc version 4.4.5

 

按照用户手册编译x86-qtopia时遇到的问题:

1.缺少库文件

      yum install libX11-devel libXext-dev  libXtst-devel

2.错误2

     backend/vobject.cpp: In function ‘VObject* addGroup(VObject*, const char*)’:
     backend/vobject.cpp:419: error: invalid conversion from ‘const char*’ to ‘char*’

     修改/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia/backend/vobject.cpp:419行
             char *dot = strrchr(g,'.');
     为    char *dot = (char*)strrchr(g,'.');

3.错误3

    wavplugin.cpp: 在成员函数‘virtual bool WavPlugin::isFileSupported(const QString&)’中:
    wavplugin.cpp:435:45: 错误:从类型‘const char*’到类型‘char*’的转换无效

    修正/x86-qtopia-2.2.0/qtopia/src/plugins/codecs/wavplugin/wavplugin.cpp:435行
           char *ext = strrchr( path.latin1(), '.' );
    为   char *ext = (char*)strrchr( path.latin1(), '.' );

4.错误4

   /usr/bin/ld: .obj/release-shared/transferserver.o: undefined reference to symbol 'crypt@@GLIBC_2.0'
   /usr/bin/ld: note: 'crypt@@GLIBC_2.0' is defined in DSO /lib/libcrypt.so.1 so try adding it to the linker command line

   这个找了好久发现用了crypt函数 而没使用-lcrypt,   qtopia-2.2.0-FriendlyARM/qtopia/configure  1373行加入

          print CONFIG_PRI "LIBS+=-lcrypt\n";

    如下:

         print CONFIG_PRI "QTOPIA_FONT_SIZES=$opt_fontsizes\n";
         print CONFIG_PRI "QTOPIA_FONT_FAMILIES=$opt_fontfamilies\n";
         print CONFIG_PRI "LIBS+=-lcrypt\n";

              

 

原创粉丝点击