Reply
Thread Tools
Posts: 225 | Thanked: 64 times | Joined on Feb 2010
#1
boys and girls

i want to do my qt4.6 dev using windows then copy the src to the phone and compile

i cannot get the dev package to install as instructed inthe wiki because it depends on 2 open gl packs and a sqlite3 pack that arent in the devel repo. i added a repo for the gl packs, a closed nokia-binaries one that i need a token for and i got the sqlite one from a subdirectory of the devel repo server but they now wont install because they need libc6-dev package and i cant find that anywhere

can anyone tell me how to make apt get IGNORE these deps (dont plan on using gl or sqlite) or alternately how to gwt this libqt4-maemo5-dev pack to install?

ive already successfully removed qt 4.5 from my n900

thanks
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#2
Hi,

first of all, why do you want to compile your application on the device? If you want to compile your 4.6 app under windows, follow the instructions of harald in his blog on how to integrate 4.6 into MADDE and compile on your host. Then you just need the basic qt-maemo5 packages on your device and to copy your compiled binary there, so that you don't run into endless dependency-issues.

Daniel
 
Posts: 225 | Thanked: 64 times | Joined on Feb 2010
#3
Did a lot of reading, around last night, and wow.. the options list is vast. Basically I wanted:

A nice, easy IDE to write apps in (I figured QtCreator w/ Qt 4.6 on windows)
My apps to work on an N900

I figured I'd just write and debug them in Windows and then copy the sources to the N900 and compile them there.
After chewing over the idea with the guys in freenode #dt-memo (possibly even you, if youre daniel_ki ) it seems that a dumb way, because the compilation will be slow

So it seems I either:
Use scratchbox, compile to arm ina terminal, copy to device

Use QtCreator and madde, but be stuck at 4.5


I havent found any resources that say that 4.6 madde is available and links with QtCreator in windows.. did I miss something?
 
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#4
Originally Posted by cjard View Post
.....

I havent found any resources that say that 4.6 madde is available and links with QtCreator in windows.. did I miss something?
check here
though I dont use MADDE myself, I rely on the scratchbox environment for QT4.6.
__________________
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )

“I hear and I forget. I see and I remember. I do and I understand.”
 
Posts: 42 | Thanked: 123 times | Joined on Feb 2010
#5
Originally Posted by cjard View Post
Did a lot of reading, around last night, and wow.. the options list is vast. Basically I wanted:

A nice, easy IDE to write apps in (I figured QtCreator w/ Qt 4.6 on windows)
My apps to work on an N900

I figured I'd just write and debug them in Windows and then copy the sources to the N900 and compile them there.
After chewing over the idea with the guys in freenode #dt-memo (possibly even you, if youre daniel_ki ) it seems that a dumb way, because the compilation will be slow

So it seems I either:
Use scratchbox, compile to arm ina terminal, copy to device

Use QtCreator and madde, but be stuck at 4.5


I havent found any resources that say that 4.6 madde is available and links with QtCreator in windows.. did I miss something?
First of all, you can install both 4.5 and 4.6 on your N900 at the same time. You do not have to remove either one.

If you are willing to do some extra work to setup scratchbox, then compiling and running QT under the scratchbox will a walk in the park. Here's a mini tut how to do it:

Step 0 (for Windows users):
Download and install VirtualBox and then install Ubuntu.

Step 1:
Follow this guide and finish scratchbox setup:
http://wiki.maemo.org/Documentation/...l_Installation

Just the "Installing Maemo 5 SDK using GUI Installer" and "Starting/Shutting down the SDK UI" sections.

Once you've reached to "af-sb-init.sh start" and see Maemo OS running under your x86 target, you are set.


Step 2:
Enabled extras for your scratchbox X86 target:
http://wiki.maemo.org/Extras-devel#H...e_Extras-devel

Type
"apt-get update"
"apt-get upgrade"
"apt-get install libqt4-maemo5-*"
at this point you see some prompt, cancel it by selecting no. You will see a list of QT4.6.2 packages listed. Just pick the onces you want to install.
For example,
"apt-get install libqt4-maemo-5-core libqt4-maemo-5-gui" etc.

Step 3:
Following "Creating a simple application" http://wiki.forum.nokia.com/index.ph...h_Qt_for_Maemo and build it.

Remember to execute command "/opt/qt4-maemo5/bin/qmake" instead of just qmake. THIS IS IMPORTANT.

You should be able to run the QT4.6 application you've written under x86 target.

Step 4: Compile your application for N900.

- Type "sb-menu" to bring up scratchbox control menu
- Select "Kill all" and type 9 to kill all opened seasons
- Select "Target Active a target" and active your ARMEL target.

- Repeat Step 2 and 3 for your ARMEL target.

In Step 2, enabling extras by adding the following to /etc/apt/source.list

deb http://repository.maemo.org/extras/ fremantle free non-free
deb-src http://repository.maemo.org/extras/ fremantle free
deb http://repository.maemo.org/extras-devel/ fremantle free non-free
deb-src http://repository.maemo.org/extras-devel/ fremantle free


After binary file is complied under ARMEL target, copy it to your N900's /home/user folder.

Step 5:
- Enable extras on your N900
- Install required libqt5-maemo-blablabla packages
- Execute the QT binary you've just compiled and enjoy the achievement.

Last edited by code; 2010-03-09 at 16:28.
 

The Following 4 Users Say Thank You to code For This Useful Post:
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#6
Originally Posted by code View Post
"/opt/libqt4-maemo5/bin/qmake-qt4" /opt/qt4-maemo5/bin/qmake

After binary file is complied under fremantleARMEL target, copy it to your N900's /home/user folder.
made the neccessary correction

You could also set your PATH variable to point to /opt/qt4-maemo5/bin for QT4.6 or /usr/bin/ for QT4.5, thats how I do it in order to switch between QT4.5/4.6
__________________
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )

“I hear and I forget. I see and I remember. I do and I understand.”
 

The Following User Says Thank You to krk969 For This Useful Post:
Posts: 42 | Thanked: 123 times | Joined on Feb 2010
#7
That was fast

Sorry was writing this without the scratchbox in front of me. Anyway I added the corrections.
 

The Following User Says Thank You to code For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 07:36.