Qtopia2.2.0编译成功经验分享(2)

错误八:
    prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:55: fatal error: X11/Xlib.h: No such file     or directory
    compilation terminated.
    make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/Android/main-common.o] Error 1

解决方法:
    sudo apt-get install libx11-dev


错误九:
     sh: gperf: not found
     calling gperf failed: 32512 at ./makeprop.pl line 96.
     make: ***  [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/css/CSSPropertyNames.h] Error 25
make: *** Deleting file `out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/css/CSSPropertyNames.h'

解决方法:
     sudo apt-get install gperf

错误十:open函数参数不够 

/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open   with O_CREAT in second argument needs 3 arguments

解决办法:
     参见ok6410移植百科全书。

错误十一:使用未定义的类
 
     error: ‘QWSInputMethod’ has not been declared
  解决办法:
       参见ok6410移植百科全书。 (注: 该文件中使用了这两个类,C++允许在文件中这样声明其他地方定义的类,减少头文件的相互包含关系,加快编译速度)


错误十二:缺少头文件
        asm/page.h: No such file or directory
  解决办法:
        参见ok6410移植百科全书。


错误十三:类型转换错误
      home/work/armqt/qtlibsource/qt-x11/include/qvalue stack.h: In member function 'T QValueStack<T>::pop() [with T = QMap<QString, QString>]':
xml/qxml.cpp:513:   instantiated from here
  /home/work/armqt/qtlibsource/qt-x11/include/qvalue stack.h:57: 错误:不能从'QValueListIterator<QMap<QString, QString> >'转换到'const char*',为实参'1'(属于'int remove(const char*)')
/home/work/armqt/qtlibsource/qt-x11/include/qvalue stack.h: In member function 'T QValueStack<T>::pop() [with T = QString]':
xml/qxml.cpp:2502:   instantiated from here
  /home/work/armqt/qtlibsource/qt-x11/include/qvalue stack.h:57: 错误:不能从'QValueListIterator<QString>'转换到'const char*',为实参'1'(属于'int remove(const char*)')
    解决办法:
         参见ok6410移植百科全书。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwfgwj.html