MeeCoLay/Workarounds

(FruitGo)
(corrected app icon stuff)
Line 38: Line 38:
== Adding apps/games to the applications menu ==
== Adding apps/games to the applications menu ==
-
After installing harmattan debians on fremantle using dpkg or the application manager some of the new installed files go to a wrong directory, so you need to move these files to have your application in the app-menu
+
After installing Harmattan packages on N900 you won't see any icon, as some directories are different on Fremantle and Harmattan
as as example   
as as example   
-
=== FruitGo ===
+
The app data is stored in optfs after installation...
 +
You'll have to move the desktop file and the icon to the right directories if you want to have an icon in the app menu
-
The Game data are stored in optfs correctly after installation... but you wont be able to see the game shortcut, you'll have t move the desktop file and the icon to the right directories.
+
 
-
the desktop file : you should move it from  
+
the desktop file: you should move it from  
  /usr/share/applications/
  /usr/share/applications/
to
to
-
  /usr/share/applications/hildon
+
  /usr/share/applications/hildon/
-
the icon, from :  
+
 
 +
the icon, from:  
  /usr/share/icons/hicolor/80x80/apps/
  /usr/share/icons/hicolor/80x80/apps/
-
to
+
or
  /usr/share/icons/hicolor/64x64/apps/
  /usr/share/icons/hicolor/64x64/apps/
 +
to
 +
/usr/share/icons/hicolor/scalable/apps/
Now you only need to modify the desktop file to make the game working with meecolay !  
Now you only need to modify the desktop file to make the game working with meecolay !  
-
on leafpad ( or any other text editor you like )
+
We'll take FruitGo as an example
 +
on leafpad (or any other text editor you like).
  leafpad /usr/share/applications/hildon/FruitGo.desktop
  leafpad /usr/share/applications/hildon/FruitGo.desktop
you will see this :  
you will see this :  
Line 75: Line 80:
  Terminal=false
  Terminal=false
  Name=FruitGo
  Name=FruitGo
-
  Exec=meecaoly /opt/FruitGo/bin/FruitGo
+
  Exec=meecolay /opt/FruitGo/bin/FruitGo
-
  Icon=/usr/share/icons/hicolor/64x64/apps/FruitGo80
+
  Icon=FruitGo80
  X-Window-Icon=
  X-Window-Icon=
  X-HildonDesk-ShowInToolbar=true
  X-HildonDesk-ShowInToolbar=true
  X-Osso-Type=application/x-executable
  X-Osso-Type=application/x-executable
-
now the game should work ! and dont forget to edit the icon section too and direct it to the right place ! and remove the ( .png )
+
 
 +
now the game should work!
 +
You may need to restart the phone for the changes to make effect.

Revision as of 14:06, 7 October 2012

Contents

Workarounds

Qt Mobility

Error:

   plugin cannot be loaded for module "QtMobility.location": Cannot load library /opt/qtm12/imports/QtMobility/location/libdeclarative_location.so: (/opt/qtm12/imports/QtMobility/location/libdeclarative_location.so: undefined symbol: _ZNK10QtMobility13QGeoMapObject10metaObjectEv)

Solution:

   LD_PRELOAD=/opt/qtm12/lib/libQtLocation.so meecolay <with your arguments>

Qt Mobility

Error:

   symbol lookup error: /home/opt/meecolay/opt/GTRacing/bin/GTRacing: undefined symbol: _ZN10QtMobility18QSystemScreenSaver23setScreenSave rInhibitedEb

Solution:

   LD_PRELOAD=/opt/qtm12/lib/libQtSystemInfo.so meecolay <with your arguments>

Error:

   undefined symbol: _ZN14QCameraControl16staticMetaObjectE

Solution:

   LD_PRELOAD=/opt/qtm12/lib/libQtMultimediaKit.so meecolay <with your arguments>

If you need to preload several libraries, do it that way:

   LD_PRELOAD="library1:library2"

QmSystem2

Error:

   symbol lookup error: /opt/meecolay/lib/libqmsystem2.so.1: undefined symbol: dsme_battery_empty_ind

Solution

   LD_PRELOAD=/opt/meecolay/lib/libdsme_dbus_if.so.0.2.0 meecolay <with your arguments>

Adding apps/games to the applications menu

After installing Harmattan packages on N900 you won't see any icon, as some directories are different on Fremantle and Harmattan as as example

The app data is stored in optfs after installation... You'll have to move the desktop file and the icon to the right directories if you want to have an icon in the app menu


the desktop file: you should move it from

/usr/share/applications/

to

/usr/share/applications/hildon/

the icon, from:

/usr/share/icons/hicolor/80x80/apps/

or

/usr/share/icons/hicolor/64x64/apps/

to

/usr/share/icons/hicolor/scalable/apps/

Now you only need to modify the desktop file to make the game working with meecolay ! We'll take FruitGo as an example on leafpad (or any other text editor you like).

leafpad /usr/share/applications/hildon/FruitGo.desktop

you will see this :

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name=FruitGo
Exec=/usr/bin/invoker --type=d -s /opt/FruitGo/bin/FruitGo
Icon=/usr/share/icons/hicolor/80x80/apps/FruitGo80.png
X-Window-Icon=
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

remove the exec commands and write meecolay instead, so the desktop file should look like this one :

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name=FruitGo
Exec=meecolay /opt/FruitGo/bin/FruitGo
Icon=FruitGo80
X-Window-Icon=
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

now the game should work! You may need to restart the phone for the changes to make effect.