10 | | There is a walktrough for building Qt on Tizen from THP: |
| 10 | |
| 11 | === Compiling Qt for Tizen === |
| 12 | There is a [http://tizentalk.com/forum/threads/build-qt-4-8-1-for-the-tizen-developer-device.4/ walktrough for building Qt on Tizen from THP]: |
| 13 | |
| 14 | |
| 15 | Here's a small HOWTO for building Qt 4.8.1 in Scratchbox2 ("SBS") and copying the files over to your device for testing. Be aware that this does not include any source code changes, so the build might still need lots of work (and porting) for it to become fully usable. It's just a simple cross-compile in Scratchbox and copying the files over - no rocket science, but apparently not too obvious either ;) |
| 16 | |
| 17 | 1. Install SBS: https://source.tizen.org/platform/development-sbs |
| 18 | 2. Install the Tizen SDK: https://developer.tizen.org/sdk (alternatively, get "sdb" through some other means) |
| 19 | 3. Get the Qt sources: http://download.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.8.1.tar.gz |
| 20 | 4. Unpack the sources somewhere: |
| 21 | {{{ |
| 22 | tar xzvf qt-everywhere-opensource-src-4.8.1.tar.gz |
| 23 | }}} |
| 24 | 5. Run: |
| 25 | {{{ |
| 26 | sbs -e |
| 27 | }}} |
| 28 | and then run |
| 29 | {{{ |
| 30 | ./configure -opensource -confirm-license |
| 31 | }}} |
| 32 | inside the extracted folder |
| 33 | 6. Run: |
| 34 | {{{ |
| 35 | make |
| 36 | }}} |
| 37 | 7. Run: |
| 38 | {{{ |
| 39 | mkdir tmp && INSTALL_ROOT=$(pwd)/tmp/ make install |
| 40 | }}} |
| 41 | 8. Pack up everything: |
| 42 | {{{ |
| 43 | cd tmp && tar czvf ../qt_tizen.tgz * |
| 44 | }}} |
| 45 | 9. Copy it to the device: |
| 46 | {{{ |
| 47 | sdb push ../qt_tizen.tgz /root/ |
| 48 | }}} |
| 49 | 10. Get a shell and extract it: |
| 50 | {{{ |
| 51 | sdb shell && tar xzvf /root/qt_tizen.tgz -C / |
| 52 | }}} |
| 53 | |
| 54 | After that, you should be able to run it using |
| 55 | {{{ |
| 56 | /usr/local/Trolltech/Qt-4.8.1/bin/qtdemo |
| 57 | }}} |
| 58 | |