Changes between Version 27 and Version 28 of SettingUpDevelopmentEnvironmentForN9


Ignore:
Timestamp:
Feb 16, 2012 3:56:10 AM (12 years ago)
Author:
vestbo@webkit.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SettingUpDevelopmentEnvironmentForN9

    v27 v28  
    77The easiest way to develop for Harmattan is to cross-compile using a sysroot. The Qt SDK already comes with a Harmattan sysroot and the required ARM toolchain, and we build on top of that to create a sysroot suitable for building Qt5 and WebKit2.
    88
    9 1. Prepare your environment
     9== 1. Prepare your environment ==
    1010
    1111{{{
     
    1616''Note:'' This base directory is just an example used in this guide. You're free to change where you keep your sources and builds (shadow-builds), as long as you account for that when running the various commands.
    1717
    18 2. Download and install the Qt SDK from  http://qt.nokia.com/downloads/
     18== 2. Download and install the Qt SDK from  http://qt.nokia.com/downloads/ ==
    1919
    2020Both Mac OS X and Linux X11/64-bit should work fine.
    2121
    22 3. Get some convenience-scripts used in this guide and for development
     22== 3. Get some convenience-scripts used in this guide and for development ==
    2323
    2424{{{
     
    2626}}}
    2727
    28 4. Set up custom MADDE target
     28== 4. Set up custom MADDE target ==
    2929
    3030{{{
     
    3434This will create a new target based on the original Harmattan target that comes with the QtSDK, but with different names for the ARM-toolchain binaries, and pre-installed packages needed for Qt5 development.
    3535
    36 5. Download testfonts
     36== 5. Download testfonts ==
    3737{{{
    3838  $ git clone git://gitorious.org/qtwebkit/testfonts.git
    3939}}}
    4040
    41 6. Get the source of Qt5 and WebKit
     41== 6. Get the source of Qt5 and WebKit ==
    4242{{{
    4343  $ browser-scripts/clone-sources.sh
     
    5757}}}
    5858
    59 5. Create ICECC toolchain (optional)
     59== 5. Create ICECC toolchain (optional) ==
    6060
    6161If you have multiple workstations configured to use [http://en.opensuse.org/Icecream ICECC], you can speed up building process significantly.
     
    8484Make the script runnable and execute it before building when you need speedup.
    8585
    86 7. Build Qt5, QtComponents, and QtWebKit
     86== 7. Build sources ==
    8787
    8888{{{
     
    9191  $ browser-scripts/build-sources.sh --cross-compile
    9292}}}
     93
     94This will build Qt5, QtComponents, and QtWebKit.
    9395
    9496If everything is right you should get similar result:
     
    102104===========================================================</pre></div>
    103105}}}
     106
     107If you just want to build Qt5, replace the last step with:
     108
     109{{{
     110  $ browser-scripts/qt5-build.sh --cross-compile
     111}}}
     112
    104113
    105114== 1.1 Updating build environment ==
     
    409418[Pipe 3] Finishing in error state with status 1
    410419}}}
    411