Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
googleearth workaround possible?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
EasterParade
l33t
l33t


Joined: 26 Jul 2003
Posts: 938

PostPosted: Fri Mar 28, 2014 10:01 pm    Post subject: Reply with quote

Fitzcarraldo wrote
Quote:
It's bloody annoying.


:P

Thank you for the link; might try it out. Other than that: random is random. Googleearth in my overlay works without
crashes. On my hubbys box instead it crashes but works after third or fourth fire up - more or less.
Looks like the stuff is on the brink of dying. No one these days wants transparency no more, idn´t it? :roll:
Oops ... just saying

Good luck :)
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Thu Apr 03, 2014 2:10 am    Post subject: Reply with quote

Well, I found a work-around.

It seems my problem is probably the closed-source FGLRX driver. I tried the widely-known fix by amirpli for the 64-bit version of Google Earth (see Comment 9 in Gentoo Bugzilla Bug Report No. 490066) but it didn't work in my case.

Before applying amirpli's fix:

Code:
$ googleearth
[0403/012031:ERROR:net_util.cc(2195)] Not implemented reached in bool net::HaveOnlyLoopbackAddresses()
[0403/012033:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012033:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012033:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012033:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012033:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012033:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012033:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012033:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012033:WARNING:backend_impl.cc(1875)] Destroying invalid entry.
[0403/012033:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012033:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012033:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012033:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
Google Earth has caught signal 11.



We apologize for the inconvenience, but Google Earth has crashed.
 This is a bug in the program, and should never happen under normal
 circumstances. A bug report and debugging data have been written
 to this text file:

    /home/fitzcarraldo/.googleearth/crashlogs/crashlog-533ca953.txt

Please include this file if you submit a bug report to Google.

After applying amirpli's fix, virtually the same error message:

Code:
$ googleearth         
[0403/012921:ERROR:net_util.cc(2195)] Not implemented reached in bool net::HaveOnlyLoopbackAddresses()
[0403/012922:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012922:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012922:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012922:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012922:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012922:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012922:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012922:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012922:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012922:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012922:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0403/012922:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
Google Earth has caught signal 11.



We apologize for the inconvenience, but Google Earth has crashed.
 This is a bug in the program, and should never happen under normal
 circumstances. A bug report and debugging data have been written
 to this text file:

    /home/fitzcarraldo/.googleearth/crashlogs/crashlog-533cadbd.txt

Please include this file if you submit a bug report to Google.

And here are the contents of the log file:

Code:
$ cat /home/fitzcarraldo/.googleearth/crashlogs/crashlog-533cadbd.txt
Major Version 7
Minor Version 1
Build Number 0002
Build Date Oct  7 2013
Build Time 12:34:45
OS Type 3
OS Major Version 3
OS Minor Version 13
OS Build Version 7
OS Patch Version 0
Crash Signal 11
Crash Time 1396485565
Up Time 1.83809

Stacktrace from glibc:
./libgoogleearth_free.so(+0x23922c)[0x7f01226b922c]
./libgoogleearth_free.so(+0x23948d)[0x7f01226b948d]
/lib64/libpthread.so.0(+0x102b0)[0x7f01234422b0]
./libbase.so(_ZN5earth15GfxCardInfoUnix25GetGraphicsCardMemoryInMBERi+0xe)[0x7f011b3e654e]
/opt/googleearth/libevll.so(_ZN5earth4evll13VisualContext26DetectHardwareCapabilitiesEv+0x450)[0x7f0108656180]
/opt/googleearth/libevll.so(_ZN5earth4evll13VisualContext11OpenContextEN3Gap3Gfx25igRenderDestinationFormatERKNS0_8InitInfoE+0x1f4)[0x7f01086565c4]
/opt/googleearth/libevll.so(_ZN5earth4evll13VisualContext4initERKNS0_8InitInfoE+0x123)[0x7f0108656723]
/opt/googleearth/libevll.so(_ZN5earth4evll17RenderContextImpl4initERKNS0_8InitInfoE+0xeb)[0x7f0108503b9b]
./librender.so(_ZN12RenderWidget6SetApiEPN5earth4evll3APIE+0x7a)[0x7f011872e64a]
./librender.so(_ZN5earth6render12RenderWindow12createWidgetEv+0x17c)[0x7f011871d12c]
./libgoogleearth_free.so(_ZN5earth6client12ModuleWidget9showEventEP10QShowEvent+0x86)[0x7f01226999d6]
./libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x599)[0x7f01216cd299]
./libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xac)[0x7f012167649c]
./libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x20f)[0x7f012167e73f]
./libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8c)[0x7f011f95ca6c]
./libQtGui.so.4(_ZN14QWidgetPrivate11show_helperEv+0x12a)[0x7f01216cf2ca]
./libQtGui.so.4(_ZN14QWidgetPrivate12showChildrenEb+0xb1)[0x7f01216cf0e1]
./libQtGui.so.4(_ZN14QWidgetPrivate11show_helperEv+0x3f)[0x7f01216cf1df]
./libQtGui.so.4(_ZN7QWidget10setVisibleEb+0x1aa)[0x7f01216cf5da]
./libQtGui.so.4(_ZN14QWidgetPrivate12showChildrenEb+0x146)[0x7f01216cf176]
./libQtGui.so.4(_ZN14QWidgetPrivate11show_helperEv+0x3f)[0x7f01216cf1df]
./libQtGui.so.4(_ZN14QWidgetPrivate12showChildrenEb+0xb1)[0x7f01216cf0e1]
./libQtGui.so.4(_ZN14QWidgetPrivate11show_helperEv+0x3f)[0x7f01216cf1df]
./libQtGui.so.4(_ZN7QWidget10setVisibleEb+0x1aa)[0x7f01216cf5da]
./libQtGui.so.4(_ZN14QWidgetPrivate12showChildrenEb+0x146)[0x7f01216cf176]
./libQtGui.so.4(_ZN14QWidgetPrivate11show_helperEv+0x3f)[0x7f01216cf1df]
./libQtGui.so.4(_ZN14QWidgetPrivate12showChildrenEb+0xb1)[0x7f01216cf0e1]
./libQtGui.so.4(_ZN14QWidgetPrivate11show_helperEv+0x3f)[0x7f01216cf1df]
./libQtGui.so.4(_ZN7QWidget10setVisibleEb+0x1aa)[0x7f01216cf5da]
./libQtGui.so.4(_ZN14QWidgetPrivate12showChildrenEb+0x146)[0x7f01216cf176]
./libQtGui.so.4(_ZN14QWidgetPrivate11show_helperEv+0x3f)[0x7f01216cf1df]
./libQtGui.so.4(_ZN7QWidget10setVisibleEb+0x1aa)[0x7f01216cf5da]
./libQtGui.so.4(_ZN14QWidgetPrivate12showChildrenEb+0x146)[0x7f01216cf176]
./libQtGui.so.4(_ZN14QWidgetPrivate11show_helperEv+0x3f)[0x7f01216cf1df]
./libQtGui.so.4(_ZN7QWidget10setVisibleEb+0x1aa)[0x7f01216cf5da]
./libQtGui.so.4(_ZN14QWidgetPrivate12showChildrenEb+0x146)[0x7f01216cf176]
./libQtGui.so.4(_ZN14QWidgetPrivate11show_helperEv+0x3f)[0x7f01216cf1df]
./libQtGui.so.4(_ZN7QWidget10setVisibleEb+0x1aa)[0x7f01216cf5da]
./libQtGui.so.4(_ZN7QWidget10showNormalEv+0x3d)[0x7f01216c0c0d]
./libgoogleearth_free.so(_ZN10MainWindow18readScreensizeInfoEv+0xbc5)[0x7f01226961a5]
./libgoogleearth_free.so(_ZN5earth6client11Application12SetupMainWinENS0_3Kvw7ProductEb+0x323)[0x7f0122742763]
./libgoogleearth_free.so(_ZN5earth6client11Application3runEv+0x700)[0x7f0122749230]
./libgoogleearth_free.so(+0x238c42)[0x7f01226b8c42]
./libgoogleearth_free.so(earthmain+0x1dc)[0x7f01226b8e4c]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f0122db1a55]
./googleearth-bin[0x4008b9]

