As we all know now Qt can run on Symbian Phones but there is one problem all SDK’s and Tool chain of this officially supports windows.
So how about people like us(who’s default OS is Linux) cant we develop for Symbian using Qt?
In answer to this question I found many articles/blogpost how to install Qt for Symbian on Linux but this is the one which work for me http://lizardo.wordpress.com/2010/02/18/installing-qt-for-symbian-sdk-4-6-2-on-linux/ .
I followed this post every thing was perfect except 2 things
1) creating .sis(the Symbian executable) file.
2) creating installer.sis(the Symbian executable installer) file.
and i figured out how to do that too.
I re-witting the basic installation from http://lizardo.wordpress.com/2010/02/18/installing-qt-for-symbian-sdk-4-6-2-on-linux/ . plus my Hacks/Tricks .
Tool-Chain:
Download all required files to a single directory (e.g. “~/downloads”):
- S60_5th_Edition_SDK_v1_0_en.zip (623MB) or S60-SDK-200634-3.1-Cpp-f.1090b.zip (355MB): S60 SDK for Symbian OS (be sure to click on the “Download all-in-one S60 SDKs” button for 5th edition, or “Download S60 SDKs for C++” for 3rd edition, FP1)
- s60_open_c_cpp_plug_in_v1_6_en.zip (35MB): Open C/C++ Plug-in
- qt-symbian-opensource-4.6.2.exe (201MB): Qt for Open Source C++ development on Symbian
- gnu-csl-arm-2005Q1C-arm-none-symbianelf-i686-pc-linux-gnu.tar.bz2 (11MB): CodeSourcery’s ARM toolchain for Symbian
- gnupoc-package-1.15.tar.gz (6.2MB): tools and patches to run Symbian SDK on Linux
- gnupoc_1.15_installer_v2.sh: Unofficial GnuPoc installer (supports 3.1 and 5.0 SDKs)
- qt_for_symbian_4.6.2_linux_installer_v3.sh: Unofficial Qt for Symbian installer for Linux
- Nokia Smart Installer Which makes it easier to deploy your Qt application to Symbian phones.
For building the native tools from gnupoc, you will need:
- the GCC C/C++ compilers
- development files for zlib
- development files for openssl
On Ubuntu, you can install these using the following command:
sudo apt-get install build-essential zlib1g-dev libssl-dev
Installation
First, install GnuPoc + S60 SDK + the Open C/C++ plugin:
./gnupoc_1.15_installer_v2.sh \
<download-dir> \
<gnupoc-dir>\
<x.y>
Replace <download-dir> with the location of all files downloaded in previous section (e.g. “~/downloads”), <gnupoc-dir> with the destination directory for GnuPoc and the SDK files (e.g. “~/gnupoc”) and <x.y> (Note that this is not the directory) with the SDK version you want to install (e.g. “3.1″ or “5.0″). Note that both directories must have absolute paths.
If installation was successful, you should see an output like:
Installation has finished. Before using the GnuPoc SDK, run these commands on the console:
export PATH=<gnupoc-dir>/bin:$PATH
export EPOCROOT=<gnupoc-dir>/symbian-sdks/5.0/ # trailing “/” is required!
(These commands must be run again every time a new console is opened.)
Run the commands as instructed on the message. Next, install Qt for Symbian:
./qt_for_symbian_4.6.2_linux_installer_v3.sh \
<download-dir> \
<qt-s60-dir>
Replace <download-dir> with the location of all files downloaded in previous section (e.g. “~/downloads”), and <qt-s60-dir> with the destination directory for the Qt files (e.g. “~/gnupoc/qt-4.6.2″). Note that both directories must have absolute paths.
If installation was successful, you should see an output like:
Installation has finished. Before using the Qt for Symbian SDK, run this command on the console:
export PATH=<qt-s60-dir>/bin:$PATH
unset QMAKESPEC # make sure there is no QMAKESPEC variable set
(This command must be run again every time a new console is opened.)
Before using Qt for Symbian, you should run the command as instructed on the message above.
Usage example
Install Nokia Smart Installer :
- Unzip Nokia Smart Installer on top of your installed Qt for Symbian folder
in <qt-s60-dir>
To test the installation, I will describe how to build the “colliding mice” example.
- cd into the example source:
- Now build the example and generate the SIS file
cd <qt-s60-dir>/examples/graphicsview/collidingmice/
qmake
make debug-gcce
make sis
make installer_sis
Chnages/Hack/Tricks
You will notice that when you do make installer_sis
there is some error related to “createpackage.bat” file this is batch file what we have to do is open
Makefile
search for ok_installer_sis:
and change createpackage.bat to createpackage.sh
createpackage.sh is already there just that its not getting reflected in Makefile .
and now if you do make installer_sis you will get collidingmice_installer.sis
I have also created one bash function as follow:
function qtsis {
export PATH=<gnupoc-dir>/bin:$PATH
export EPOCROOT=<gnupoc-dir>/symbian-sdks/5.0/ # trailing "/" is required!
export PATH=<qt-s60-dir>/bin:$PATH
unset QMAKESPEC # make sure there is no QMAKESPEC variable set
}
Add this function in your .bashrc file with proper path which you get after installation.
and do source ~/.bashrc
now when ever you want to compile your qt code for Symbian 1st execute qtsis command on your terminal then other qt commands
A few notes:
- Make sure Qt is installed on the device before installing Qt applications. The easiest way to install it is to copy the “qt_installer.sis” package found under <qt-s60-dir> over bluetooth and open the received message to begin the installation.
- Only the “debug-gcce” (if you are using the GCCE toolchain AKA “CodeSourcery toolchain”) or “debug-armv5″ (if you are using RVCT) will work, because the current Qt releases only ship debug versions of the libraries
enjoy
Tags: hack, kde, programming, qt
Hi,
Currently that version of Qt for Symbian doesn’t come with smartinstaller.sis, in order to get it you can visit this website:
http://get.qt.nokia.com/nokiasmartinstaller
Hi the link is already pointed there in Tool-Chain: list but thanks…
Heya this blog is awesomest
Thanks
Hi,
Currently that version of Qt for Symbian doesn’t come with smartinstaller.sis, in order to get it you can visit this website:
http://get.qt.nokia.com/nokiasmartinstaller
Genial fill someone in on and this fill someone in on helped me alot in my college assignement. Gratefulness you for your information.
Just checked out this great tutorial and thought of sharing it with you guys.
This tutorial guides you in getting started with Qt application development. The document covers the following topics: downloading and installing the Nokia Qt SDK, creating your first project, running it in the simulator, and deploying the application to a device.
For more info to this visit http://bit.ly/8XKBw3
Hi, I’m very interested in Linux but Im a Super Newbie and I’m having trouble deciding on the right distribution for me (Havent you heard this a million times?) anyway here is my problem, I need a distribution that can switch between reading and writing in English and Japanese (Japanese Language Support) with out restarting the operating system.
well I will suggest ubuntu …
hello,
nice walk through, i’ve succefully built the toolchain against S60-SDK-200634-3.1 with Ubuntu Lucid, but would you know what this error means? when i try to install qt_installer.sis on an n95, just right after OPENC installation it says “error 14″
any idea?
hello, great walk through,
I’ve successfully built the toolchain against s60 sdk 3.1 with ubuntu lucid.
but would you know what this error means?
when installin qt_installer.sis on n95, just righ after OPEN C installation it will say “error-14″ and the installation discontinues.
any idea?