-
Notifications
You must be signed in to change notification settings - Fork 28
Build Instructions
rafaelbrandao edited this page Jun 28, 2012
·
20 revisions
- We require Qt 5. http://developer.qt.nokia.com/wiki/Building_Qt_5_from_Git . Don't forget after a git pull to run git submodule update as well as in qtdeclarative to run also git submodule update (to get V8 updates).
- On Windows : http://trac.webkit.org/wiki/BuildingQtOnWindows.
- On Linux : http://trac.webkit.org/wiki/BuildingQtOnLinux
- On Mac : http://trac.webkit.org/wiki/BuildingQtOnOSX
We want to build the WebKit2 port
- Get the source : git@github.com:snowshoe/snowshoe.git
- Export needed variables:
- PATH pointing to the Qt5 bin directory
- LD_LIBRARY_PATH pointing to the WebKit2 lib directory
- Run qmake
- Run make or nmake (on Windows)
- Enjoy!
- Don't forget to add the bin path of your WebKit build to your PATH so QtWebProcess executable can be found.
- Make sure QML_IMPORT_PATH points to the builddir/imports to load the QtWebKit plugin.
- Make sure also that LD_LIBRARY_PATH is correctly set.
- Follow the instructions to install QtWebKit on N9.
- Get the source files of Snowshoe.
- Install the Harmattan SDK and restart your user session.
- Run "/scratchbox/login" just to make sure HARMATTAN_ARMEL is selected. Otherwise select it using "sb-menu" inside scratchbox.
If you get "ERROR: ‘/scratchbox/sbin/chroot-uid’ is not suid ROOT" then type "sudo chmod u+s /scratchbox/sbin/chroot-uid".
- Run the Snowshoe script "tools/setup-snowshoe-deps.sh" to install the dependencies on your scratchbox. You should run this script from Snowshoe base directory (not inside tools).
- Adjust the ip inside the build-deploy.sh script inside 'tools' to the IP of your device. The default is 192.168.2.15, the IP for the usb connection.
- Run the build-deploy.sh script from the project root dir. It'll copy the project to scratchbox, build and scp it to the connected device.
If you get a build error "cannot find -lfontconfig" then log into scratchbox and type "apt-get install libfontconfig1-dev"
- On the device, add the Qt5 binary dir to PATH with "export PATH=/opt/qt5/bin:$PATH" and then run it with "./snowshoe --mobile"
If you hit the error "module "com.nokia.meego" is not installed" when running snowshoe, then go to your N9 device and type "apt-get install qt-components2"