Go Back   maemo.org - Talk > OS / Platform > Development
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #1  
Old 2010-05-12, 01:37
Venemo's Avatar
Venemo Venemo is offline
 
Join Date: Aug 2009
Location: Budapest, Hungary
Posts: 1,296
Thanks!: 3,355
Thanked 1,773 Times in 552 Posts
Default 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!

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.

Last edited by Venemo; 2010-05-25 at 14:01.
Reply With Quote
The Following 24 Users Say Thank You to Venemo For This Useful Post:
  #2  
Old 2010-05-12, 01:43
F2thaK's Avatar
F2thaK F2thaK is offline
 
Join Date: Jan 2010
Location: Australia Mate
Posts: 4,365
Thanks!: 2,643
Thanked 2,467 Times in 1,106 Posts
Default 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
Reply With Quote
  #3  
Old 2010-05-12, 01:45
Andy1210's Avatar
Andy1210 Andy1210 is offline
 
Join Date: Jan 2010
Location: Hungary
Posts: 233
Thanks!: 219
Thanked 220 Times in 76 Posts
Send a message via MSN to Andy1210
Default Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)

Quote:
Originally Posted by Venemo View Post
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
__________________
Nokia N950 - PR1.3
OpenSUSE 12.2 / Windows 8
Reply With Quote
The Following 2 Users Say Thank You to Andy1210 For This Useful Post:
  #4  
Old 2010-05-12, 01:48
Venemo's Avatar
Venemo Venemo is offline
 
Join Date: Aug 2009
Location: Budapest, Hungary
Posts: 1,296
Thanks!: 3,355
Thanked 1,773 Times in 552 Posts
Default Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)

Quote:
Originally Posted by f2thak View Post
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.
Reply With Quote
  #5  
Old 2010-05-12, 17:08
slobodsky's Avatar
slobodsky slobodsky is offline
 
Join Date: Feb 2010
Location: Moscow
Posts: 63
Thanks!: 23
Thanked 41 Times in 25 Posts
Default 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.
__________________
Sorry for bad English. If you can point out mistakes in this post, send me a private message.
Reply With Quote
  #6  
Old 2010-05-12, 18:36
Venemo's Avatar
Venemo Venemo is offline
 
Join Date: Aug 2009
Location: Budapest, Hungary
Posts: 1,296
Thanks!: 3,355
Thanked 1,773 Times in 552 Posts
Default Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)

Quote:
Originally Posted by slobodsky View Post
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.
Reply With Quote
  #7  
Old 2010-05-12, 18:58
tzsm98's Avatar
tzsm98 tzsm98 is offline
 
Join Date: Nov 2009
Location: Oklahoma
Posts: 500
Thanks!: 274
Thanked 437 Times in 188 Posts
Default 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.
Reply With Quote
  #8  
Old 2010-05-12, 19:35
maya's Avatar
maya maya is offline
 
Join Date: Dec 2009
Location: Brasil
Posts: 141
Thanks!: 7
Thanked 5 Times in 4 Posts
Default Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)

and now, to try or not try? lol
Reply With Quote
  #9  
Old 2010-05-12, 19:47
Tigerite Tigerite is offline
 
Join Date: May 2010
Location: Peterborough, UK
Posts: 284
Thanks!: 135
Thanked 320 Times in 109 Posts
Default 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?)
Reply With Quote
  #10  
Old 2010-05-12, 23:26
noobmonkey's Avatar
noobmonkey noobmonkey is offline
 
Join Date: Nov 2009
Location: Worthing, England
Posts: 3,203
Thanks!: 2,570
Thanked 1,391 Times in 734 Posts
Default 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 - would assume it was something else pythony related? :P
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
Reply With Quote
Reply

Tags
libqt4, qt-sdk, remedy


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:23.