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)

Tigerite 2010-05-24 08:31

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

Originally Posted by Venemo (Post 667755)
To downgrade, use the following command from a root terminal:
Code:

apt-get install libqt4-core=4.5*

When I type this, I get a rather scary set of remove packages:

Code:

Selected version 4.5.3~git20090723-0maemo6+0m5 (downloads.maemo.nokia.com) for libqt4-core
The following packages were automatically installed and are no longer required:
  python2.5-qt4-common gstreamer-tools xulrunner lzma emutos-512k
  python-location pulseaudio-utils python2.5-sip4 gstreamer0.10-tools
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  as-config-applet-0 as-daemon-0 batterygraph camel-as-provider-0 cpufrequi
  healthcheck libas-storage-0 libqt4-dbus libqt4-gui libqt4-network
  libqt4-opengl libqt4-sql libqt4-sql-sqlite libqt4-svg libqt4-xml
  python2.5-qt4-core python2.5-qt4-gui storageusage
The following packages will be DOWNGRADED:
  libqt4-core

Ok, I know that batterygraph, cpufrequi, healthcheck and storageusage are not important (and nor are the as-* I believe) but the libqt4-* I am very concerned about - won't I brick my system?

saxen 2010-05-24 20:19

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
hi! it's me again! i've just removed location from my app, just to try how the rest of the app works, but there is another problem! it's about maemo5 :o

i've removed maemo5 from project file and from class files(WA_Maemo5StackedWindow, portrait, ecc...) and now it works! but, how to make maemo5 works??? :(

fcrochik 2010-05-24 20:30

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

Originally Posted by saxen (Post 673881)
hi! it's me again! i've just removed location from my app, just to try how the rest of the app works, but there is another problem! it's about maemo5 :o

i've removed maemo5 from project file and from class files(WA_Maemo5StackedWindow, portrait, ecc...) and now it works! but, how to make maemo5 works??? :(

Why did you remove maemo5 from your project? This is not a mobility package and it works fine on the device on both Qt 4.6 versions available

saxen 2010-05-24 20:52

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
it gave me an error like the "location" one, something like :

Quote:

