maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   A remedy for the Qt 4.6 situation (And the new Qt SDK works!) (https://talk.maemo.org/showthread.php?t=52442)

Venemo 2010-05-12 01:37

A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
As many of you already know, the current firmware for the Nokia N900 (known as PR 1.1) has some controversies regarding the Qt
toolkit.

EDIT:
Now that PR 1.2 is out, this is quite obsolete, since all of the stuff works on it without hacks.


However, I'll leave the guide here for those people who are stuck with 1.1:

To those of us who don't know, I'll summarize the situation.

- The libqt4-* packages are Qt 4.5.3
- The libqt4-maemo5-* packages are Qt 4.6.2
- The apps in extras-devel require libqt4-* to be 4.6.2, which is not the case at the moment
- The newly released shiny Nokia Qt SDK also requires libqt4-* to be 4.6.2, which it is not
- Developers of apps who want to use 4.6.2 which work on current devices need to link to libqt4-maemo5-* but there is poor (if any) support to it

Okay, so the above stuff prevents any wannable Qt developer from developing seriously for the N900.
But today (at 3:00 AM) after some trouble, I found out a possible work-arund until the precius PR 1.2 is released.

So, basically, all we need to get stuff working is libqt4-* version 4.6.2, and what a surprise, it is possible to install it via the SDK repository.

If anyone finds this is unaccurate, I'll happily correct it. :)
Please, read the guide before starting to proceed with the steps.

Big thanks to Andy1210 who helped me discovering it and also bricked his device during the process! :p

IMPORTANT:
DO NOT upgrade any other packages from the SDK repository, as it will very much brick your device. (This is from experience.)

MORE IMPORTANT:
I don't recommend non-developers to do this.
And I don't take ANY responsibity for anything.

1. App manager, menu, "Application catalogues"
2. Hit "New"
3. Enter the following:
Catalogue name: maemo.org SDK
Web address: http://repository.maemo.org/
Distribution: fremantle/sdk
Compnents: free non-free
4. Exit app manager and start a root terminal.
Code:

apt-get update
apt-get install libqt4-core

5. Basically, that's it. If something goes wrong, try to make apt to fix it.
Code:

apt-get -f install
You may have to remove the "mp-fremantle-generic-pr" package (or your version of it) before the above to make it work, which is responsible for notifying you of new updates. You won't need it anyway. (The buzz around PR 1.2 in TMO will be enough, you'll notice when it arrives anyway.)
Code:

apt-get remove mp-fremantle-generic-pr
The immediate result:
All the updates that require the new Qt version will succeed. (Ukeyboard won't since it requires more packages from PR 1.2.)

And finally, developers rejoice!
The brand new Nokia Qt SDK will work with the N900.

This is a quite sufficent solution for development, and if you'd like to make your app available to the rest of the word, you can still compile the app from the command line by linking to the libqt4-maemo5-* packages.
(Although the Qt Creator IDE won't do this for you.)

I hope this will help everyone who is as annoyed by this as I was. :)

F2thaK 2010-05-12 01:43

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
wow, no wonder we have f**k all for the N900 commercially

Andy1210 2010-05-12 01:45

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
Quote:

Originally Posted by Venemo (Post 654370)
IMPORTANT:
DO NOT upgrade any other packages from the SDK repository, as it will very much brick your device. (This is from experience.)

hehe, this is my experience :)

Venemo 2010-05-12 01:48

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
Quote:

Originally Posted by f2thak (Post 654374)
wow, no wonder we have f**k all for the N900 commercially

Yeah, at least until PR 1.2, which I doubt that it will be out in the foreseeable future.

slobodsky 2010-05-12 17:08

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
Yes, but this version of Qt is also buggy. And it won't help us promote applications to extras-testing. When I've bought N900, I've selected Maemo as the main target for my applications, but now I'm thinking about switching to Debian because of this strange policy.

Venemo 2010-05-12 18:36

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
Quote:

Originally Posted by slobodsky (Post 655442)
Yes, but this version of Qt is also buggy. And it won't help us promote applications to extras-testing. When I've bought N900, I've selected Maemo as the main target for my applications, but now I'm thinking about switching to Debian because of this strange policy.

True, but it's better than nothing.
And it lets you run the apps on the device with convenience.

tzsm98 2010-05-12 18:58

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
Thanks. Now I am able to update several applications that failed because of these issues. CPUfrequi, Healthcheck were the first two I tried. Both now install without a problem.

maya 2010-05-12 19:35

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
and now, to try or not try? lol

Tigerite 2010-05-12 19:47

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
Go for it - worked fine for me. It automatically uninstalled mp-fremantle-generic-pr (well mp-fremantle-203-pr in my case) and I can now install the cpuFreqUI update (never had a problem with HealthCheck though?)

noobmonkey 2010-05-12 23:26

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
the version of healthcheck in devel and extras is not dependent on 4.6 - i'm holding back uploading any new versions at the moment :D - would assume it was something else pythony related? :P


All times are GMT. The time now is 11:28.

vBulletin® Version 3.8.8