View Single Post
Old 08-30-2015, 04:48 AM   #32
voidling
Junior Member
voidling began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2015
Device: kindle pw2
Does Minor Library Version Number Matter?

Hi all!
I still have a problem executing kterm and sadly I am at an impasse.
In a nutshell kterm does find the library, but it throws an internal error (which I am too inexperienced to analyze further).
I have symlinked the library into /usr/lib (1st try) and I changed the kterm.sh to set the library path in the shell script to /mnt/us/extensions/kterm (2nd try).
Then I realised I was still using kterm 0.6 and upgraded to 0.7.
All those efforts produced the same result (see below).

This is what my /usr/lib/libpng* looks like
Code:
[root@kindle root]# ls -l /usr/lib/libpng*
lrwxrwxrwx    1 root     root            11 Aug 28 23:23 /usr/lib/libpng.so -> libpng16.so
lrwxrwxrwx    1 root     root            18 Aug 29 22:24 /usr/lib/libpng12.so.0 -> libpng12.so.0.50.0
-rwxr-xr-x    1 root     root        100388 Aug 28 07:30 /usr/lib/libpng12.so.0.50.0
lrwxrwxrwx    1 root     root            19 Jul 31 13:53 /usr/lib/libpng16.so -> libpng16.so.16.15.0
lrwxrwxrwx    1 root     root            19 Jul 31 13:53 /usr/lib/libpng16.so.16 -> libpng16.so.16.15.0
-rwxr-xr-x    1 root     root        158032 Jul 31 13:50 /usr/lib/libpng16.so.16.15.0
The main difference to Micky Wickys post is that he has libpng12.so.0.39.0 whereas I have libpng12.so.0.50.0.

When executing kterm from usbnet-shell without the library I get this error message.
Code:
/mnt/us/extensions/kterm/bin/matchbox-keyboard: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
matchbox-keyboard failed to return valid window ID
: No such file or directory
So here I can not find the correct library - no big surprise.

When executing it with the library copied and symlinked in /usr/lib or when setting LD_LIBRARY_PATH in kterm.sh I get this message:
Code:
[root@kindle root]# /mnt/us/extensions/kterm/bin/kterm -d
config: /mnt/us/extensions/kterm/bin/../layouts/keyboard.xml
binary: /mnt/us/extensions/kterm/bin/matchbox-keyboard --xid
kb_env: MB_KBD_CONFIG=/mnt/us/extensions/kterm/bin/../layouts/keyboard.xml
/mnt/us/extensions/kterm/bin/matchbox-keyboard: error while loading shared libraries: /usr/lib/libpng12.so.0: internal error
matchbox-keyboard failed to return valid window ID
: No such file or directory

I am not concerned about the messages after the internal error - this is probably because I execute the binary from a remote shell (or not - I can start KOReader from usbnet and it works ). I wonder about the first line.
Do I get the "internal error" because I use libpng12.so.0.50.0?
Should I give it a try with *0.39.0? (if someone can provide the file)

Can you guys give me pointers how to investigate further?

I am pretty sure the problem is a case of PEBCAK as this works for everyone else ...but I am still grateful for any help.

Cheers!
voidling is offline   Reply With Quote