zoukankan      html  css  js  c++  java
  • libmeegotouch编译安装教程 狼人:

    1.qt sdk安装
         Meego touch安装需要qt的版本为4.7或者以上,如果你没有安装qt或者你的版本过低的话,那可以前往以下链接进行下载,
      http://qt.nokia.com/developer/qt-qtcreator-prerelease,下载Pre-Releases版本,完成后解压,切换到代码目录。
         依次执行:

    ./configure -dbus
    make
    make install

    ps:configure之所以加-dbus主要是编译Meego touch的时候需要dbus的库
         此步骤详细过程请点击这里

    2.Meego touch代码下载     
         使用git clone git://gitorious.org/meegotouch/libmeegotouch.git 下载代码,
         然后执行 chmod 777 -R libmeegotouch,给下载下来的源码全部加上最高权限

    3.meego touch编译与安装
         安装必备库:libfontconfig1-dev libfreetype6-dev libx11-devlibxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-devlibxrandr-dev libxrender-dev
         安装完了以上的库,但是却没有很顺利的把代码编译成功,最后通过错误修改才编译成功,具体修改如下:
         1).安装libgconf2-dev和libdbus-qt-1-dev库(对应于错误三的信息)  
         2).修改libmeegotouch/src/corelib/i18n/mlocale.cpp的279行,给函数 static bool isTwelveHours(const QString &icuFormatQString)  
      的开始和结尾加上HAVE_ICU的宏(对应于错误一的信息)
         3).修改libmeegotouch/configure,将HAVE_DBUS=no改为yes(对应于错误二的信息)

      按照以上三个步骤修改完毕,然后切换到libmeegotouch,依次执行:

    ./configure
    make
    make install

    耐心等待,如果不出什么意外,就会成功的编译完成。如果你在编译还有什么问题,可以一起讨论哦~

    [转载请注明出处:MeeGo中文论坛 米趣网]

    附:
    错误一:

    代码
    i18n/mlocale.cpp:279: error: ‘bool isTwelveHours(const QString&)’ defined but not used
    make[
    2]: *** [.obj/mlocale.o] 错误 1
    make[
    2]:正在离开目录 `/home/chen/MeeGo/libmeegotouch/src/corelib'
    make[
    1]: *** [sub-corelib-make_default-ordered] 错误 2
    make[
    1]:正在离开目录 `/home/chen/MeeGo/libmeegotouch/src'
    make: *** [sub-src-make_default-ordered] 错误
    2

    错误二:

    代码
    workspace/mdeviceprofile.cpp: In member function ‘bool MDeviceProfilePrivate::load(const QString&)’:
    workspace/mdeviceprofile.cpp:119: error: ‘mmPerInch’ was not declared in this scope
    make[
    2]: *** [.obj/mdeviceprofile.o] 错误 1
    make[
    2]:正在离开目录 `/home/chen/MeeGo/libmeegotouch/src/corelib'
    make[
    1]: *** [sub-corelib-make_default-ordered] 错误 2
    make[
    1]:正在离开目录 `/home/chen/MeeGo/libmeegotouch/src'
    make: *** [sub-src-make_default-ordered] 错误
    2

    错误三:

    代码
    ../src/corelib/core/mgconfitem.cpp:28:31: error: gconf/gconf-value.h: 没有那个文件或目录
    ../src/corelib/core/mgconfitem.cpp:29:32: error: gconf/gconf-client.h: 没有那个文件或目录
    ../src/corelib/core/mgconfitem.cpp:39: error: ‘guint’ does not name a type
    ../src/corelib/core/mgconfitem.cpp:42: error: ‘GConfClient’ has not been declared
    ../src/corelib/core/mgconfitem.cpp:42: error: ‘guint’ has not been declared
    ../src/corelib/core/mgconfitem.cpp:42: error: ‘GConfEntry’ has not been declared
    ../src/corelib/core/mgconfitem.cpp:42: error: ‘gpointer’ has not been declared
    ../src/corelib/core/mgconfitem.cpp: In constructor ‘MGConfItemPrivate::MGConfItemPrivate()’:
    ../src/corelib/core/mgconfitem.cpp:33: error: class ‘MGConfItemPrivate’ does not have any field named ‘notify_id’
    ../src/corelib/core/mgconfitem.cpp: At global scope:
    ../src/corelib/core/mgconfitem.cpp:49: error: expected initializer before ‘*’ token
    make[
    1]: *** [mgconfitem.o] 错误 1
  • 相关阅读:
    【性能测试】二、TPS、QPS、RT和吞吐量这些都是什么?
    【性能测试】一、哪那么多概念,不就是这一条吗?
    【测试基础】九、如何做 API 测试?异步的呢?
    【测试基础】八、创建测试数据的时机
    【测试基础】七、你如何准备测试数据?
    【测试基础】六、做好测试计划需要注意这些
    【测试基础】五、这样提bug单,开发小哥还会怼你么?
    【测试基础】四、你的测试覆盖率是多少?
    【测试基础】三、为什么要做自动化测试?哪种项目合适?
    【测试基础】二、我好像真的不会设计“好的”测试用例
  • 原文地址:https://www.cnblogs.com/waw/p/2156715.html
Copyright © 2011-2022 走看看