From e34ada43ede0ffe7d6d6ced3e96d02c16b78608b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sami=20R=C3=A4m=C3=B6?= Date: Fri, 15 Oct 2010 11:05:01 +0300 Subject: [PATCH] Updated INSTALL file --- INSTALL | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/INSTALL b/INSTALL index 2ebf8bf..487dd40 100644 --- a/INSTALL +++ b/INSTALL @@ -1,8 +1 @@ -To install through make, type: - -make -make install - -To create debian package, type: - -dpkg-buildpackage -rfakeroot -b -tc +This is a rough instruction how to compile and test the application using Maemo 5 SKD. Some previous general knowledge of the Maemo 5 SDK / Scracthbox and installing packages is required since all the steps are not documented with enough details. All the following commands are run in the Scratchbox, except the ones related to installation to the device. Pre-requirements ---------------- * Maemo 5 SDK - http://wiki.maemo.org/Documentation/Maemo_5_Final_SDK_Installation Dependencies ------------ * Qt 4.6.2 - http://qt.nokia.com/ Qt is a cross-platform application and UI framework. It includes a cross-platform class library, integrated development tools and a cross-platform IDE. Using Qt, you can write web-enabled applications once and deploy them across many desktop and embedded operating systems without rewriting the source code. Install package libqt4-dev. * Qt Mobility - http://qt.nokia.com/products/appdev/add-on-products/catalog/4/new-qt-apis/mobility Qt Mobility Project delivers a set of new APIs to Qt with features that are well known from the mobile device world, in particular phones. However, these APIs allow the developer to use these features with ease from one framework and apply them to phones, netbooks and non-mobile personal computers. The framework not only improves many aspects of a mobile experience, because it improves the use of these technologies, but has applicability beyond the mobile device arena. Install package libqtm-dev. NOTE: Qt Mobility is needed only for armel target. * QJson - http://qjson.sourceforge.net/ QJson is a qt-based library that maps JSON data to QVariant objects: JSON arrays will be mapped to QVariantList instances, while JSON objects will be mapped to QvariantMap. Required files can be installed from extras repository by installing package libqjson-dev. Compiling and running the application ------------------------------------- Make sure the FREMANTLE_X86 target is currently selected. Compile the application and execute it by using the following commands in the project root dir (assuming you have the Xephyr and Fremantle environment already running): cd src qmake make clean make run-standalone.sh ../situare Compiling for the actual device (Nokia N900) -------------------------------------------- This is a short list of phases required for running the application in the actual device. Many details are missing, so you must have some previous knowledge. Use FREMANTLE_ARMEL target when building for the device! There are two different ways to achieve the result: A) Building deb package - dpkg-buildpackage -rfakeroot -b -tc - copy the resulted deb package to the device - dpkg -i - if nags about dependencies, then: apt-get install -f (note: the extras repository must be enabled) - run application from the applications menu B) Compiling and installing manually - compile cd src qmake CONFIG+=armel make clean make - copy the resulted binary "situare" (from the project root directory) to the device - install libqjson - run the application from terminal Compiling and running the unit tests ------------------------------------ In the project root dir: cd tests qmake make clean make cd ../scripts ./run_unit_tests.sh Compiling the application and unit tests ---------------------------------------- In the project root dir: qmake -r make clean make Compiling using Qt Nokia SDK ---------------------------- - use CONFIG+=armel parameter with qmake when building for Maemo target - add QJson libraries to Fremantle sysroot https://garage.maemo.org/plugins/wiki/index.php?How%20to%20add%20external%20libraries%20for%20Maemo%20target%20when%20compiling%20with%20Nokia%20Qt%20SDK&id=1420&type=g \ No newline at end of file -- 1.7.9.5