This line looks suspiciously like Google Earth is having a problem with the GPU driver:

Code:
./libbase.so(_ZN5earth15GfxCardInfoUnix25GetGraphicsCardMemoryInMBERi+0xe)[0x7f011b3e654e]

Anyway, I decided to try installing the 32-bit version of Google Earth on my multilib Gentoo installation, so I copied googleearth-7.1.2.2041.ebuild to the local overlay directory on my main laptop and hacked the ebuild to be the following:

Code:
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/googleearth/googleearth-7.1.2.2041.ebuild,v 1.1 2014/02/08 15:56:20 mschiff Exp $

EAPI=5

inherit pax-utils eutils unpacker fdo-mime gnome2-utils

DESCRIPTION="A 3D interface to the planet"
HOMEPAGE="http://earth.google.com/"
# no upstream versioning, version determined from help/about
# incorrect digest means upstream bumped and thus needs version bump
SRC_URI="http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb
                        -> GoogleEarthLinux-${PV}_i386.deb"
LICENSE="googleearth GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="mirror splitdebug"
IUSE="+bundled-libs"

QA_PREBUILT="*"

RDEPEND="
        dev-libs/glib:2
        dev-libs/nspr
        media-libs/fontconfig
        media-libs/freetype
        net-misc/curl
        sys-devel/gcc[cxx]
        sys-libs/zlib
        virtual/glu
        virtual/opengl
        virtual/ttf-fonts
        x11-libs/libICE
        x11-libs/libSM
        x11-libs/libX11
        x11-libs/libXi
        x11-libs/libXext
        x11-libs/libXrender
        x11-libs/libXau
        x11-libs/libXdmcp
        !bundled-libs? (
                dev-db/sqlite:3
                dev-libs/expat
                dev-libs/nss
                sci-libs/gdal
                sci-libs/proj
        )"
