After a long search through the net, I have found some workaround which works in my system. I'm putting it here hoping that this will help other users in the future.
Some general notes before everything:1. I used the latest 2012.08 KDE image, localized to Greek language using addlocale. My kernel version is 3.2.18-pclos2.pae.bfs. I had this problem with previous versions also and maybe this problem occurs in other localizations too.
2. The problem is not PCLinuxOS specific as it happens in many other distros. This workaround is based on tips and advices from other distros' users.
http://simos.info/blog/archives/872https://productforums.google.com/forum/#!category-topic/earth/linux/BT5kyvlwFME3. From what I have figured, the problem mainly occurs because Google Earth uses outdated or problematic versions of certain qt libraries.
On with the workaround.
1. First thing first, we need to "force" Google Earth to use system versions of the following libraries and not the ones provided by the application:
libQtCore.so.4
ibQtGui.so.4
libQtNetwork.so.4
libQtWebKit.so.4libqtphonon.so.4 is also mentioned in Google discussion but I didn't have to do anything with it.
Go to directory
/opt/google/earth/freeType the following commands one by one (as root):
mv libQtCore.so.4 libQtCore.so.4.bak
mv libQtGui.so.4 libQtGui.so.4.bak
mv libQtNetwork.so.4 libQtNetwork.so.4.bak
mv libQtWebKit.so.4 libQtWebKit.so.4.bak
ln -s /usr/lib/libQtCore.so.4.8.2 libQtCore.so.4
ln -s /usr/lib/libQtGui.so.4.8.2 libQtGui.so.4
ln -s /usr/lib/libQtNetwork.so.4.8.2 libQtNetwork.so.4
ln -s /usr/lib/libQtWebKit.so.4.8.2 libQtWebKit.so.4This will backup the original libraries and create links to the system ones. The versions of these libraries may be different in other systems, so check them out first.
2. The same procedure has to be followed for two other libraries:
libqgif.so and
libqjpeg.so, located under
/opt/google/free/plugins/imageformatsThe commands are (again as root):
mv libqgif.so ligqgif.so.bak
mv libqjpeg.so ligqjpeg.so.bak
ln -s /usr/lib/qt4/plugins/imageformats/ligqgif.so libqgif.so
ln -s /usr/lib/qt4/plugins/imageformats/ligqjpeg.so libqjpeg.so3. Finally, open synaptic and install
libfreeimage3Then create a symbolic link to this library inside
/opt/google/earth/free using the following command (as root):
ln -s /usr/lib/libfreeimage.so.3 libfreeimage.so.3Also add the following line to
/opt/google/earth/free/googleearthexport LD_PRELOAD=/usr/lib/libfreeimage.so.3just before the last line that reads
LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./googleearth-bin "$@"I must note that this final step didn't work in my case. Google Earth started, giving the following error message in console:
libpng warning: Application built with libpng-1.2.47 but running with 1.5.4The interface was partially fixed but when I tried to view images or connect to my Google Account, the program crashed again.
I had to use a replacement file for libfreeimage.so.3 provided by some guy in the Google discussion and put it in /opt/google/earth/free
In this case, the change to
/opt/google/earth/free/googleearth should be:
export LD_PRELOAD=libfreeimage.so.3
LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./googleearth-bin "$@"I'm not sure how safe is this but I couldn't get it to work with the one provided by PCLinuxOS. Maybe Google Earth needs a specific version? I don't know.
Here are two screenshots of Google Earth, the first using the native libfreeimage.so.3 and the second using the replacement one


It is obvious that the first instance is missing the icons, the buttons and the checkmarks.
I put the specific part of this discussion (along with the link to the replacement files) here, in case someone from our developers' team would like to have a look at it:
It is a long-standing problem of the Qt library Google Earth uses. If your language is not English, you cannot see any character at all.
We need to replace the Qt libraries as well as some other files to prevent segfault:
1. "Good" Qt libraries from Debain Sqeeze (version 4.6.3), including libQtCore.so.4, libQtGui.so.4, libQtNetwork.so.4, libQtWebKit.so.4, libphonon.so.4
2. Plugins folder containing libqgif.so and libqjpeg.so from Google Earth 5.2
3. libfreeimage.so.3 from another distro Maverick (version 3.13.1)
Paste all the files above into the Google Earth folder to replace the existing ones, then add a line "export LD_PRELOAD=libfreeimage.so.3" before the line "exec "./googleearth-bin" "$@"" in file googleearth.
Now you may get a clear and elegant interface.
It took me more than 5 hours to find the solution. I hope it helpsI have all the files packed.
http://goo.gl/GxLQwNote again that I didn't have to replace ALL the files, just libfreeimage.so.3
Thanks for reading and hope this post will be useful to someone
