Ticket #1959 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

Qtopia build key needs to be set

Reported by: f.hackenberger@… Owned by: julian_chu
Priority: high Milestone: Om2008.9
Component: Distro Version: Om2008.8
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible: always

Description

In order to enable users to recompile qtopia applications on their machines, we need to set the build key (see [1,2]), as it is generated from (among others) 'uname -m' output, which obviously varies as the machine running the build changes. Currently (on packages from [3]) it is set to: 'x86_64 Linux g++-4 full-config no-stl'. The attached patch modifies the bitbake recipe and fixes this problem.

Here is the error message one gets when trying to execute an application (plugin) on the Neo which was compiled on a machine with a different architecture:

# DISPLAY=:0 addressbook
Coult not load "/opt/Qtopia/plugins/application/libaddressbook.so" errorString() "The plugin '/opt/Qtopia/plugins/application/libaddressbook.so' uses incompatible Qt library. Expected build key "x86_64 Linux g++-4 full-config no-stl", got "i686 Linux g++-4 full-config no-stl""
addressbook: cannot load application: No such file or directory

[1] http://doc.trolltech.com/4.3/plugins-howto.html#the-build-key
[2] http://doc.trolltech.com/qtopia4.3/buildsystem/over-configure-options-qt-1.html
[3] http://downloads.openmoko.org/releases/Om2008.8-update/

Attachments

openmoko_qtopia_build.patch (971 bytes) - added by f.hackenberger@… 11 years ago.
A patch for the bitbake recipe

Change History

Changed 11 years ago by f.hackenberger@…

A patch for the bitbake recipe

comment:1 Changed 11 years ago by f.hackenberger@…

I forgot to mention that the patch sets the buildkey to 'arm-angstrom-linux-gnueabi'.

comment:2 Changed 11 years ago by f.hackenberger@…

Ooops, I misused Trac markup in the description. Sorry I was not aware of it, please treat it as ordinary text :-).

comment:3 Changed 11 years ago by f.hackenberger@…

Sorry, forget the patch, it does not work. The QT configure script seems to prepend the given -buildkey variable. Therefore we need to patch the qt configure script to remove the 'uname -m' output from the build key.

comment:4 Changed 11 years ago by zecke

Perfect, besides setting a milestone :)

comment:5 Changed 11 years ago by f.hackenberger@…

Sorry for not setting the milestone, but I though that would be up for the release manager to decide.
Shall I provide a patch for the configure script (I would have to cook one up) or are you going to hack it yourself?

comment:6 Changed 11 years ago by zecke

Patches are welcome, makes it easy to apply them. Please set HasPatch? keyword when attaching a patch (I don't get mail for them).

comment:7 Changed 11 years ago by zecke

  • Status changed from new to closed
  • Resolution set to fixed

Thanks. should be in org.openmoko.dev and org.openmoko.asu.stable soon.

comment:8 Changed 11 years ago by f.hackenberger@…

Sorry for not providing a patch early enough and thanks for fixing this!

Note: See TracTickets for help on using tickets.