DEPEND="dev-util/patchelf"

S=${WORKDIR}/opt/google/earth/free

pkg_nofetch() {
        einfo "Wrong checksum or file size means that Google silently replaced the distfile with a newer version."
        einfo "Note that Gentoo cannot mirror the distfiles due to license reasons, so we have to follow the bump."
        einfo "Please file a version bump bug on http://bugs.gentoo.org (search existing bugs for googleearth first!)."
        einfo "By redigesting the file yourself, you will install a different version than the ebuild says, untested!"
}

src_unpack() {
        # default src_unpack fails with deb2targz installed, also this unpacks the data.tar.lzma as well
        unpack_deb GoogleEarthLinux-${PV}_i386.deb

        if ! use bundled-libs ; then
                einfo "removing bundled libs"
                cd opt/google/earth/free || die
                # sci-libs/gdal
                rm -v libgdal.so.1 || die
                # dev-db/sqlite
                rm -v libsqlite3.so || die
                # dev-libs/nss
                rm -v libplc4.so libplds4.so libnspr4.so libnssckbi.so libfreebl3.so \
                        libnssdbm3.so libnss3.so libnssutil3.so libsmime3.so libnsssysinit.so \
                        libsoftokn3.so libssl3.so || die
                # dev-libs/expat
                rm -v libexpat.so.1 || die
                # sci-libs/proj
                rm -v libproj.so.0 || die
                # dev-qt/qtcore:4 dev-qt/qtgui:4 dev-qt/qtwebkit:4
#               rm -v libQt{Core,Gui,Network,WebKit}.so.4 || die
#               rm -rv plugins/imageformats || die
        fi
}

