zoukankan      html  css  js  c++  java
  • qml支持多平台的编译--尤其对于需要支持xp的情况

    http://www.oschina.net/p/deepin-boot-maker

    系统支持:

    Windows平台:

    Windows 7/ Windows 8

    需要安装显卡驱动

    Windows XP

    需要安装显卡驱动

    需要更新最新版本的DirectX

    Direct X 环境安装包:

    DirectX Redist Package 地址:

    或者使用DirectX Runtime在线安装工具:

    Linux平台:

    Ubuntu12.04/Ubuntu14.04/Deepin 14.04

    安装以下软件包

    ?
    1
    2
    sudo apt-get install syslinux p7zip mtools libgl1-mesa-dri libx11-xcb1 libsm6
    libxcb1 libfontconfig1 libxrender1 libpng12-0 libgl1-mesa-dev
    Mac:

    直接安装DMG文件

    不支持Mac OS 10.10(可以使用命令行直接运行MacOS目录下的二进制文件)

    开发指南

    开发环境:Qt5.3 请注意以下事项: 1. 现有阶段代码主要为静态编译准备,qt5.3中的qtquick qml文件是直接打包在qrc文件中发布的,使用其他版本的qt可能导致兼容性问题。 2. 如需要动态编译版本,请注意修改代码相应位置,以后会做出相应支持。

    Windows平台:

    开发环境: Windows 7 64bit + msvc2010 + WinSDK 8.1+Qt5.3

    1.如果准备支持Windows XP,请自行编译静态或者动态版本的Qt 5.3 with angle版本。编译参数:

    ?
    1
    2
    3
    4
    5
    6
    set DXSDK_DIR="C:Program Files (x86)Windows Kits8.0Includeum"
    configure -prefix "C:QtQtStatic5.3vs2010" -release -platform win32-msvc2010
    -no-qml-debug -confirm-license -opensource -static -qt-pcre -no-icu -no-sql-sqlite
    -no-nis -no-cups -no-iconv -no-dbus -nomake examples -no-sql-odbc -no-compile-examples
    -skip qtwebkit -skip qtwebkit-examples -skip qtactiveqt -no-openssl -qt-zlib
    -qt-libpng -qt-freetype -qt-libjpeg -opengl es2 -angle
    注意: 1.不要编译icu,不然发布时会附带30M左右的icu支持的dll 2.静态编译版本,如果程序运行需要libegl相关dll,请自行编译angle。需要win7系统,msvc 2010。详细编译参数参考

    2.如果不准备支持Windows XP,则可以使用官方版本的Qt with mingw 进行静态编译:

    ?
    1
    2
    3
    4
    configure -prefix "D:QtQtStaticmingw5.3" -debug-and-release -platform win32-g++
    -confirm-license -opensource -static -qt-pcre -no-icu -no-sql-sqlite -no-nis -no-cups
    -no-iconv -no-dbus -nomake examples -no-sql-odbc -no-compile-examples -skip qtwebkit
    -skip qtwebkit-examples -skip qtactiveqt -no-openssl -qt-zlib -no-angle -opengl desktop
    Mac平台:

    Macx 10.9 + Qt5.3

    1.设置Qt路径

    ?
    1
    2
    export QtInstallPath=/User/yourhome/Qt5.3/5.3/clang_64
    export PATH=$QtInstallPath/bin:$PATH
    2.编译

    ?
    1
    2
    3
    4
    cd src
    qmake -r deepin-boot-maker.pro
    make
    macdeployqt ../build/release/deepin-boot-maker.app
    3.附加qml运行库

    ?
    1
    2
    3
    4
    5
    cp $QtInstallPath/qml/QtQuick/Dialogs/libdialogplugin.dylib ../build/release/deepin-boot-maker.app/Contents/MacOS/
    cp $QtInstallPath/qml/QtQuick/Controls/libqtquickcontrolsplugin.dylib ../build/release/deepin-boot-maker.app/Contents/MacOS/
    cp $QtInstallPath/qml/QtQuick/Window.2/libwindowplugin.dylib ../build/release/deepin-boot-maker.app/Contents/MacOS/
    cp $QtInstallPath/qml/QtQuick.2/libqtquick2plugin.dylib ../build/release/deepin-boot-maker.app/Contents/MacOS/
    cp $QtInstallPath/qml/Qt/labs/folderlistmodel/libqmlfolderlistmodelplugin.dylib ../build/release/deepin-boot-maker.app/Contents/MacOS

  • 相关阅读:
    手动为php安装memcached扩展模块
    Linux下程序包管理工具RPM
    【Hibernate】一级、二级缓冲
    MySQL的用户和权限介绍
    一步一步教你安装openstack
    LVS负载平衡集群(没成型)
    SQL Server等待事件—PAGEIOLATCH_EX
    ORACLE ANALYZE使用小结
    为什么你SQL Server中SQL日期转换出错了呢?
    SQL Server误设置max server memory处理小结
  • 原文地址:https://www.cnblogs.com/xianqingzh/p/4350156.html
Copyright © 2011-2022 走看看