You are not logged in.

#1 2007-08-01 23:39:53

Tido
Member
Registered: 2007-06-21
Posts: 65

Komodo Dislikes Pango on Arch64

I'm having an issue with Komodo IDE (a Mozilla-based application) where the text in files and open-files boxes is represented by squares instead of the actual text.  When I run Komodo from the shell, it spits the following error when trying to display the text:

(komodo-bin:7966): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64

Komodo is a 32 bit application and I have lib32-pango installed, but it ignores it (though seems to have no trouble knowing to use all the other 32bit libs).  Any ideas how I can get it to work?

Here is an example of what it looks like:
6blgcxf

Last edited by Tido (2007-08-01 23:47:08)

Offline

#2 2007-08-02 02:44:02

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Komodo Dislikes Pango on Arch64

Maybe there's a solution here:

http://bbs.archlinux.org/viewtopic.php?id=30221

Offline

#3 2007-08-03 09:51:11

Tido
Member
Registered: 2007-06-21
Posts: 65

Re: Komodo Dislikes Pango on Arch64

Thanks to that thread and some modification, I found a way to make it work.  This assumes you've installed all the lib32 packages from [community]. Here's what I did.

1. Create the directory /etc/pango32/

2. Create /etc/pango32/pango.modules and insert the following:

# Pango Modules file
# Created for 32bit compatibility with Mozilla-based applications
# http://bbs.archlinux.org/viewtopic.php?id=35820
#
# ModulesPath = /opt/lib32/usr/lib/pango/1.6.0/modules
#
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-arabic-lang.so ArabicScriptEngineLang PangoEngineLang PangoRenderNone arabic:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-basic-fc.so BasicScriptEngineFc PangoEngineShape PangoRenderFc armenian:* bopomofo:* cherokee:* coptic:* cyrillic:* deseret:* ethiopic:* georgian:* gothic:* greek:* han:* hiragana:* katakana:* latin:* ogham:* old-italic:* runic:* canadian-aboriginal:* yi:* braille:* cypriot:* limbu:* osmanya:* shavian:* linear-b:* ugaritic:* glagolitic:* cuneiform:* phoenician:* common:
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-lang.so devaIndicScriptEngineLang PangoEngineLang PangoRenderNone devanagari:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-lang.so bengIndicScriptEngineLang PangoEngineLang PangoRenderNone bengali:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-lang.so guruIndicScriptEngineLang PangoEngineLang PangoRenderNone gurmukhi:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-lang.so gujrIndicScriptEngineLang PangoEngineLang PangoRenderNone gujarati:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-lang.so oryaIndicScriptEngineLang PangoEngineLang PangoRenderNone oriya:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-lang.so tamlIndicScriptEngineLang PangoEngineLang PangoRenderNone tamil:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-lang.so teluIndicScriptEngineLang PangoEngineLang PangoRenderNone telugu:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-lang.so kndaIndicScriptEngineLang PangoEngineLang PangoRenderNone kannada:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-lang.so mlymIndicScriptEngineLang PangoEngineLang PangoRenderNone malayalam:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-lang.so sinhIndicScriptEngineLang PangoEngineLang PangoRenderNone sinhala:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-syriac-fc.so SyriacScriptEngineFc PangoEngineShape PangoRenderFc syriac:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-thai-fc.so ThaiScriptEngineFc PangoEngineShape PangoRenderFc thai:* lao:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-arabic-fc.so ArabicScriptEngineFc PangoEngineShape PangoRenderFc arabic:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-tibetan-fc.so TibetanScriptEngineFc PangoEngineShape PangoRenderFc tibetan:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-fc.so devaScriptEngineFc PangoEngineShape PangoRenderFc devanagari:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-fc.so bengScriptEngineFc PangoEngineShape PangoRenderFc bengali:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-fc.so guruScriptEngineFc PangoEngineShape PangoRenderFc gurmukhi:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-fc.so gujrScriptEngineFc PangoEngineShape PangoRenderFc gujarati:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-fc.so oryaScriptEngineFc PangoEngineShape PangoRenderFc oriya:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-fc.so tamlScriptEngineFc PangoEngineShape PangoRenderFc tamil:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-fc.so teluScriptEngineFc PangoEngineShape PangoRenderFc telugu:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-fc.so kndaScriptEngineFc PangoEngineShape PangoRenderFc kannada:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-fc.so mlymScriptEngineFc PangoEngineShape PangoRenderFc malayalam:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-indic-fc.so sinhScriptEngineFc PangoEngineShape PangoRenderFc sinhala:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-thai-lang.so ThaiScriptEngineLang PangoEngineLang PangoRenderNone thai:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-hebrew-fc.so HebrewScriptEngineFc PangoEngineShape PangoRenderFc hebrew:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-basic-x.so BasicScriptEngineX PangoEngineShape PangoRenderX common:
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-hangul-fc.so HangulScriptEngineFc PangoEngineShape PangoRenderFc hangul:*
/opt/lib32/usr/lib/pango/1.6.0/modules/pango-khmer-fc.so KhmerScriptEngineFc PangoEngineShape PangoRenderFc khmer:*

3. Next create file /etc/pango32/pangorc containing the following:

[Pango]
ModuleFiles=/etc/pango32/pango.modules
[PangoX]
AliasFiles=/etc/pango/pangox.aliases

4. Now all you need is a script to start Komodo (or Komodo Edit). Save the following as komodo.start:

#!/bin/sh
export GTK_PATH=/opt/lib32/usr/lib/gtk-2.0
export PANGO_RC_FILE=/etc/pango32/pangorc
linux32 /opt/Komodo-IDE-4.1/bin/komodo $@

Then start Komodo with sh /path/to/komodo.start and you're good to go.  This will work fine for Komodo Edit as well by changing the path in komodo.start.

Last edited by Tido (2007-08-03 09:51:58)

Offline

#4 2008-02-05 23:56:49

kchaja
Member
Registered: 2008-02-05
Posts: 1

Re: Komodo Dislikes Pango on Arch64

Thank you for great guide, it works for openKomodo and Tuxcmd either smile

Offline

#5 2009-02-16 06:55:31

Nixie
Member
Registered: 2008-09-24
Posts: 51

Re: Komodo Dislikes Pango on Arch64

Thank you Tido for posting that. It helped me get Foxit reader working on a 64bit machine

Offline

Board footer

Powered by FluxBB