src_prepare() {
        # we have no ld-lsb.so.3 symlink
        # thanks to Nathan Phillip Brink <ohnobinki@ohnopublishing.net> for suggesting patchelf
        einfo "running patchelf"
        patchelf --set-interpreter /lib/ld-linux.so.2 ${PN}-bin || die "patchelf failed"

        # Set RPATH for preserve-libs handling (bug #265372).
        local x
        for x in * ; do
                # Use \x7fELF header to separate ELF executables and libraries
                [[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
                patchelf --set-rpath '$ORIGIN' "${x}" ||
                        die "patchelf failed on ${x}"
        done
        for x in plugins/*.so ; do
                [[ -f ${x} ]] || continue
                patchelf --set-rpath '$ORIGIN/..' "${x}" ||
                        die "patchelf failed on ${x}"
        done
        for x in plugins/imageformats/*.so ; do
                [[ -f ${x} ]] || continue
                patchelf --set-rpath '$ORIGIN/../..' "${x}" ||
                        die "patchelf failed on ${x}"
        done

        epatch "${FILESDIR}"/${PN}-${PV%%.*}-desktopfile.patch
}

src_install() {
        make_wrapper ${PN} ./${PN} /opt/${PN} .

        insinto /usr/share/mime/packages
        doins "${FILESDIR}/${PN}-mimetypes.xml" || die

        domenu google-earth.desktop

        for size in 16 22 24 32 48 64 128 256 ; do
                newicon -s ${size} product_logo_${size}.png google-earth.png
        done

        rm -rf xdg-mime xdg-settings google-earth google-earth.desktop product_logo_*

        insinto /opt/${PN}
        doins -r *

        fperms +x /opt/${PN}/${PN}{,-bin}
        cd "${ED}" || die
        find . -type f -name "*.so.*" -exec fperms +x '{}' +

        pax-mark -m "${ED%/}"/opt/${PN}/${PN}-bin
}

pkg_preinst() {
        gnome2_icon_savelist
}

pkg_postinst() {
        elog "When you get a crash starting Google Earth, try adding a file ~./config/Google/GoogleEarthPlus.conf"
        elog "with the following options:"
        elog "lastTip = 4"
        elog "enableTips = false"
        elog ""
        elog "In addition, the use of free video drivers may cause problems associated with using the Mesa"
        elog "library. In this case, Google Earth 6x likely only works with the Gallium3D variant."
        elog "To select the 32bit graphic library use the command:"
        elog "  eselect mesa list"
        elog "For example, for Radeon R300 (x86):"
        elog "  eselect mesa set r300 2"
        elog "For Intel Q33 (amd64):"
        elog "  eselect mesa set 32bit i965 2"
        elog "You may need to restart X afterwards"

        fdo-mime_desktop_database_update
        fdo-mime_mime_database_update
        gnome2_icon_cache_update
}

pkg_postrm() {
        fdo-mime_desktop_database_update
        fdo-mime_mime_database_update
        gnome2_icon_cache_update
}


Code:
# emerge -C googleearth # Get rid of the non-functioning 64-bit version.
# cp /usr/portage/sci-geosciences/googleearth/googleearth-7.1.2.2041.ebuild /usr/local/portage/sci-geosciences/googleearth/
# cp /usr/portage/sci-geosciences/googleearth/files/* /usr/local/portage/sci-geosciences/googleearth/files/
# cd /usr/local/portage/sci-geosciences/googleearth/
# nano googleearth-7.1.2.2041.ebuild
# ebuild googleearth-7.1.2.2041.ebuild manifest
# emerge googleearth::local_overlay

And... it works. 8) The only thing that does not work is that the Panoramio pictures are not displayed (a well-known problem for Google Earth in Linux), but that might be a problem with Google Earth in KDE (see amirpli's comment in the aforementioned bug report) and not with merging the 32-bit version of Google Earth.

Anyway, Google Earth is back in business in Gentoo on my main laptop, although it's ridiculous that I've had to spend so many hours to fix something that works out-of-the-box in Windows.
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
nlsa8z6zoz7lyih3ap
Guru
Guru


Joined: 25 Sep 2007
Posts: 388
Location: Canada

PostPosted: Thu Apr 03, 2014 2:39 pm    Post subject: Reply with quote

Code:
# emerge -C googleearth # Get rid of the non-functioning 64-bit version.
# cp /usr/portage/sci-geosciences/googleearth/googleearth-7.1.2.2041.ebuild /usr/local/portage/sci-geosciences/googleearth/
# cp /usr/portage/sci-geosciences/googleearth/files/* /usr/local/portage/sci-geosciences/googleearth/files/
# cd /usr/local/portage/sci-geosciences/googleearth/
# nano googleearth-7.1.2.2041.ebuild
# ebuild googleearth-7.1.2.2041.ebuild manifest
# emerge googleearth::local_overlay


Works for me. Many many thanks for this solution.
Back to top
View user's profile Send private message
EasterParade
l33t
l33t


Joined: 26 Jul 2003
Posts: 938

PostPosted: Wed Apr 23, 2014 5:48 am    Post subject: Reply with quote

Many thanks Fitzcarraldo. Bye bye 64bit googleearth; 32bit just works fine.
You`ve gone through quite a lot to make this happen.
:D
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3920
Location: Hamburg

PostPosted: Wed Apr 23, 2014 3:27 pm    Post subject: Reply with quote

Quote:
The only thing that does not work is that the Panoramio pictures are not displayed (a well-known problem for Google Earth in Linux), but that might be a problem with Google Earth in KDE (see amirpli's comment in the aforementioned bug report) and not with merging the 32-bit version of Google Earth.
KDE seems likely not to be the culprit, it still fails to load images under fluxbox too.
Back to top
View user's profile Send private message
JohnN
Apprentice
Apprentice


Joined: 05 Jul 2005
Posts: 158
Location: Claremont, CA

PostPosted: Thu Jul 10, 2014 12:59 am    Post subject: Reply with quote

This didn't change googleearth behavior for me at all. (It doesn't crash, but it does produce the famous...

Quote:
libGL error: failed to load driver: nouveau
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=verbose for more details.


...message, and then displays a nearly all-white earth).

Also, I can't emerge the local overlay version at all if I toggle the bundled-libs flag off. Is this correct?

FInally, is the emul-linux-x86-opengl the only required 32-bit package? I have most but not all of them installed.
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Mon Nov 24, 2014 8:50 pm    Post subject: Reply with quote

In case it is of help to anyone using the 32-bit Google Earth installed by the ebuild for 32-bit sci-geosciences/googleearth-7.1.2.2041 that I posted back in April 2014 ...

After recently updating x11-drivers/ati-drivers to Version 14.9-r1, I found that sci-geosciences/googleearth-7.1.2.2041 complained that my graphics card is too old to handle Google Earth's graphics. I surmised that the latest version of app-emulation/emul-linux-x86-opengl (Version 20140508) is too old for the latest version of x11-drivers/ati-drivers, so I did the following, which fixed the problem:

Code:
# USE="abi_x86_32" emerge ati-drivers
# emerge googleearth


Ref. http://wiki.gentoo.org/wiki/Multilib_System_without_emul-linux_Packages
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3920
Location: Hamburg

PostPosted: Fri Dec 12, 2014 10:34 am    Post subject: Reply with quote

nlsa8z6zoz7lyih3ap wrote:
Code:
# emerge -C googleearth # Get rid of the non-functioning 64-bit version.
# cp /usr/portage/sci-geosciences/googleearth/googleearth-7.1.2.2041.ebuild /usr/local/portage/sci-geosciences/googleearth/
# cp /usr/portage/sci-geosciences/googleearth/files/* /usr/local/portage/sci-geosciences/googleearth/files/
# cd /usr/local/portage/sci-geosciences/googleearth/
# nano googleearth-7.1.2.2041.ebuild
# ebuild googleearth-7.1.2.2041.ebuild manifest
# emerge googleearth::local_overlay


Works for me. Many many thanks for this solution.
Hhm, I had to copy the subdirectory too first :
Code:
t44 /usr/local/portage/sci-geosciences/googleearth # cp -ar /usr/portage/sci-geosciences/googleearth/files/ .
and get now :
Code:
/opt/googleearth $ ./googleearth
./googleearth-bin: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory
UpdateI had to compile the 32bit libs for few dozends X11 and Gl libs too, now GE is running here too.
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Mon Mar 02, 2015 2:04 am    Post subject: Panoramio photos displayed by Google Earth in Gentoo ~amd64 Reply with quote

Well, just for the hell of it I decided to get Panoramio photos working in Google Earth installed using the hacked ebuild I posted in April 2014. Here is how I did it, although it is yet another hack: I use 32-bit libraries I downloaded from the Web. It works for me, though! 8)

Background

I am running Google Earth 7.1.2.2041 installed from a local overlay (see my April 2014 post) in KDE 4.14.3 under Gentoo ~amd64 with the 3.17.1-gentoo-r1 kernel and FGLRX driver:

Code:
# eix ati-drivers
[I] x11-drivers/ati-drivers
     Available versions: 
     (legacy) 13.1_pre897^td
     (1)    13.4^td 13.9^td 13.12^td 14.4_p1^td (~)14.6_beta2^td (~)14.9-r2^ftd (~)14.12-r2^td 14.12-r3^td
       {debug disable-watermark +modules multilib pax_kernel qt4 static-libs ABI_X86="32 64" KERNEL="linux"}
     Installed versions:  14.12-r3(1)^td(20:22:04 13/02/15)(modules qt4 -debug -pax_kernel -static-libs ABI_X86="32 64" KERNEL="linux")
     Homepage:            http://www.amd.com
     Description:         Ati precompiled drivers for Radeon Evergreen (HD5000 Series) and newer chipsets


Procedure

1. Download into ~/Downloads/ the following Ubuntu 32-bit packages from http://packages.ubuntu.com/utopic/i386/libs/

Code:
$ ls -la *.deb
-rw-r--r-- 1 fitzcarraldo users  24060 Mar  1 23:59 libecore-imf1_1.8.6-2ubuntu1_i386.deb
-rw-r--r-- 1 fitzcarraldo users 274206 Mar  1 22:59 libfreeimage3_3.15.4-3build1_i386.deb
-rw-r--r-- 1 fitzcarraldo users  52154 Mar  1 23:45 libilmbase6_1.0.1-6.1_i386.deb
-rw-r--r-- 1 fitzcarraldo users 135300 Mar  2 00:28 libjasper1_1.900.1-debian1-2ubuntu0.2_i386.deb
-rw-r--r-- 1 fitzcarraldo users 106868 Mar  1 23:00 libjpeg-turbo8_1.3.0-0ubuntu2_i386.deb
-rw-r--r-- 1 fitzcarraldo users  98500 Mar  1 23:39 libopenjpeg5_1.5.2-2_i386.deb
-rw-r--r-- 1 fitzcarraldo users 189420 Mar  2 00:21 libraw10_0.16.0-6_i386.deb


2. Download into ~/Downloads/ the following 32-bit packages from http://rpmfind.net/linux/rpm2html/search.php and http://pkgs.org/

Code:
$ ls -la *.rpm
-rw-r--r-- 1 fitzcarraldo users  57976 Mar  2 00:13 libilmbase6-1.0.2-11.1.2.i586.rpm
-rw-r--r-- 1 fitzcarraldo users 148379 Mar  2 00:03 libilmimf6-1.6.1-alt9.i586.rpm


3. Extract into ~/Downloads/ the following 32-bit libraries from the above-mentioned .deb and .rpm packages:

Code:
$ ls -la lib*.so*
-rw-r--r-- 1 fitzcarraldo users 644568 Apr 27  2014 libfreeimage-3.15.4.so
-rw-r--r-- 1 fitzcarraldo users 677340 Apr 27  2014 libfreeimageplus-3.15.4.so
-rwxr-xr-x 1 fitzcarraldo users 271780 Jul 15  2012 libHalf.so.6.0.0
-rwxr-xr-x 1 fitzcarraldo users 104044 Jul 15  2012 libIex.so.6.0.0
-rw-r--r-- 1 fitzcarraldo users 671896 Dec  3 15:06 libIlmImf.so.6.0.0
-rwxr-xr-x 1 fitzcarraldo users  22260 Jul 15  2012 libIlmThread.so.6.0.0
-rw-r--r-- 1 fitzcarraldo users 342116 Jan 22 18:46 libjasper.so.1.0.0
-rw-r--r-- 1 fitzcarraldo users 300776 Dec 19  2013 libjpeg.so.8.0.2
-rw-r--r-- 1 fitzcarraldo users 142604 Apr 26  2014 libopenjpeg.so.1.5.2
-rw-r--r-- 1 fitzcarraldo users 657336 Jul 22  2014 libraw.so.10.0.0


4. Merge the 32-bit Google Earth package from a local overlay, using the ebuild listed in my April 2014 post:

Code:
# emerge -C googleearth
# rm -rf /opt/googleearth/
# emerge googleearth::local_overlay


5. Delete the four bundled Qt libs, compile the shim devised by amirpli (see Comment #9 in Gentoo Bugzilla Bug 490066) but compile it for 32 bits ("-m32"), and edit the googleearth script to use the 32-bit libfreeimage.so.3 that you will copy into /opt/googleearth/ later:

Code:
# cd /opt/googleearth
# rm libQt*
# touch baifaao.cpp
# nano baifaao.cpp
# cat baifaao.cpp
/* amirpli 2013/11/28 */
#include <QtCore/QAtomicInt>
extern "C" {
        int _Z34QBasicAtomicInt_fetchAndAddOrderedPVii(QAtomicInt* a, int b) {
                return a->fetchAndAddOrdered(b);
        }
}
# gcc -I/usr/include/qt4 -O3 -m32 -fPIC --shared baifaao.cpp -o baifaao.so
# nano googleearth
# tail googleearth
}

script_path=$(FindPath $0);

cd $script_path;

export LD_PRELOAD=/opt/googleearth/libfreeimage.so.3:/opt/googleearth/baifaao.so
export LC_NUMERIC=en_US.UTF-8 # Must do this if you are using non-US locale.

LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./googleearth-bin "$@"


6. Copy into the Google Earth directory all the libraries downloaded and extracted in Steps 1 to 3, and create the necessary symlinks and permissions:

Code:
# cd /opt/googleearth
# cp /home/fitzcarraldo/Downloads/libfreeimage-3.15.4.so .
# cp /home/fitzcarraldo/Downloads/libfreeimageplus-3.15.4.so .
# ln -s libfreeimage-3.15.4.so libfreeimage.so.3
# ln -s libfreeimage.so.3 libfreeimage.so
# ln -s libfreeimageplus-3.15.4.so libfreeimageplus.so.3
# ln -s libfreeimageplus.so.3 libfreeimageplus.so
# chmod +x libfreeimage-3.15.4.so
# chmod +x libfreeimageplus-3.15.4.so
# cp /home/fitzcarraldo/Downloads/libjpeg.so.8.0.2 .
# ln -s libjpeg.so.8.0.2 libjpeg.so
# ln -s libjpeg.so libjpeg.so.8
# chmod +x libjpeg.so.8.0.2
# cp /home/fitzcarraldo/Downloads/libopenjpeg.so.1.5.2 .
# ln -s libopenjpeg.so.1.5.2 libopenjpeg.so
# ln -s libopenjpeg.so libopenjpeg.so.5
# chmod +x libopenjpeg.so.1.5.2
# cp /home/fitzcarraldo/Downloads/libIlmImf.so.6.0.0 .
# ln -s libIlmImf.so.6.0.0 libIlmImf.so
# ln -s libIlmImf.so libIlmImf.so.6
# chmod +x libIlmImf.so.6.0.0
# cp /home/fitzcarraldo/Downloads/libHalf.so.6.0.0 .
# ln -s libHalf.so.6.0.0 libHalf.so
# ln -s libHalf.so libHalf.so.6
# chmod +x libHalf.so.6.0.0
# cp /home/fitzcarraldo/Downloads/libIex.so.6.0.0 .
# ln -s libIex.so.6.0.0 libIex.so
# ln -s libIex.so libIex.so.6
# chmod +x libIex.so.6.0.0
# cp /home/fitzcarraldo/Downloads/libraw.so.10.0.0 .
# ln -s libraw.so.10.0.0 libraw.so
# ln -s libraw.so libraw.so.10
# chmod +x libraw.so.10.0.0
# cp /home/fitzcarraldo/Downloads/libIlmThread.so.6.0.0 .
# ln -s libIlmThread.so.6.0.0 libIlmThread.so
# ln -s libIlmThread.so libIlmThread.so.6
# chmod +x libIlmThread.so.6.0.0
# cp /home/fitzcarraldo/Downloads/libjasper.so.1.0.0 .
# ln -s libjasper.so.1.0.0 libjasper.so
# ln -s libjasper.so libjasper.so.1
# chmod +x libjasper.so.1.0.0


Finally, launch Google Earth from your user account, not the root user's account:

Code:
$ googleearth


Clicking on any photo icon in Google Earth should now display Panoramio photos.

If you click on a photo icon and the frame that opens displays several thumbnails, clicking on a thumbnail may result in a white Panoramio frame without any photo and thumbnails displayed. According to user amirpli this problem occurs in KDE but not GNOME. If it does happen in your case, to view the other photos right-click on a thumbnail and select 'Open in New Window'. This way you will be able to view any of the photos.

It's nice to be able to see the Panoramio photos again in Linux with the FGLRX driver.
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1221

PostPosted: Sun Nov 22, 2015 2:30 pm    Post subject: Reply with quote

any fully (KDE) working overlay for googleearth?
_________________
gentoo user
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3920
Location: Hamburg

PostPosted: Sat Mar 26, 2016 3:38 pm    Post subject: Reply with quote

latest GE (7.1.4.1529) works now here not at all - random crashes in all places
Back to top
View user's profile Send private message
nlsa8z6zoz7lyih3ap
Guru
Guru


Joined: 25 Sep 2007
Posts: 388
Location: Canada

PostPosted: Fri May 06, 2016 1:16 am    Post subject: Reply with quote

Quote:
Well, as epsilon72 mentioned, you have to pull it after it's installed on a Windows PC (a VM works nicely)...I couldn't find any way to get the native installer to work in wine. From the Windows system, just copy C:\Program Files\Google\Google Earth directory to you're virtual 'C:' drive in your .wine directory. That's it. You can then run the googleearth.exe executable under wine. I'm running KDE and set up a desktop icon for it.


This approach worked well for me with the exception of my favourite feature: "search for an address and the view zooms to that location."

When I do that I get the following kind of error messages.


Any suggestions as to how to cure this?

[code]fixme:ole:snapshot_QueryGetData (0x70896b8, 0x33cf90 {cf 000d ptd (nil) aspect 1 lindex -1 tymed 1})
fixme:ole:snapshot_QueryGetData (0x70896b8, 0x33cf78 {cf 000d ptd (nil) aspect 1 lindex -1 tymed 1})
fixme:nls:GetGeoInfoW -1 4 0x33d064 3 0
fixme:nls:GetGeoInfoW -1 4 0x33d004 3 0
fixme:nls:GetGeoInfoW -1 4 0x33d454 3 0
fixme:nls:GetGeoInfoW -1 4 0x33d454 3 0
fixme:msxml:domdoc_transformNodeToObject (0x708aec8)->(0x708b094 {VT_UNKNOWN: 0x708b138})
fixme:msxml:domdoc_transformNodeToObject (0x708b138)->(0x708aee4 {VT_UNKNOWN: 0x70b7a18})
fixme:nls:GetGeoInfoW -1 4 0x33d064 3 0
fixme:nls:GetGeoInfoW -1 4 0x33d004 3 0
fixme:nls:GetGeoInfoW -1 4 0x33d454 3 0
fixme:nls:GetGeoInfoW -1 4 0x33d454 3 0
fixme:msxml:domdoc_transformNodeToObject (0x70b7a90)->(0x708b094 {VT_UNKNOWN: 0x708b258})
fixme:msxml:domdoc_transformNodeToObject (0x70b7a68)->(0x708aee4 {VT_UNKNOWN: 0x708b138})


I should point out that this googlearth via wine has snappy graphics and zooms to dropped pins.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum