| 1 | # Installation |
| 2 | |
| 3 | If you want binary install, please see [README](README.md). |
| 4 | |
| 5 | ## Linux Platform |
| 6 | |
| 7 | ### Development Environment |
| 8 | |
| 9 | - Release base debian |
| 10 | |
| 11 | ### Install Build Dependencies |
| 12 | |
| 13 | ```bash |
| 14 | sudo apt-get install debhelper python qt5-default qt5-qmake qttools5-dev-tools libstartup-notification0-dev libxcb-util0-dev libdtkwidget-dev |
| 15 | ``` |
| 16 | |
| 17 | ### Build Deepin Boot Maker |
| 18 | |
| 19 | ``` |
| 20 | mkdir build |
| 21 | cd build |
| 22 | qmake -r .. |
| 23 | make |
| 24 | ``` |
| 25 | |
| 26 | ## Windows Platform |
| 27 | |
| 28 | ### Development Environment |
| 29 | |
| 30 | - Windows 10 64bit |
| 31 | - Microsoft Visual C++ 2017 |
| 32 | - Windows SDK |
| 33 | - Qt5.8 |
| 34 | - Dtk |
| 35 | |
| 36 | ### Build Qt static |
| 37 | |
| 38 | ``` |
| 39 | configure -prefix "C:\Qt\QtStatic\5.8\vs2017" -release -platform win32-msvc2010 \ |
| 40 | -no-qml-debug -confirm-license -opensource -static -qt-pcre -no-icu -no-sql-sqlite \ |
| 41 | -no-nis -no-cups -no-iconv -no-dbus -nomake examples -no-sql-odbc -no-compile-examples \ |
| 42 | -skip qtwebkit -skip qtwebkit-examples -skip qtactiveqt -no-openssl -qt-zlib \ |
| 43 | -qt-libpng -qt-freetype -qt-libjpeg -opengl es2 -angle |
| 44 | ``` |
| 45 | |
| 46 | ### Build Dtk |
| 47 | |
| 48 | TODO |
| 49 | |
| 50 | ### Build Deepin Boot Maker |
| 51 | |
| 52 | ``` |
| 53 | mkdir build |
| 54 | cd build |
| 55 | qmake -r .. |
| 56 | nmake |
| 57 | ``` |
| 58 | |
| 59 | |
| 60 | ## Mac OSX Platform |
| 61 | |
| 62 | ### Development Environment |
| 63 | |
| 64 | - Mac OS 10.12 |
| 65 | - Qt5.8 |
| 66 | |
| 67 | ### Set Qt PATH |
| 68 | |
| 69 | ``` |
| 70 | export QtInstallPath=/User/yourhome/Qt5.8/5.8/clang_64 |
| 71 | export PATH=$QtInstallPath/bin:$PATH |
| 72 | ``` |
| 73 | ### Build Dtk |
| 74 | |
| 75 | TODO |
| 76 | |
| 77 | ### Build Deepin Boot Maker |
| 78 | |
| 79 | ``` |
| 80 | mkdir build |
| 81 | cd build |
| 82 | qmake -r .. |
| 83 | make |
| 84 | macdeployqt src/app/deepin-boot-maker.app |
| 85 | ``` |