rror while loading shared libraries: libQtLocation.so.1: cannot open shared object file: No such file or directory
/home/developer $
whit libMaemo5.so(or something similar) instead of libQtLocation.so.1! it works libQtLocation.so.1 :(

fcrochik 2010-05-24 20:59

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

Originally Posted by saxen (Post 673931)
it gave me an error like the "location" one, something like :



whit libMaemo5.so(or something similar) instead of libQtLocation.so.1! it works libQtLocation.so.1 :(

I probably can help you better if I understand what you are doing:
How are you compiling your application (Qt SDK, scratchbox,...)?
Are you trying to use the "official" Qt SDK updated to 4.6 (using any of the two hacks on this thread) or the "development" libqt4-maemo5-* packages?

Have you installed libqt4-maemo5 and/or libqt4-maemo5-maemo5 packages on your device?

Look at my post on page #4 with the list of libqt4 packages that you can/should update. I would still recommend you to use the libqt4-maemo5-* packages until pr1.2 is out

saxen 2010-05-24 21:30

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
i'm using nokia sdk, and i've used Venemo hack on first post of this thread. that's the list of installed qt packages

Quote:

libqt4-core 4.6.2
libqt4-dbus 4.6.2
libqt4-gui 4.6.2
libqt4-maemo5-core 4.6.2
libqt4-maemo5-dbus 4.6.2
libqt4-maemo5-gui 4.6.2
libqt4-maemo5-maemo5 4.6.2
libqt4-maemo5-network 4.6.2
libqt4-maemo5-opengl 4.6.2
libqt4-maemo5-phonon 4.6.2
libqt4-maemo5-svg 4.6.2
libqt4-maemo5-webkit 4.6.2
libqt4-maemo5-xml 4.6.2
libqt4-maemo5-xmlpatterns 4.6.2
libqt4-network 4.6.2
libqt4-opengl 4.6.2
libqt4-phonon 4.6.2
libqt4-qt3support 4.5.3
libqt4-sql 4.6.2
libqt4-sql-sqlite 4.6.2
libqt4-svg 4.6.2
libqt4-webkit 4.6.2
libqt4-xml 4.6.2
libqt4-xmlpatterns 4.6.2
are they right?

Venemo 2010-05-24 21:41

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

Originally Posted by saxen (Post 673989)
i'm using nokia sdk, and i've used Venemo hack on first post of this thread. that's the list of installed qt packages



are they right?

It seems so.

fcrochik 2010-05-24 21:45

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

Originally Posted by saxen (Post 673989)
i'm using nokia sdk, and i've used Venemo hack on first post of this thread. that's the list of installed qt packages



are they right?

You are missing libqt4-maemo5. The name is misleading because it looks like one of the "development" packages but is actually the maemo5 module of qt.

Just out of curiosity the name on the "development packages" for this package is libqt4-maemo5-maemo5

saxen 2010-05-24 22:06

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
how to get it?? same procedure described by venemo? i wonder why it has not been installed with first try :O

fcrochik 2010-05-24 22:16

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
You can just download just this file directly from the "pool" (look at my post on page 4)

saxen 2010-05-24 23:26

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
got it from pool, no way to install with app manager but worked with dpkg from terminal. tomorrow i'll give a try and i hope it will work. thanks for help ;)

ceroberts75 2010-05-25 00:28

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

Originally Posted by fcrochik (Post 670453)
IMPORTANT: Don't try this unless you know why you want to upgrade the Qt packages shipped with your n900 and MAKE SURE to read ALL the previous posts on this thread for the unintended side effects. Installing these packages DOES NOT mean that all the packages that depend on Qt packages will work. In fact, I would assume otherwise.


I decided to share this because I think is a little safer than adding the SDK catalog (not easier).

There is another way to get the 4.6.2 Qt packages - you can download them from http://repository.maemo.org/pool/fre...ree/q/qt4-x11/ and install them manually.

The packages are:
libqt4-core_4.6.2~git20100310-0maemo1+0m5_armel.deb
libqt4-dbus_4.6.2~git20100310-0maemo1+0m5_armel.deb
libqt4-gui_4.6.2~git20100310-0maemo1+0m5_armel.deb
libqt4-maemo5_4.6.2~git20100310-0maemo1+0m5_armel.deb
libqt4-multimedia_4.6.2~git20100310-0maemo1+0m5_armel.deb
libqt4-network_4.6.2~git20100310-0maemo1+0m5_armel.deb
libqt4-opengl_4.6.2~git20100310-0maemo1+0m5_armel.deb
libqt4-phonon_4.6.2~git20100310-0maemo1+0m5_armel.deb
libqt4-script_4.6.2~git20100310-0maemo1+0m5_armel.deb
libqt4-sql-sqlite_4.6.2~git20100310-0maemo1+0m5_armel.deb
libqt4-sql_4.6.2~git20100310-0maemo1+0m5_armel.deb
libqt4-svg_4.6.2~git20100310-0maemo1+0m5_armel.deb
libqt4-translations_4.6.2~git20100310-0maemo1+0m5_armel.deb
libqt4-webkit_4.6.2~git20100310-0maemo1+0m5_armel.deb
libqt4-xml_4.6.2~git20100310-0maemo1+0m5_armel.deb
libqt4-xmlpatterns_4.6.2~git20100310-0maemo1+0m5_armel.deb


Because you may want to install all of them I created a small script.

A little guide:
1. Save the two attached files to a NEW folder on your n900
2. open the terminal as the root user (if you don't know how, look around but it probably means that you should not try this... )
3. go to the directory where you saved the files.
4. if you don't have wget installed, install it:
Code:

apt-get install wget
5. run the script:
Code:

sh qt4-install.txt
6. you may want to remove "mp-fremantle-generic-pr" to avoid broken dependencies (again read first post on this thread)

The script(qt4-install.txt) is very simple and reads the list of files to download and install from the second file(qt4-packages.txt):

Code:

#!/bin/sh
while read line; do
    echo 'downloading: '$line
          wget http://repository.maemo.org/pool/fremantle/free/q/qt4-x11/$line
    dpkg -i $line
done < qt4-packages.txt

Last but not least: I BELIEVE developers should have (and had) their applications linked with the qt4-maemo (experimental) packages until PR 1.2 is out. It is just easier for users to install them and does not require hacks. The current policy to block qt packages from moving to testing sends a different message. A message that the right way of doing is using the "stock" packages that don't exist on the device. If you do so then you can't run the application on the device until PR 1.2 is out or you have to try some hack like this.


that was way easy. thanks!

ceroberts75 2010-05-25 00:41

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
works well so far. was able to reinstall my healthcheck and update the cpufrequi.

question....there was a folder for the maemo5 folder for my current version now in the update. is this because it is not recognizing my curreng qt files and wants me to install the older ones?

fcrochik 2010-05-25 01:10

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

Originally Posted by ceroberts75 (Post 674236)
works well so far. was able to reinstall my healthcheck and update the cpufrequi.

question....there was a folder for the maemo5 folder for my current version now in the update. is this because it is not recognizing my curreng qt files and wants me to install the older ones?

Yes and it will not work if you try to update. If you want to get rid of it and stop receiving error messages when you install new packages - just remove mp-fremantle-generic-pr. You will find instructions on the first post.

Venemo 2010-05-25 13:56

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

I'm just pointing out the obvious here:
Now that PR 1.2 is released, everything in this thread is obsolete. :)

You can go crazy with Nokia Qt SDK without all the hacky stuff.

saxen 2010-05-25 18:13

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
that's ironic! i make it works this morning, and few minutes later i read about pr 1.2 release :O

btw, that's good enough, i've to wait till tomorrow to get update, so usefull one -day-hack =P

ceroberts75 2010-05-25 18:16

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

Originally Posted by saxen (Post 676619)
that's ironic! i make it works this morning, and few minutes later i read about pr 1.2 release :O

btw, that's good enough, i've to wait till tomorrow to get update, so usefull one -day-hack =P



yeah...pretty hilarious...i just did it yesterday...just finished flashing to prr1.2 and just finished restoring and now dl'g and installing the applications now....(95 of them) hope all 689mb goes fast!

saxen 2010-05-25 22:15

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
now that pr 1.2 is out we have to move faster with qt development and hope to see more cool and stylish apps ;)

gri 2010-05-25 23:07

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

Originally Posted by saxen (Post 677273)
now that pr 1.2 is out we have to move faster with qt development and hope to see more cool and stylish apps ;)

I'm praying for better debugging support since it currently doesn't work with scratchbox nor with madde :)

flgor 2010-05-26 07:40

Re: A remedy for the Qt 4.6 situation (And the new Qt SDK works!)
 
Can someone give me a link for how to update my N900 to PR 1.2?

I did today the steps described in the Venemo post. It works but when i run my qt application it looks different with the new qt4.6.2 then with the old qt 4.5.3.


All times are GMT. The time now is 03:22.

vBulletin® Version 3.8.8