My favorites | Sign in
Google
                
Search
for
Updated Jul 03, 2009 by james.su
Labels: Featured, Phase-Deploy
HowToBuild  
How to build this project

Introduction

This page describe the method of building Google Gadgets for Linux from source code. Following instruction apply to Google Gadgets for Linux 0.10.4.

Preparation

Before building this project, you need do some preparation work, for example, downloading project source code, installing dependent packages and prepare build system.

Download source code

You can get the source code from the svn repository. Please follow the instruction on Source page to check it out.

For end users, the best way is to download a release source package from our download page.

Dependent packages

This project depends on various external libraries and applications, they must be available in your system before building this project. For different Linux distributions and operating systems, the packages name and installation method might be different. Following are information for the most popular distributions. If you know what packages are required for other distributions and operating systems, feel free to tell us and we will update this page to include them.

Ubuntu 8.04 and 8.10 series

If you are using Ubuntu 8.04 or 8.10 series, including all of their variants, such Kubuntu etc., you need install following mandatory packages:

If you want to use GUI and sidebar based on GTK library, you need following packages:

If you want to use GUI based on QT library, you need following packages:

If you want to build source code checked out from svn trunk, you also need following packages:

Please note that, QT based GUI is not fully functional on Ubuntu 8.04, because the version of QT library is too low.

You can use apt-get command to install these packages, for example:

$ sudo apt-get install build-essential zip flex desktop-file-utils shared-mime-info zlib1g-dev libgtk2.0-dev libxml2-dev libdbus-1-dev librsvg2-dev libltdl3-dev libcurl4-gnutls-dev libgstreamer-plugins-base0.10-dev xulrunner-1.9-dev network-manager-dev libqt4-dev libstartup-notification0-dev

You can just copy above command in to a terminal and execute it.

openSUSE 10.3 and 11.0

If you are using openSUSE 10.3 and later versions, you need install following mandatory packages:

If you want to use GUI and sidebar based on GTK library, you need following packages:

If you want to use GUI based on QT library, you need following packages:

If you want to build source code checked out from svn trunk, you also need following packages:

Please note that, QT based GUI is not fully functional on openSUSE 10.3, because the version of QT library is too low.

You can use yast or zypper to install these packages.

Fedora 8, 9 and 10

If you are using Fedora 8 and later versions, you need install following mandatory packages:

If you want to use GUI and sidebar based on GTK library, you need following packages:

If you want to use GUI based on QT library, you need following packages:

If you want to build source code checked out from svn trunk, you also need following packages:

You can use yum command to install these packages.

Mandriva 2009

If you are using Mandriva 2009, you need install following mandatory packages:

If you want to use GUI and sidebar based on GTK library, you need following packages:

If you want to use GUI based on QT library, you need following packages:

If you want to build source code checked out from svn trunk, you also need following packages:

You can use urpmi to install these packages, for example:

#urpmi gcc-c++ zip flex desktop-file-utils shared-mime-info libltdl3-devel zlib1-devel libxml2-devel libdbus-1-devel libnm_util-devel libstartup-notification-1-devel libgstreamer0.10-devel libgstreamer-plugins-base0.10-devel libxulrunner-devel librsvg2-devel libcurl-devel libcairo-devel libgtk+2.0_0-devel libqt4-devel autoconf automake libtool

Prepare build system

There are two different build systems can be used to build this project, autoconf/automake and cmake. Though cmake build system has been included in official source package since 0.10.3, it's still in experimental stage. So autoconf/automake is still the best choice for most users.

If you want to try out cmake build system, you need install cmake version 2.4 or above first. Most distributions ship cmake package nowadays.

If you want to build source code checked out from svn trunk, you need run autotools/bootstrap.sh script before starting build. For example:

$ svn checkout http://google-gadgets-for-linux.googlecode.com/svn/trunk/ ggl-trunk
$ cd ggl-trunk
$ sh autotools/bootstrap.sh

Build

autoconf/automake based build system is highly recommended for normal users. cmake build system usually uses less time to build this project, but may still contain some problems.

Both build systems support out-of-tree build, that is, the build task can be done in a separated directory instead of inside the source code directory. Then you can remove all temporary files generated by build system easily without touching the source files. This approach is highly recommended.

Build with autoconf/automake

Invoke configure script

You need run configure script to generate makefile before building. For example, you can use following commands to perform an out-of-tree build:

Prepare source code:

$ tar jxf google-gadgets-for-linux-0.10.3.tar.bz2
$ cd google-gadgets-for-linux-0.10.3

Or, if you want to use he bleeding-edge version:

$ svn checkout http://google-gadgets-for-linux.googlecode.com/svn/trunk/ ggl-trunk
$ cd ggl-trunk
$ sh autotools/bootstrap.sh

Run configure script out-of-tree:

$ mkdir build
$ cd build
$ ../configure --prefix=/usr

It might take one or two minutes to run configure script, if anything goes well, a configure summary will be displayed, such as:

Build options:
  Version                       "0.10.3"
  Install prefix                /usr
  Install included libltdl      no
  Build shared libs             yes
  Build static libs             yes
  Enable debug                  no
  Host type                     linux
  OEM brand                     

 Libraries:
  GTK SVG Support               yes
  Build libggadget-gtk          yes
  Build libggadget-qt           yes
  Build libggadget-dbus         yes
  Build libggadget-npapi        yes

 Extensions:
  Build dbus-script-class       yes
  Build gtk-edit-element        yes
  Build gtkmoz-browser-element  yes
  Build qtwebkit-browser        no
  Build gst-audio-framework     yes
  Build gst-video-element       yes
  Build gtk-system-framework    yes
  Build gtk-flash-element       yes
  Build qt-system-framework     yes
  Build linux-system-framework  yes
  Build smjs-script-runtime     yes
  Build qt-script-runtime       no
  Build curl-xml-http-request   yes
  Build qt-xml-http-request     yes
  Build libxml2-xml-parser      yes

 Hosts:
  Build gtk host                yes
  Build qt host                 yes

The result might be different on different system. If some dependency libraries are missing, corresponding build option might be set to "no". For example, above result shows that my QT library may be too old to support qtwebkit-browser and qt-script-runtime extensions.

Among above results, The most important are "Build gtk host" and "Build qt host", if non of these options are "yes", then means some mandatory dependent packages might be missing. You need at least one host to be built.

The "--prefix" parameter of configure script controls the target directory where you want to install the project. Usually "/usr" is the best choice for normal users. However, default value is "/usr/local", and on some systems, it might not work properly. So "--prefix=/usr" is highly recommended for all users.

Besides "--prefix" parameter, there are some other parameters you might want to use:

It enables debug build, which will generate slower and larger binary but suitable for debugging. This option is not recommended for normal users.

Disable -Werror compile option, which is enabled by default and may cause problem on some platforms, eg. Fedora 11.
Since 0.10.3, Google Gadgets for Linux support new APIs introduced in Google Desktop for Windows 5.8. The most important one is the "Full support for Flash", that is, a desktop gadget can play a .swf file from the internet directly. On Linux, it requires adobe flash browser plugin. This option specifies the directory where the flash plugin can be found. The directory might be different on different Linux distributions, for example:
  • On Ubuntu/Debian: /usr/lib/xulrunner-addons/plugins
  • On openSUSE: /usr/lib/browser-plugins (32bit system) or /usr/lib64/browser-plugins (64bit system)
  • On Fedora: /usr/lib/mozilla/plugins (32bit system) or /usr/lib64/mozilla/plugins (64bit system)
  • --libdir
Specifies the directory to install shared libraries. The default value is "${prefix}/lib". On 32bit Linux systems, this option can usually be omitted. But on 64bit Linux systems, the value are different on different systems. On Ubuntu/Debian, it has no difference between 32bit and 64bit systems. On openSUSE and Fedora, it shall be specified explicitly to ${prefix}/lib64, where ${prefix} is the directory specified by --prefix parameter. For example, if you are using openSUSE 11.0 64bit, then you need use following configure command:
$ ../configure --prefix=/usr --libdir=/usr/lib64 --with-browser-plugins-dir=/usr/lib64/browser-plugins
  • --help
To display a complete lists of parameters that you can use.

Build

After executing configure script, you can just invoke command make in the same directory to build the project. There are multiple CPUs or a CPU with multi cores in your machine, you can use command make -jN to make the build process faster, where N is the number of CPUs you have. For example, on a dual-core machine, you can use following command:

$ make -j2

Install

If the build finished without any problem, then you can use command make install to install the project. You need root privilege to run this command. For eample, on Ubuntu, you can:

$ sudo make install

On some systems like Fedora, sudo might not work, and you may need use command su to switch to root first.

Then can just run command ggl-gtk or ggl-qt in a terminal to launch Google Gadgets for Linux. You can also find and launch Google Gadgets in application menu's Accessories or Internet submenu.

If you want to make binary package, you can use following command to install the target files into a specific directory (eg. /tmp/ggl-root):

$ make DESTDIR=/tmp/ggl-root install

Then you can pack all things in /tmp/ggl-root into binary package.

If you encounter any problem when building, try to use --disable-werror option when execute configure script. There is a known issue which will cause build problem on Fedora 11, if this option is not specified.

Build with cmake

cmake build is only available publicly since 0.10.3. You need cmake 2.4 or above to build it. Similar than autoconf/automake build system, you need three steps to build the project:

Configure

For example, on Ubuntu/Debian systems, to do an out-of-tree build, you need:

$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DGGL_DEFAULT_BROWSER_PLUGINS_DIR=/usr/lib/xulrunner-addons/plugins ../

A summary will be displayed if anything goes well:

Build options:
  Version                          "0.10.3"
  Build type                       Debug
  OEM brand                        

 Libraries:
  GTK SVG Support                  1
  Build libggadget-gtk             1
  Build libggadget-qt              1
  Build libggadget-dbus            1

 Extensions:
  Build dbus-script-class          1
  Build gtkmoz-browser-element     1
  Build gst-audio-framework        1
  Build gst-video-element          1
  Build linux-system-framework     1
  Build smjs-script-runtime        1
  Build curl-xml-http-request      1
  Build libxml2-xml-parser         1
  Build gtk-edit-element           1
  Build gtk-system-framework       1
  Build qt-edit-element            1
  Build qtwebkit-browser-element   0
  Build qt-xml-http-request        1
  Build qt-script-runtime          0
  Build qt-system-framework        1

 Hosts:
  Build gtk host                   1
  Build qt host                    1

-- Configuring done
-- Generating done

After executing cmake, you can use command ccmake to check and change configure parameters:

$ ccmake ../

Build

Same as autoconf/automake build system, you can use make command to build the project. Use make -j2 on a dual-core system can make the progress faster.

Install

Same as autoconf/automake build system, you can use make install command to install the project into your system. You also need root privilege to do it.

You can also use make DESTDIR=/tmp/ggl-root install to install all things into a specific directory (eg. /tmp/ggl-root).


Comment by washng, Jun 02, 2008

Well

Comment by dreamlord, Jun 04, 2008

Debian GNU/Linux 4.0 installed packages to enable compilation:

libmozjs-dev libgstreamer-plugins-base0.10-dev libcurl3-openssl-dev libdbus-1-dev libxul-dev

Get lucky! Best regards!

/Juan Manuel Victoria A.K.A ErGoN

Comment by luca.cappelletti, Jun 04, 2008

Amazing...this will rock against Apple Dashboard

Comment by Wobedraggled, Jun 04, 2008

"configure: error: No type size_t, but google Gadgets for Linux needs it!" I installed everything it should need.

Ubuntu 8.04

Comment by phisher1, Jun 04, 2008

configure: WARNING: Library curl or openssl is not available, curl-xml-http-request extension won't be built. configure: WARNING: Library gstreamer_plugins_base(>=0.10.0) is not available, gst-audio-framework extension will not be built. configure: WARNING: Library gstreamer_plugins_base(>=0.10.0) is not available, gst-mediaplayer-element extension will not be built. configure: WARNING: Library qt-4.3 or above is not available, qt host and libggadget-qt won't be built configure: WARNING: Library qtwebkit or qt-4.4 and above is needed to build qtwebkit_browser_element configure: WARNING: Library SpiderMonkey? is not available, smjs-script-runtime extension won't be built. configure: WARNING: Library GtkMozEmbed? is not available, gtkmoz-browser-element extension won't be built. configure: error: curl, libxml2 or spidermonkey are missing, which are required for gtk host.

Comment by pedro.tumusok, Jun 04, 2008

configure: error: No type size_t, but google Gadgets for Linux needs it!

Ubuntu 8.04

Comment by volker.breme, Jun 04, 2008

@pedro.tumusok and all other ubuntu 8.04 users

sudo ln -s /usr/bin/g++-4.2 /usr/bin/g++;

because ./configure search /usr/bin/g++

Comment by volker.breme, Jun 04, 2008

@phisher1 and other too

you can fix it when you install all libcurl packages! (every packages) ;-)

Comment by paul.ibsch, Jun 04, 2008

Thanks Volker but still the same result:

"configure: error: No type size_t, but google Gadgets for Linux needs it!"

Comment by jnorden, Jun 04, 2008

Here's my issue...

../../../ggadget/backoff.cc: In static member function ‘static uint64_t ggadget::Backoff::Impl::GetNextRequestInterval?(int)’: ../../../ggadget/backoff.cc:65: error: ‘rand’ was not declared in this scope make4?: libggadget-1.0_la-backoff.lo? Error 1 make4?: Leaving directory `/home/johnn/downloads/google-gadgets-for-linux-0.9.1/build/debug/ggadget' make3?: all-recursive? Error 1 make3?: Leaving directory `/home/johnn/downloads/google-gadgets-for-linux-0.9.1/build/debug/ggadget' make2?: all? Error 2 make2?: Leaving directory `/home/johnn/downloads/google-gadgets-for-linux-0.9.1/build/debug/ggadget' make1?: all-recursive? Error 1 make1?: Leaving directory `/home/johnn/downloads/google-gadgets-for-linux-0.9.1/build/debug' make: all? Error 2

Comment by volker.breme, Jun 04, 2008

oh! ok, i had installed: libcurl3, libcurl3-dbg, libcurl3-gnutls, libcurl4-openssl-dev libcurl-ocaml

also: libmozjs0d, libmozjs0d-dbg, libmozjs-dev, spidermonkey, g++-4.1, g++-4.1-multilib, g++-4.2, g++-4.2-multilib

and all packages at the top of this site; and also all packages with every needed dependencie;

i dont know why but now it works!

after the package installation "sudo ln -s /usr/bin/g++-4.2 /usr/bin/g++;"

now: sudo ./configure; sudo make; sudo make check; sudo make install;

then: sudo cp -rf /usr/local/lib/ /usr/lib; (ok, it's not nice but it works)

now u can start the google gadgets with "/usr/local/bin/ggl-gtk;"

Comment by gauthier.tellier, Jun 04, 2008

golgoth@tatooine:~$ ggl-gtk ggl-gtk: error while loading shared libraries: libggadget-1.0.so.0: cannot open shared object file: No such file or directory

golgoth@tatooine:/usr/local/lib$ ls google-gadgets libggadget-1.0.so.0.0.0 libggadget-dbus-1.0.so.0.0.0 libggadget-gtk-1.0.so.0.0.0 libltdl.so.3.1.5 libggadget-1.0.a libggadget-dbus-1.0.a libggadget-gtk-1.0.a libltdl.a ocaml libggadget-1.0.la libggadget-dbus-1.0.la libggadget-gtk-1.0.la libltdl.la pkgconfig libggadget-1.0.so libggadget-dbus-1.0.so libggadget-gtk-1.0.so libltdl.so python2.4 libggadget-1.0.so.0 libggadget-dbus-1.0.so.0 libggadget-gtk-1.0.so.0 libltdl.so.3 python2.5

golgoth@tatooine:/usr/local/bin$ ls affinity-preferences et etded ggl-gtk

Ubuntu 8.04

Comment by gauthier.tellier, Jun 04, 2008

ok thx volker.breme

now it runs, I get "Failed to update gadget data"

Comment by nstamoul0, Jun 04, 2008

I am trying to build a package using checkinstall and I am encountering some difficulties.

First of all it fails making the directories needed in /usr/local/lib/google-gadgets and it fails during make install.There is a workarround for this,seeing where it fails to create a file,create the directory yourself and manually install the libraries like the script would.

For example /usr/bin/install -c .libs/default-options.soT /usr/local/lib/google-gadgets/modules/default-options.so

There is a ton of libraries to install so its really a pain doing it manually.

Next there is an other problem.After I get all the libraries installed i get an other kind of error like that:

chmod: changing permissions of `/usr/local/share/google-gadgets/google-gadget-browser/en/inst.21010': No such file or directory

Apparently these files are not created at all.I checked your install script and found that those files were supposed to be created on line 477 (dsttmp=$dstdir/inst.$$) but for some reason they are not.

Comment by mundstox, Jun 04, 2008

Ditto with the

"configure: error: No type size_t, but google Gadgets for Linux needs it!"

after "sudo ln -s /usr/bin/g++-4.2 /usr/bin/g++"

Ubuntu 8.04.

Comment by Wobedraggled, Jun 04, 2008

I had to install more than I thought, building now, thanks.

Comment by pshah.mumbai, Jun 04, 2008

Debian .deb please !

Comment by mundstox, Jun 04, 2008

Installed comerr-dev libcurl-ocaml libcurl3-dbg libcurl4-openssl-dev libidn11-dev

libkrb5-dev libldap2-dev libssl-dev ocaml-base-nox zlib1g-dev
cpp-4.1 g++-4.1 g++-4.1-multilib g++-4.2 g++-4.2-multilib gcc-4.1
gcc-4.1-base gcc-4.1-multilib gcc-4.2-multilib lib64gcc1 lib64gomp1 lib64stdc++6 libc6-amd64 libc6-dev-amd64 libmozjs-dev libmozjs0d-dbg libstdc++6-4.1-dev libstdc++6-4.2-dev
(whew!)

Seems to be working.

Comment by mundstox, Jun 04, 2008

Hmm. Everything looks like it completed OK, but I can't find the binaries.

Must have done something stupid. Trying again.

Comment by KohlyKohl, Jun 04, 2008

What gtk libraries do you need to install for Ubuntu?

Comment by hdibani, Jun 04, 2008

@ mundstox I have the same problem, make install seems to run correctly, but ggl-gtk is no where to be found.

Comment by hdibani, Jun 04, 2008

i have just run the ./configure script and noticed this:

Build options:

Version 0.9.1 Install prefix /usr/local Install included libltdl no Build shared libs yes Build static libs yes Enable debug no Host type linux

Libraries:
GTK SVG Support no Build libggadget-gtk no Build libggadget-qt no Build libggadget-dbus no
Extensions:
Build dbus-script-class no Build gtk-edit-element no Build gtkmoz-browser-element no Build qtwebkit-browser no Build gst-audio-framework yes Build gst-mediaplayer-element yes Build gtk-system-framework no Build qt-system-framework no Build linux-system-framework yes Build smjs-script-runtime yes Build curl-xml-http-request no Build qt-xml-http-request no Build libxml2-xml-parser yes
Hosts:
Build gtk host no Build qt host no

I think i need some gtk dev libraries

Comment by anubhavrocks, Jun 04, 2008

I got this error: anubhav@anubhav-laptop:/usr/local/bin$ ggl-qt ggl-qt: error while loading shared libraries: libggadget-1.0.so.0: cannot open shared object file: No such file or directory

to resolve this: export LD_LIBRARY_PATH=/usr/local/lib

Comment by shawn.mckenzie, Jun 04, 2008

kubuntu hardy heron

If you can't run make, of course: sudo apt-get install build-essential

Then for libs: sudo apt-get install zlib1g-dev libmozjs-dev libcurl4-openssl-dev libxml2-dev xulrunner-1.9-dev libdbus-1-dev libgst reamer-plugins-base0.10-dev libqt4-dev libqtwebkit-dev

Comment by mdaocus, Jun 04, 2008
I have the same problem, make install seems to run correctly, but ggl-gtk is no where to be found.
Comment by ryancourtnage, Jun 04, 2008

$ ggl-qt ggl-qt: error while loading shared libraries: libggadget-1.0.so.0: cannot open shared object file: No such file or directory

SOLUTION: run ldconfig

Comment by nagrover, Jun 04, 2008

horray! thanks ryancourtnage. running ldconfig did the trick and it runs. now i can mess around with this!

Comment by DickFardos, Jun 04, 2008
g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../.. -D_REENTRANT -pthread -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -DSTDC_CONSTANT_MACROS -DNDEBUG -DGGL_MODULE_DIR=\"/usr/local/lib/google-gadgets/modules\" -DGGL_INCLUDE_DIR=\"/usr/local/include/google-gadgets\" -DGGL_SYSDEPS_INCLUDE_DIR=\"/usr/local/lib/google-gadgets/include\" -DGGL_LIBEXEC_DIR=\"/usr/local/lib/google-gadgets\" -DGGL_RESOURCE_DIR=\"/usr/local/share/google-gadgets\" -DGGL_HOST_LINUX=1 -DHAVE_X11=1 -DMOZILLA_FIVE_HOME=\"/usr/lib/mozilla-firefox\" -DHAVE_PTHREAD=1 -O2 -Werror -Wall -Wconversion -MT gtkmoz_browser_element_la-browser_element.lo -MD -MP -MF .deps/gtkmoz_browser_element_la-browser_element.Tpo -c browser_element.cc -fPIC -DPIC -o .libs/gtkmoz_browser_element_la-browser_element.o

In file included from browser_child.cc:27: /usr/lib/mozilla-firefox/include/gtkembedmoz/gtkmozembed_internal.h:41:27: error: nsIWebBrowser.h: No such file or directory browser_child.cc:36:32: error: nsIDOMAbstractView.h: No such file or directory browser_child.cc:37:28: error: nsIDOMDocument.h: No such file or directory browser_child.cc:38:32: error: nsIDOMDocumentView.h: No such file or directory browser_child.cc:39:24: error: nsIDOMNode.h: No such file or directory browser_child.cc:40:26: error: nsIDOMWindow.h: No such file or directory

Comment by naveedm9, Jun 04, 2008

I have the same problem as hdibani and mundstox. The build seems to have run fine. But I can't find the binaries. I'm using ubuntu.

Comment by astronouth7303, Jun 04, 2008

Builds fine on Ubuntu 8.04, using the config:

./configure --enable-debug --disable-qt-host --disable-qt-system-framework --disable-qt-xml-http-request --disable-libggadget-qt --disable-qtwebkit-browser-element 
Comment by DickFardos, Jun 04, 2008

I had to manually find the mozilla include files and add it to the configure line

./configure --includedir=/usr/lib/mozilla-firefox/include/webbrwsr

Comment by ajopaul01, Jun 04, 2008

I tried most configure options but still the configure results this: Hosts:

Build gtk host no Build qt host no

a make or make install doesnot put the binaries anywhere :( am using ubuntu 8.04

Comment by tallman9, Jun 04, 2008

sudo cp -rf /usr/local/lib/ /usr/ doing this helped. But OMG, what a mess I did... :)

Comment by chanokin, Jun 04, 2008

I had to install sqlite3-dev package under ubuntu 8.04

Comment by williams.ross, Jun 04, 2008

likewise no host is built under ubuntu 8.04

@chanokin, which sqlite3-dev package are you speaking of?

Comment by howe.steven, Jun 04, 2008

Using Fedora 9. Attempted configure with the following command: ./configure --prefix=/usr --disable-qt-host Warning list follows.

configure: WARNING: Library qtwebkit or qt-4.4 and above is needed to build qtwebkit_browser_element configure: WARNING: Library SpiderMonkey? is not available, smjs-script-runtime extension won't be built. configure: WARNING: Library GtkMozEmbed? is not available, gtkmoz-browser-element extension won't be built. configure: error: curl, libxml2 or spidermonkey are missing, which are required for gtk host.

First issue; I requested no qt-host; even tried with all qt features disabled, but I still get the qtwedkit issue

Second issue; having hunted for curl and libxml2 and found

libxml2-2.632-2.fc9.i386 libxml2-devel-2.632-2.fc9.i386 libcurl-7.18.1-1.fc9.i386 libcurl-devel-7.18.1-1.fc9.i386

I can assume that Spidermonkey is the issue. A brief search and I came up with the 'js' package as being the Mozilla javascript libraries. They are installed:

js-1.70-2.fc9.i386 (SpiderMonkey?) js-devel-1.70-2.fc9.i386

Verfied the remaining requirements of the top of the build page and install xulrunner. xulrunner-1.9-0.60.beta5.fc9.i386 xulrunner-devel-1.9-0.60.beta5.fc9.i386

So it seems GtkMozEmbed? / Spidermonkey are the issues. Where are these found if not in the Fedora install?

Comment by mundstox, Jun 04, 2008
 	 Builds fine on Ubuntu 8.04, using the config:

./configure --enable-debug --disable-qt-host --disable-qt-system-framework --disable-qt-xml-http-request --disable-libggadget-qt --disable-qtwebkit-browser-element 

Fail. No binaries, and I didn't see any error messages. I'll try again later.

Comment by DickFardos, Jun 04, 2008

I ended up having to hack the Makefile to include a few include dirs that were missing. :(

Comment by kcoombs, Jun 04, 2008

Ubuntu users: sudo apt-get install g++

Comment by elkpichico, Jun 04, 2008

Hi, I've installed all this dependecies: libmozjs-dev libgstreamer-plugins-base0.10-dev libcurl3-openssl-dev libdbus-1-dev libxul-dev libcurl3 libcurl3-dbg libcurl3-gnutls libcurl4-openssl-dev libcurl-ocaml libmozjs0d libmozjs0d-dbg libmozjs-dev g++-4.2-multilib

and then I've installed libgtk-2.0-dev and it's dependecies.

then

$ mkdir -p build/debug $ cd build/debug $ ../../configure --enable-debug $ make

And everything OK!!!

Comment by richetyann, Jun 05, 2008

ubuntu : if spidermonkey and gtkmozembed are missing sudo apt-get install firefox-dev

Comment by dspolleke, Jun 05, 2008

in mu SuSe? 10.3 configure returned some missing dependancies

configure: WARNING: Library gstreamer_plugins_base(>=0.10.0) is not available, gst-audio-framework extension will not be built. configure: WARNING: Library gstreamer_plugins_base(>=0.10.0) is not available, gst-mediaplayer-element extension will not be built. configure: WARNING: Library qtwebkit or qt-4.4 and above is needed to build qtwebkit_browser_element configure: WARNING: Library SpiderMonkey? is not available, smjs-script-runtime extension won't be built. configure: WARNING: Library GtkMozEmbed? is not available, gtkmoz-browser-element extension won't be built. configure: error: curl, libxml2 or spidermonkey are missing, which are required for gtk host.

I tried to install the gstreamer plugin

running (as root)

#zypper in SpiderMonkey? libcurl libxml zlib xulrunner-dev D-Bus gtk Qt QtWebKit? to instal what i needed

package 'SpiderMonkey?' not found package 'libcurl' not found skipping package 'zlib' (already installed) package 'xulrunner-dev' not found package 'D-Bus' not found package 'Qt' not found package 'QtWebKit?' not found

searching in yast and installing all culr packages and messinng about withlibgstreamer gave me a succesfull configure WITHOUT gstreamer...

Comment by xinzhi.org, Jun 05, 2008

Not a regular file: / Initialize default_framework extension. Initialize gtk_edit_element extension. Initialize gtkmoz_browser_element extension. Initialize gst_mediaplayer_element extension. Initialize gtk_system_framework extension. Initialize gst_audio_framework extension. org.freedesktop.NetworkManager?.NoDevices?: There are no available network devices. No slot registered to handle this reply. No slot registered to handle this reply. Demarshal failed. Type dismatch, message type: , expected: s Demarshal failed. Type dismatch, message type: , expected: s Initialize linux_system_framework extension. Initialize smjs_script_runtime extension. Register smjs_script_runtime extension. Call DBusWatchCallBack, watch id: 4 Call DBusWatchCallBack, watch id: 6 Failed to update gadget metadata. Will retry after 7200000ms

Comment by dspolleke, Jun 05, 2008

after a make check:

2 of 27 tests failed Please report to google-gadgets-for-linux-dev@googlegroups.com

make5?: check-TESTS? Error 1 make5?: Leaving directory `/home/polleke/Desktop/google-gadgets-for-linux-0.9.1/ggadget/tests' make4?: check-am? Error 2 make4?: Leaving directory `/home/polleke/Desktop/google-gadgets-for-linux-0.9.1/ggadget/tests' make3?: check-recursive? Error 1 make3?: Leaving directory `/home/polleke/Desktop/google-gadgets-for-linux-0.9.1/ggadget/tests' make2?: check-recursive? Error 1 make2?: Leaving directory `/home/polleke/Desktop/google-gadgets-for-linux-0.9.1/ggadget' make1?: check? Error 2 make1?: Leaving directory `/home/polleke/Desktop/google-gadgets-for-linux-0.9.1/ggadget' make: check-recursive? Error 1

Comment by Zombieff, Jun 05, 2008

after building&installing i got this:

$ ggl-gtk ggl-gtk: error while loading shared libraries: libggadget-1.0.so.0: cannot open shared object file: No such file or directory

what should i do?

Comment by funroll.loops, Jun 05, 2008

I'm use ubuntu 8.04 and not build

configure: WARNING: Library gstreamer_plugins_base(>=0.10.0) is not available, gst-audio-framework extension will not be built. configure: WARNING: Library gstreamer_plugins_base(>=0.10.0) is not available, gst-mediaplayer-element extension will not be built. configure: WARNING: Library qt-4.3 or above is not available, qt host and libggadget-qt won't be built configure: WARNING: Library qtwebkit or qt-4.4 and above is needed to build qtwebkit_browser_element configure: WARNING: Library SpiderMonkey? is not available, smjs-script-runtime extension won't be built. configure: WARNING: Library D-Bus is not available, libggadget-dbus won't be built. configure: WARNING: Library GtkMozEmbed? is not available, gtkmoz-browser-element extension won't be built. configure: error: curl, libxml2 or spidermonkey are missing, which are required for gtk host.

help me please

Comment by martin.espinoza, Jun 05, 2008

I found that you want librsvg2-dev on Ubuntu Hardy as well. (for GTK SVG support...)

Comment by grant.totten, Jun 05, 2008

Hey all,

$ sudo apt-get install g++ ... Media change: please insert the disc labeled

'Ubuntu 7.10 Gutsy Gibbon - Release i386 (20071016)'
in the drive '/cdrom/' and press enter

Of course I don't have the CD with me. Is there a way to change my package definition to point to an internet site?

Comment by martin.espinoza, Jun 05, 2008

FOR PEOPLE WITH PROBLEMS WITH SHARED LIBRARIES: Probably all you need to do is run "ldconfig" as root. This should be done after ANY shared library is installed to the system or updated. Period.

If that doesn't do it make sure there is a "/usr/local/lib" in /etc/ld.so.conf or in a file in the directory /etc/ld.so.conf.d

I didn't have this problem in the first place, so I don't know what's up. But whatever.

Comment by anewcomb2, Jun 05, 2008
kubuntu hardy heron

If you can't run make, of course: sudo apt-get install build-essential

Then for libs: sudo apt-get install zlib1g-dev libmozjs-dev libcurl4-openssl-dev libxml2-dev xulrunner-1.9-dev libdbus-1-dev libgst reamer-plugins-base0.10-dev libqt4-dev libqtwebkit-dev

I also had to install libsqlite3-dev

Seems to work fine for me after following these instructions on Hardy.

Comment by chandlerblum, Jun 05, 2008

@grant.totten

In Gnome, System > Administration > Sources Uncheck the CD-ROM

Or, you can also take out the cd-rom's line in /etc/apt/sources.list

Then in command line type sudo apt-get update

Comment by DickFardos, Jun 05, 2008

Looks like gadgets doesn't support proxy servers for those of us behind a corp. f/w.

I tried export http_proxy="<my proxy server>" no worky.

Comment by 3rdcoast, Jun 05, 2008

i think i installed like 150 megs of libs and still it didnt work and finally i added sudo apt-get install firefox-dev and its now compiling. whew

ubuntu 8.04

Comment by silwenae, Jun 05, 2008

Google Gadgets is available for testing in Foresight Linux. Foresight users can install from our QA branch via:

sudo conary update google-gadgets=@fl:2-qa

Comment by arvvvs, Jun 05, 2008

Running `libtoolize --force --copy --automake --ltdl' ls: cannot access libltdl/: No such file or directory libtoolize: cannot list files in `/usr/share/libtool/libltdl' I'm using Ubuntu 8.04 Hardy I need help

Comment by nonconformist, Jun 05, 2008

simple step by step instructions to install in ubuntu (hardy) so do you dont have to read through all the detail

  1. wget http://google-gadgets-for-linux.googlecode.com/files/google-gadgets-for-linux-0.9.1.tar.gz
  2. tar zxvf google-gadgets-for-linux-0.9.1.tar.gz
  3. cd google-gadgets-for-linux-0.9.1/
  4. sudo apt-get install zlib1g-dev libmozjs-dev libcurl4-openssl-dev libxml2-dev libdbus-1-dev libmozjs-dev libgstreamer-plugins-base0.10-dev libcurl3-openssl-dev libdbus-1-dev libxul-dev libcurl3 libcurl3-dbg libcurl3-gnutls libcurl4-openssl-dev libcurl-ocaml libmozjs0d libmozjs0d-dbg libmozjs-dev g++-4.2-multilib g++ libqt4-dev
  5. sudo ldconfig
  6. ../../configure --enable-debug
  7. sudo make install

(alternatively dont use sudo and set an alternate install directory, default /usr/local)

  1. export LD_LIBRARY_PATH=/usr/local/lib
  2. ggl-gtk

An icon should show in the top right status bar, right click and add gadget!

Comment by groinus.paul, Jun 05, 2008

Make doesn't seem to work for me. I get these errors:

/bin/bash: line 0: cd: /home/paul/Firefox: No such file or directory

zip warning: name not matched: Downloads/google-gadgets-for-linux-0.9.1/resources/resources.gg
make2?: resources.gg? Error 12 make2?: Leaving directory `/home/paul/Firefox Downloads/google-gadgets-for-linux-0.9.1/resources' make1?: all-recursive? Error 1 make1?: Leaving directory `/home/paul/Firefox Downloads/google-gadgets-for-linux-0.9.1' make: all? Error 2

Anyone know what is going on?

Comment by starbukfan05, Jun 05, 2008

Well after hours of trying the different things here, nothing seemed to work. I would LOVE to run GG's but its a program that is not ready for 8.04 of Ubuntu I guess. I installed all the libs, tried all the suggestions and it just ends at make install with no code, and scanning my drive shows no gg-gtk. Guess I will wait for next release and try again. sigh...

Comment by mark.bokil, Jun 05, 2008

I am feeling kind of lazy. Can someone package of an RPM and let us download it?

Comment by avadh4all, Jun 05, 2008

starbukfan05: binary name is ggl-gtk not gg-gtk

Comment by michelecostantino, Jun 05, 2008

On Hardy also remember to install libxml++2.6-dev libgtk2.0-dev.

Comment by drcage, Jun 05, 2008

The above comment by nonconformist worked for me with Ubuntu 8.04 (hardy). I did also install libxml++2.6-dev and libgtk2.0-dev before ./configure , though I don't know if that was necessary.

Thanks :)

Comment by waqiah, Jun 05, 2008

Whoa! That took forever! I had to download around 100MBs of dependencies, do the ldconfig command, and finally ./configure, make and sudo make install.

Running Ubuntu 8.04 here...

Comment by prudhvikrishna, Jun 06, 2008

Fantastic, any Ports for FreeBSD?

Comment by paul.ibsch, Jun 06, 2008

Wow at last!!! Thanks to all above -don't know whose help specifically worked, but it's there, eventually!

Comment by lvnilesh, Jun 06, 2008

it built successfully after following footsteps of drcage but wont execute.

gave error while loading shared libraries: libggadget-1.0.so.0: cannot open shared object file: No such file or directory

then I ran the following one last time sudo ldconfig

and it ran!

Comment by mundstox, Jun 06, 2008

Built successfully and runs with nonconformist's instructions, above.

Once, of course, some idiot realized /boot was full and deleted some old kernels.

Comment by DickFardos, Jun 06, 2008

Doesn't look like ggl supports multiple desktops. I typically have a minimum of 8 desktops. It would be nice to tell ggl to use all desktops.

Comment by confusosk8, Jun 06, 2008

9:19.957: ../../../../ggadget/dbus/dbus_proxy.cc:529: serial of reply: 11 09:19.957: ../../../../ggadget/dbus/dbus_proxy.cc:532: No slot registered to handle this reply. 09:19.959: ../../../ggadget/memory_options.cc:32: option metadata_last_try_time changed to INT64:1212768559959 09:19.959: ../../../ggadget/xml_http_request_factory.cc:33: The XMLHttpRequest factory has not been set yet. 09:19.959: ../../../ggadget/xml_http_request_factory.cc:33: VERIFY FAILED: g_factory Segmentation fault

???

Comment by parallellepipedum, Jun 06, 2008

make4?: Entering directory `/usr/src/google-gadgets-for-linux-0.9.1/extensions/smjs_script_runtime' /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../.. -DXP_UNIX -I/usr/include/xulrunner-1.8.0.4/js -I/usr/include/xulrunner-1.8.0.4/nspr -DJS_THREADSAFE -DMOZILLA_1_8_BRANCH -DSTDC_CONSTANT_MACROS -DNDEBUG -DGGL_MODULE_DIR=\"/usr/lib/google-gadgets/modules\" -DGGL_INCLUDE_DIR=\"/usr/include/google-gadgets\" -DGGL_SYSDEPS_INCLUDE_DIR=\"/usr/lib/google-gadgets/include\" -DGGL_LIBEXEC_DIR=\"/usr/lib/google-gadgets\" -DGGL_RESOURCE_DIR=\"/usr/share/google-gadgets\" -DGGL_HOST_LINUX=1 -DHAVE_X11=1 -DMOZILLA_FIVE_HOME=\"/usr/lib/xulrunner-1.8.0.4\" -DHAVE_PTHREAD=1 -O2 -Werror -Wall -Wconversion -fcheck-new -MT libggadget_smjs_la-converter.lo -MD -MP -MF .deps/libggadget_smjs_la-converter.Tpo -c -o libggadget_smjs_la-converter.lo test -f 'converter.cc' || echo './'converter.cc

g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../.. -DXP_UNIX -I/usr/include/xulrunner-1.8.0.4/js -I/usr/include/xulrunner-1.8.0.4/nspr -DJS_THREADSAFE -DMOZILLA_1_8_BRANCH -DSTDC_CONSTANT_MACROS -DNDEBUG -DGGL_MODULE_DIR=\"/usr/lib/google-gadgets/modules\" -DGGL_INCLUDE_DIR=\"/usr/include/google-gadgets\" -DGGL_SYSDEPS_INCLUDE_DIR=\"/usr/lib/google-gadgets/include\" -DGGL_LIBEXEC_DIR=\"/usr/lib/google-gadgets\" -DGGL_RESOURCE_DIR=\"/usr/share/google-gadgets\" -DGGL_HOST_LINUX=1 -DHAVE_X11=1 -DMOZILLA_FIVE_HOME=\"/usr/lib/xulrunner-1.8.0.4\" -DHAVE_PTHREAD=1 -O2 -Werror -Wall -Wconversion -fcheck-new -MT libggadget_smjs_la-converter.lo -MD -MP -MF .deps/libggadget_smjs_la-converter.Tpo -c converter.cc -fPIC -DPIC -o .libs/libggadget_smjs_la-converter.o
converter.cc: In function 'const JSErrorFormatString ggadget::smjs::ErrorCallback?(void, const char, uintN)': converter.cc:726: error: too many initializers for 'const JSErrorFormatString' make4?: libggadget_smjs_la-converter.lo? Error 1

wonk ... I've got pretty much the whole thing already compiled. this error baffles me as well. any ideas?

Comment by parallellepipedum, Jun 06, 2008

721 static const JSErrorFormatString ErrorCallback?(void , const char , 722 const uintN) { 723 static const JSErrorFormatString kErrorFormatString = { 724 "{0}", 1, 725 0, // JSEXN_ERR, not defined in old version of js. 726 }; 727 return &kErrorFormatString; 728 }

ah. weird. I've got js-1.60 installed. Perhaps this can be fixed with an #ifdef or something?

Comment by parallellepipedum, Jun 06, 2008

nvm. solved the above issue and it all compiles. OK.

here's the beautiful result:

$ gdb ggl-gtk GNU gdb 6.7.1 Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... (no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run Starting program: /usr/bin/ggl-gtk (no debugging symbols found) (no debugging symbols found) debugging using libthread_db enabled? Thread 0xb6e78950 (LWP 960)?

Program received signal SIGSEGV, Segmentation fault. to Thread 0xb6e78950 (LWP 960)? 0xb7eadcc7 in ?? () from /usr/lib/libggadget-1.0.so.0 (gdb) bt #0 0xb7eadcc7 in ?? () from /usr/lib/libggadget-1.0.so.0 #1 0xb6fdf000 in ?? () #2 0xb8057ff4 in ?? () from /lib/ld-linux.so.2 #3 0xbf955558 in ?? () #4 0xb8048f20 in call_init () from /lib/ld-linux.so.2 Backtrace stopped: frame did not save the PC

Comment by sander.vogelzang, Jun 06, 2008

Nice work!

Go Google!!

Comment by Mike.A.Oliver, Jun 06, 2008

I ran into a problem on OpenSuse? 10.3 with the configure script not detecting some of my libraries, even though I had the -dev packages installed. It turned out that libtool wasn't installed. I installed it and it detected the libraries.

Comment by Diegonolovich, Jun 06, 2008

I have all these files in my ggl-gtk subfolder:

ggl-gtk ggl_gtk-sidebar_gtk_host.o resources.gg ggl_gtk-main.o ggl_gtk-simple_gtk_host.o ggl-gtk.sh Makefile

Now, How do I run it? Not very proficient with Linux :/

Comment by ryangharrington, Jun 06, 2008

Using Hardy I was able to get it installed with the Ubuntu Hardy Packages (The Easy Way - A PPA)... I am not quite there yet.. How do I run it and how do I add gadgets???

Comment by ryangharrington, Jun 06, 2008

nice...

1. wget http://google-gadgets-for-linux.googlecode.com/fil ... 2. tar zxvf google-gadgets-for-linux-0.9.1.tar.gz 3. cd google-gadgets-for-linux-0.9.1/ 4. sudo apt-get install zlib1g-dev libmozjs-dev libcurl4-openssl-dev libxml2-dev libdbus-1-dev libmozjs-dev libgstreamer-plugins-base0.10-dev libcurl3-openssl-dev libdbus-1-dev libxul-dev libcurl3 libcurl3-dbg libcurl3-gnutls libcurl4-openssl-dev libcurl-ocaml libmozjs0d libmozjs0d-dbg libmozjs-dev g++-4.2-multilib g++ libqt4-dev 5. sudo ldconfig 6. ../../configure --enable-debug 7. sudo make install (alternatively dont use sudo and set an alternate install directory, default /usr/local) 8. export LD_LIBRARY_PATH=/usr/local/lib 9. ggl-gtk An icon should show in the top right status bar, right click and add gadget!

Comment by jscinoz, Jun 07, 2008

I'm packaging this for Debian Unstable, should be finished and waiting on mentors in a couple of days :D

Comment by xuso86, Jun 07, 2008

I have installed the new version 0.9.2. Installations woks fine. No errors. But when starting gg-gtk from console i get a window saying: "Program can't start because it failed to load resources". And in console i get 57:55.001: ../../../../extensions/google_gadget_manager/google_gadget_manager_init.cc:26: Initialize google_gadget_manager extension. 57:55.001: ../../../ggadget/extension_manager.cc:175: Extension google-gadget-manager was loaded successfully. 57:55.002: ../../../../extensions/smjs_script_runtime/smjs_script_runtime.cc:43: Register smjs_script_runtime extension. 57:55.708: ../../../../ggadget/dbus/dbus_utils.cc:1179: Call DBusWatchCallBack, watch id: 4 57:55.708: ../../../../ggadget/dbus/dbus_utils.cc:1179: Call DBusWatchCallBack, watch id: 7 00:22.052: ../../../../extensions/default_options/default_options.cc:305: Flush options file: profile://options/global-options.xml

Of course program stops loading.

Comment by jscinoz, Jun 07, 2008

Just to add, on Ubuntu 8.04 it would seem libqt4-opengl-dev is also required for building the QT version.

Comment by barence, Jun 07, 2008

Thank you nonconformist! Your instructions worked perfectly.

Question: How to make the gadgets appear on the desktop without the sidebar?

Comment by james.su, Jun 07, 2008

Just run ggl-gtk with '-ns' option.

Comment by hemanth...@gmail.com, Jun 07, 2008

After everything i did ggl-gtk

"Failed to update gadget metadata. Will retry after 7200000ms"

Why?

Comment by hemanth...@gmail.com, Jun 07, 2008

I tried .deb file it says Successfully updated gadget metadata but i see nothing on my desktop

Comment by krnlpk, Jun 08, 2008

.libs/libggadget_qt-1.0_la-qt_view_widget.o: In function `ggadget::qt::QtViewWidget?::SkipTaskBar?()': /home/gommosgol/Workspace/googlegadgets-qt4-0.9.2/ggadget/qt/qt_view_widget.cc:413: undefined reference to `XInternAtom' /home/gommosgol/Workspace/googlegadgets-qt4-0.9.2/ggadget/qt/qt_view_widget.cc:414: undefined reference to `XInternAtom' /home/gommosgol/Workspace/googlegadgets-qt4-0.9.2/ggadget/qt/qt_view_widget.cc:417: undefined reference to `XChangeProperty' .libs/libggadget_qt-1.0_la-qt_view_widget.o: In function `ggadget::qt::QtViewWidget?::SetInputMask?(QPixmap)': /home/gommosgol/Workspace/googlegadgets-qt4-0.9.2/ggadget/qt/qt_view_widget.cc:395: undefined reference to `XShapeCombineMask' /home/gommosgol/Workspace/googlegadgets-qt4-0.9.2/ggadget/qt/qt_view_widget.cc:386: undefined reference to `XShapeCombineMask' collect2: ld returned 1 exit status make7?: libggadget-qt-1.0.la? Error 1 make7?: Leaving directory `/home/gommosgol/Workspace/googlegadgets-qt4-0.9.2/ggadget/qt' make6?: all-recursive? Error 1 make6?: Leaving directory `/home/gommosgol/Workspace/googlegadgets-qt4-0.9.2/ggadget/qt' make5?: all? Error 2 make5?: Leaving directory `/home/gommosgol/Workspace/googlegadgets-qt4-0.9.2/ggadget/qt' make4?: all-recursive? Error 1 make4?: Leaving directory `/home/gommosgol/Workspace/googlegadgets-qt4-0.9.2/ggadget' make3?: all? Error 2 make3?: Leaving directory `/home/gommosgol/Workspace/googlegadgets-qt4-0.9.2/ggadget' make2?: all-recursive? Error 1 make2?: Leaving directory `/home/gommosgol/Workspace/googlegadgets-qt4-0.9.2' make1?: all? Error 2 make1?: Leaving directory `/home/gommosgol/Workspace/googlegadgets-qt4-0.9.2' make: build-stamp? Error 2 dpkg-buildpackage: failure: debian/rules build gave error exit status 2

What a hell can be? I'm compiling without the GTK support (QT4 only). My configure script options are: --host=$(DEB_HOST_GNU_TYPE) --disable-gtk-host --disable-libggadget-gtk --disable-gtkmoz-browser-element --disable-gtk-system-framework --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-x --x-includes=/usr/include/X11 --with-gnu-ld CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" Ah, I'm trying to build a .deb package, but if I use standard make, there is no difference beetween the two results.

Comment by ma65p2004, Jun 08, 2008

Well, newbie here. I tried to the step of starting to build and run ../../configure but get the error error: source directory already configured; run "make distclean" there first.

What do I do now?

And I discovered that all of the libraries and packages above is in Synaptic, phew, god bless synaptic.

Comment by ma65p2004, Jun 08, 2008

error: source directory already configured; run "make distclean" there first.

NVM, I followed the instruction, got back to the source folder and do a "make distclean" and then continued on the ../../configure. Hah, that was easy.

Comment by beshkenadze, Jun 08, 2008

12:35.054: zip_file_manager.cc:88: Not a regular file: /usr/local/share/google-gadgets/google-gadget-browser 12:35.054: dir_file_manager.cc:90: DirFileManager? was initialized successfully for path /usr/local/share/google-gadgets/google-gadget-browser 12:35.054: zip_file_manager.cc:88: Not a regular file: / 12:35.054: dir_file_manager.cc:90: DirFileManager? was initialized successfully for path / 12:35.054: google_gadget_manager.cc:974: Failed to load Google Gadget Browser.

Ubuntu 8.04 32bit

Comment by rcasha, Jun 10, 2008

Here's a list of all packages I installed on (K)Ubuntu 8.04 - with these, both the GTK and Qt bits could build. I did have other packages installed before these though.

libmozjs0d libqtwebkit1d spidermonkey-bin libnspr4-dev libnss3-dev libxul-common libxul0d xulrunner-1.9-dev xulrunner-gnome-support libxmu-headers libxt-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libglu1-xorg-dev libjpeg62-dev liblcms1-dev libmng-dev comerr-dev libkrb5-dev libssl-dev libpq-dev libaudio-dev libsqlite0-dev libxmu-dev libqt4-dev libqtwebkit-dev curl libidn11-dev libldap2-dev libcurl4-openssl-dev check libpopt-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libdbus-1-dev libmozjs-dev libsqlite3-dev

Comment by shrikar84, Jun 11, 2008

Hey I followed the steps mentioned in the Hot to build and tried to start the gadgets I got the following segfault..

28:34.816: ../../../ggadget/zip_file_manager.cc:110: Failed to open zip file /home/shrikar/google-gadgets-for-linux-0.9.2/build/debug/resources.gg: No such file or directory 28:34.816: ../../../ggadget/zip_file_manager.cc:88: Not a regular file: /home/shrikar/google-gadgets-for-linux-0.9.2/build/debug/resources 28:34.816: ../../../ggadget/dir_file_manager.cc:90: DirFileManager? was initialized successfully for path /home/shrikar/google-gadgets-for-linux-0.9.2/build/debug/resources 28:34.816: ../../../ggadget/zip_file_manager.cc:88: Not a regular file: / 28:34.816: ../../../ggadget/dir_file_manager.cc:90: DirFileManager? was initialized successfully for path / 28:34.817: ../../../ggadget/zip_file_manager.cc:88: Not a regular file: /home/shrikar/google-gadgets-for-linux-0.9.2/build/debug 28:34.817: ../../../ggadget/dir_file_manager.cc:90: DirFileManager? was initialized successfully for path /home/shrikar/google-gadgets-for-linux-0.9.2/build/debug 28:34.817: ../../../ggadget/dir_file_manager.cc:90: DirFileManager? was initialized successfully for path /home/shrikar/.google/gadgets SmallObjAllocator? 0x808acc0 28:34.821: ../../../../extensions/default_framework/default_framework.cc:488: Initialize default_framework extension. 28:34.821: ../../../ggadget/extension_manager.cc:175: Extension default-framework was loaded successfully. 28:34.821: ../../../../extensions/libxml2_xml_parser/libxml2_xml_parser.cc:725: Initialize libxml2_xml_parser extension. 28:34.822: ../../../ggadget/extension_manager.cc:175: Extension libxml2-xml-parser was loaded successfully. 28:34.823: ../../../../extensions/default_options/default_options.cc:461: Initialize default_options extension. 28:34.823: ../../../ggadget/extension_manager.cc:175: Extension default-options was loaded successfully. 28:34.824: ../../../../extensions/gtk_edit_element/gtk_edit_element.cc:36: Initialize gtk_edit_element extension. 28:34.824: ../../../ggadget/extension_manager.cc:175: Extension gtk-edit-element was loaded successfully. 28:34.824: ../../../ggadget/module.cc:105: Failed to load module gtkmoz-browser-element 28:34.824: ../../../ggadget/module.cc:105: Failed to load module gst-mediaplayer-element 28:34.825: ../../../../extensions/gtk_system_framework/gtk_system_framework.cc:158: Initialize gtk_system_framework extension. 28:34.825: ../../../ggadget/extension_manager.cc:175: Extension gtk-system-framework was loaded successfully. 28:34.825: ../../../ggadget/module.cc:105: Failed to load module gst-audio-framework 28:34.825: ../../../ggadget/module.cc:105: Failed to load module linux-system-framework 28:34.825: ../../../ggadget/module.cc:105: Failed to load module smjs-script-runtime 28:34.825: ../../../ggadget/module.cc:105: Failed to load module curl-xml-http-request 28:34.827: ../../../../extensions/google_gadget_manager/google_gadget_manager_init.cc:26: Initialize google_gadget_manager extension. 28:34.827: ../../../ggadget/extension_manager.cc:175: Extension google-gadget-manager was loaded successfully. 28:34.934: ../../../ggadget/memory_options.cc:32: option metadata_last_try_time changed to INT64:1213180114934 28:34.935: ../../../ggadget/xml_http_request_factory.cc:33: The XMLHttpRequest factory has not been set yet. 28:34.935: ../../../ggadget/xml_http_request_factory.cc:33: VERIFY FAILED: g_factory Segmentation fault (core dumped)

Comment by jimmyxx, Jun 15, 2008

I've got a clean ubuntu 8.04 install. I've followed the installation instructions and everything worked fine. I've enabled gtk & qt support but when i try to load either i get "Program can't start because it failed to load resources"

If anyone has any information on how to resolve this please contact me.

Thanks

Comment by kgas1966, Jun 20, 2008

you can download a .deb file from http://www.getdeb.net/release/2798 and enjoy!

Comment by EranNave, Jun 21, 2008

I also had the "configure: error: No type size_t, but google Gadgets for Linux needs it!" It got solved by installing g++...

Comment by alxmarcond, Jun 24, 2008

had to install a bunch of various dependancies... searching through all of the threads... noncomformists didnt work for me. i was too far into it to bother trying the PPA but im sure that works fine. after install all the dependancies i think its ganna work fine.. make takes forever to run... ubuntu 8.10

Comment by bruzzi, Jun 25, 2008

On Kubuntu 8.04, installing all the listed packages (and g++) helped get me to the point where "configure" was successful, but I got a failure during "make":

"No rule to make target images/add_button_default.png', needed by all-am'. Stop."

Any help would be appreciated.

Comment by phnixwxz, Jun 25, 2008

@bruzzi: Then please check if extensions/google_gadget_manager/gadget_browser/images/add_button_default.png exist. It should exist, or your package is incomplete. Try download it again.

Comment by ifuller1picasa, Jun 26, 2008

For all those struggling with a warning about gtk and qt hosts not building, firefox-dev install seems to resolve most of the missing dependencies on Fedora 8 - and Ubuntu.

Comment by bruzzi, Jun 26, 2008

@phnixwxz: Thanks for the point in the right direction. However, this seems to highlight an issue with the google-gadgets-for-linux-0.9.3.tar.gz file above. When I view the contents of this tar, I see about 20 png images in the root folder (siblings of the "google-gadgets-for-linux-0.9.3" folder). I would assume others who downloaded version 0.9.3 may also need to move these files accordingly.

Comment by bruzzi, Jun 26, 2008

To confirm, after I ran:

$ mv .jpg extensions/google_gadget_manager/gadget_browser/images $ mv .png extensions/google_gadget_manager/gadget_browser/images

it installed fine!

Comment by navtsi75, Jun 28, 2008

Regarding the "Program can't start" issue posted by xuso86 and jimmyxx:

Don't know if you've worked this out, but for anyone else wondering about this when they try to run it right after a successful compile: I had that come up because I was trying to run "ggl-gtk" while being in the directory I compiled it in, so it wasn't actually running the app that was installed. I just did "cd" then ran "ggl-gtk" again and it's up and running! :)

Comment by phil.cryer, Jun 30, 2008

Add the following to /etc/apt/sources.list

deb http://ppa.launchpad.net/googlegadgets/ubuntu hardy main deb-src http://ppa.launchpad.net/googlegadgets/ubuntu hardy main

Then # apt-get update # apt-get install google-gadgets

fak3r - http://fak3r.com

Comment by makenshi, Jul 11, 2008

For some reason the configure script does not detect a custom SpiderMonkey? installation properly when using the parameters "--with-smjs-incdir" and "--with-smjs-libdir". If you are sure they are correct you can fix this by editing ./configure and searching for

if test x$has_spidermonkey != xyes -a x$build_smjs_script_runtime = xyes; then
  { $as_echo "$as_me:$LINENO: WARNING: Library SpiderMonkey is not available, smjs-script-runtime extension won't be built." >&5
$as_echo "$as_me: WARNING: Library SpiderMonkey is not available, smjs-script-runtime extension won't be built." >&2;}
  build_smjs_script_runtime=no
fi

and replacing it with

build_smjs_script_runtime=yes

P.S. The comment box could really do with a Preview button!

Comment by lostman.bump.of.chicken, Jul 11, 2008

for Fedora9 repository

# cd /etc/yum.repos.d/

# wget http://f46.aaa.livedoor.jp/~zoomer/file/lostman.repo

# yum --enablerepo=lostman -y install google-gadgets google-gadgets-gtk

Comment by houzhiyang, Jul 16, 2008

Thank you very much! The guy called volker.breme With you help,I install all the staffs you say "libcurl3, libcurl3-dbg, libcurl3-gnutls, libcurl4-openssl-dev libcurl-ocaml libmozjs0d, libmozjs0d-dbg, libmozjs-dev, spidermonkey, g++-4.1, g++-4.1-multilib, g++-4.2, g++-4.2-multilib" the spidermonkey seems not to be installed necessary But software get to work Whooooooooo~ But make takes to many time I hope this situation just in the beta

Comment by thibellini, Jul 16, 2008

why is google-gadgets repo with 0.9.1? oO

it`s too old!

Comment by thibellini, Jul 17, 2008

the repo that I`m saying is th Ubuntu Hardy repo...

and the getdeb one is on 0.9.3

Comment by BreakDS, Jul 20, 2008

Hosts:

Build gtk host no Build qt host no

configure: WARNING: Neither gtk host nor qt host will be built !!!

Nothing can be used to run Google Gadgets for Linux.

Debain etch, is there any one encountered the same problem? I can't figure out what package I missed.

Comment by phnixwxz, Jul 20, 2008

@BreakDS: you must have development packages for either gtk+cairo or qt to build either gtk host or qt host. Please see Pre-requirements section for the versions required.

Comment by dellatore, Jul 25, 2008

There's a .deb available here:

http://www.getdeb.net/release/2933

Google Gadgets 0.10.0 - Friday, 18 Jul 2008 12:24:14 CEST - Post Comment
For: Ubuntu Hardy (32 bits)
Comment by BreakDS, Jul 26, 2008

@phnixwxz: Thanks, I intalled a qt-dev-tools and solve this problem

Comment by zoasterboy, Jul 28, 2008

The .deb got it working for me in Ubuntu Hardy.

Comment by coldego, Aug 03, 2008

Thank You Very Much, jscinoz!

quote?Just to add, on Ubuntu 8.04 it would seem libqt4-opengl-dev is also required for building the QT version./quote? A long time I thought that something is wrong with my Kubuntu 8.04 Hardy. Libraries libqt4-dev, libwebkit-dev was installed, but I can`t build qt-host!

P.S. To developers. May you be pleased to make instructions more obvious?

Comment by paingel, Oct 17, 2008

alright, Ive been trying all sorts of tips n trix the whole evening, but I just cant figure it out. Needles to say Im a bit of a noob when It comes to ubuntu n linux in general, but I cant seem to be able to make the gadgets. Error when make:

cc1plus: warnings being treated as errors ../../../ggadget/system_utils.cc: In function ‘std::string ggadget::GetAbsolutePath?(const char)’: ../../../ggadget/system_utils.cc:348: error: ignoring return value of ‘char getcwd(char, size_t)’, declared with attribute warn_unused_result ../../../ggadget/system_utils.cc: In function ‘void ggadget::Daemonize()’: ../../../ggadget/system_utils.cc:470: error: ignoring return value of ‘int daemon(int, int)’, declared with attribute warn_unused_result

I guess theese are the acctual error msg's, theres a bunch after them, but doesn't seem to be informative, even tried sudo make, sudo make && make install and this is what I end up with. Although my system is the new Intrepid Ibex 8.10Beta and I have been trying to download the .deb files but there's a dependecie missing, when I try and install it it won't let me cus I've got a newer one. Any clues anyone?

Comment by manysounds, Oct 17, 2008

I am running Intrepid 8.1beta The error from the http://www.getdeb.net/release/3078 is: Error: Dependency is not satisfiable: lidltdl3

libltdl7 is included with Intrepid

Comment by xiaohu.dong, Oct 19, 2008

We'd better provide packages for Intrepid ASAP.

Comment by sunil.kayiti, Oct 25, 2008

To ignore declared with attribute warn_unused_result errors, try configure --disable-werror

Comment by tangusjz, Nov 01, 2008

I got an error when running "make". Below is the log. libtool: link: cannot find the library ..//libltdl.la' or unhandled argument ..//libltdl.la' But I do have libltdl.la under build/debug/libltdl. No idea why this happened. Need help.

Comment by scarolan, Nov 02, 2008

Anyone have luck installing this on Ubuntu 8.10? I get the following when I try to make:

configure: WARNING: Library gtk-2.0 is not available, gtk-system-framework extension and gtk host won't be built. configure: WARNING: Library qt-4.3 or above is not available, qt port won't be built configure: WARNING: Library SpiderMonkey? is not available, smjs-script-runtime extension won't be built. configure: WARNING: Library D-Bus is not available, libggadget-dbus won't be built. configure: WARNING: Library GtkMozEmbed? is not available, gtkmoz-browser-element extension won't be built. configure: error: conditional "GTK2_TARGET_X11" was never defined. Usually this means the macro was only invoked conditionally.

Comment by james.su, Nov 02, 2008

to scarolan: you need install development packages for those libraries, especially: build-essential libgtk2.0-dev libxml2-dev libqt4-dev libcurl4-gnutls-dev (or libcurl4-openssl-dev) libgstreamer-plugins-base0.10-dev xulrunner-1.9-dev

Comment by technoskuld, Nov 08, 2008

I get it to compile and install. It runs perfectly with ggl-qt. But sysdeps.h (needed by plasma) is not installed in includes.

Comment by mccfrank, Nov 09, 2008

I'm running now on Intrepid. I did have to install a bunch of dev packages like: build-essential libgtk2.0-dev libxml2-dev libqt4-dev libcurl4-gnutls-dev libgstreamer-plugins-base0.10-dev xulrunner-1.9-dev...

The build took the better part of a half hour on my dualcore 2.6...then checkinstall failed so I did a make install. They still showed up in my menus...I have BOTH QT and GTK versions :)

Comment by undelborg, Nov 11, 2008
.deps/libggadget_npapi-1.0_la-npapi_plugin.Tpo -c ../../../ggadget/npapi/npapi_plugin.cc -fPIC -DPIC -o .libs/libggadget_npapi-1.0_la-npapi_plugin.o

../../../ggadget/npapi/npapi_plugin.cc:42:27: error: X11/Intrinsic.h: No such file or directory ../../../ggadget/npapi/npapi_plugin.cc: In static member function ‘static NPError ggadget::npapi::Plugin::Impl::NPN_GetValue?(NPP_t, NPNVariable, void)’: ../../../ggadget/npapi/npapi_plugin.cc:625: error: expected type-specifier before ‘XtAppContext?’ ../../../ggadget/npapi/npapi_plugin.cc:625: error: expected `>' before ‘XtAppContext?’ ../../../ggadget/npapi/npapi_plugin.cc:625: error: expected `(' before ‘XtAppContext?’ ../../../ggadget/npapi/npapi_plugin.cc:625: error: ‘XtAppContext?’ was not declared in this scope ../../../ggadget/npapi/npapi_plugin.cc:625: error: expected primary-expression before ‘>’ token ../../../ggadget/npapi/npapi_plugin.cc:626: error: ‘XtDisplayToApplicationContext?’ was not declared in this scope ../../../ggadget/npapi/npapi_plugin.cc:626: error: expected `)' before ‘;’ token make5?: libggadget_npapi-1.0_la-npapi_plugin.lo? Error 1 make5?: Leaving directory `/home/undel/google-gadgets-for-linux-0.10.3/build/ggadget/npapi' make4?: all-recursive? Error 1 make4?: Leaving directory `/home/undel/google-gadgets-for-linux-0.10.3/build/ggadget/npapi' make3?: all-recursive? Error 1 make3?: Leaving directory `/home/undel/google-gadgets-for-linux-0.10.3/build/ggadget' make2?: all? Error 2 make2?: Leaving directory `/home/undel/google-gadgets-for-linux-0.10.3/build/ggadget' make1?: all-recursive? Error 1 make1?: Leaving directory `/home/undel/google-gadgets-for-linux-0.10.3/build' make: all? Error 2

running DebianEeePC based on debian lenny/sid. lenny repos doesn't include libxul, libxul0d, libmoz0d repos from etch has very old versions of other dependent packages.

./configure works just fine, everithing except "Install included libltdl" and "Enable debug" are "yes". .deb file needs libxul0d and libmoz0d.

Comment by james.su, Nov 11, 2008

to undelborg: Please install necessary dev packages. You may refer to Ubuntu section above. libxul, libxul0d, libmoz0d are old packages and are not recommended to use. Please use xulrunner-1.9-dev instead.

Comment by rmapley, Nov 23, 2008

this rocks!! took ages on my old system but is cool!!

Comment by kyle.huynh205, Dec 03, 2008

make3?: libggadget-1.0.la? Error 9 make3?: Leaving directory `/home/kyle205/Download/icon/kdm themes/google-gadgets-for-linux-0.10.3/ggadget' make2?: install-recursive? Error 1 make2?: Leaving directory `/home/kyle205/Download/icon/kdm themes/google-gadgets-for-linux-0.10.3/ggadget' make1?: install? Error 2 make1?: Leaving directory `/home/kyle205/Download/icon/kdm themes/google-gadgets-for-linux-0.10.3/ggadget' make: install-recursive? Error 1

Have that problem during installing. How can I fix it ? Thanks

Comment by m...@dipe.org, Dec 09, 2008

Quick intro compiling ggl with Qt4-copy and support for KDE 4.2 Plasma

Check out newest sources (we need >=0.10.4 rather then the 0.10.3 tarball)

svn checkout http://google-gadgets-for-linux.googlecode.com/svn/trunk/ ggl-trunk

Create stuff we need for compiling

cd ggl-trunk && autotools/bootstrap.sh

Configure with disabling unneeded functionality. You still need the Mozilla SpiderMonkey? devel package cause support for QtScript? or KJS/WebScriptCore? isn't done yet ( Issue 151 ). prefix points to where I've qt-copy installed cause I just install ggl into the same dir (else e.g. --includedir=/home/kde4/qt4-copy/include/ and --libdir=/home/kde4/qt4-copy/lib/ allows more control).

./configure --prefix=/home/kde4/qt4-copy/ --enable-debug --disable-gtk-host --disable-libggadget-gtk --disable-gtk-flash-element --disable-gtkmoz-browser-element --disable-gst-video-element --disable-gtk-flash-element --disable-gtk-system-framework --disable-gtkmoz-browser-element 

Compile and install

make && sudo make install

To check the thing out;

export LD_LIBRARY_PATH=/home/kde4/qt4-copy/lib/ && ggl-qt

Recompile kdebase (or just kdebase/workspace/plasma/scriptengines/google_gadgets) to get ggl supported in plasma (KDE 4.2 beta1 or later required) and have fun :)~

Troubleshooting;

  • If you earn some error like /home/kde4/qt4-copy/lib//libggadget-xdg-1.0.so.0: undefined reference to `ggadget::SplitStringList?(...)' you may need to remove previous installations of ggl first.
  • If recompiling kdebase doesn't pick your installation of ggl up then you can still go the dirty way and replace all the content within kdebase/workspace/cmake/modules/FindGooglegadgets?.cmake with something like;
  • set(GOOGLEGADGETS_FOUND "true")
    set(GOOGLEGADGETS_INCLUDE_DIRS "/home/kde4/qt4-copy/include/google-gadgets/" "/home/kde4/qt4-copy/lib/google-gadgets/include/")
    set(GOOGLEGADGETS_LIBRARIES "/home/kde4/qt4-copy/lib/ggadget")
    set(GOOGLEGADGETS_CFLAGS_OTHER "")
    MARK_AS_ADVANCED(GOOGLEGADGETS_INCLUDE_DIRS GOOGLEGADGETS_LIBRARIES)
  • If the google_gadgets Plasma backend fails to compile for you, please let us know (plasma-devel AT kde DOT org or the issue-tracker here or bugs.kde.org or...) - thx :)
Comment by bodlytoo, Dec 10, 2008

Thanks for the help compiling for kde4. It worked great for me. That's pretty slick.

Comment by anfelsan, Dec 20, 2008

Hello, I have trouble with a 32-bit binary for Ubuntu Hardy Heron (8.4) (google-gadgets_0.10.3-0 ~ getdeb1_i386). The binary displays an error of lack of dependence libcairo2 but already installed.

With the source (google-gadgets-for-linux-0.10.4.tar.gz2) also have a problem, When. / Configure is fine, but when I make the command shows me in the last lines as follows:

. / .. / ggadget / scriptable_holder.h: In instantiation of 'ggadget: ScriptableHolder? <ggadget::gtkmoz::BrowserElementImpl?::BrowserObjectWrapper?>': browser_element.cc: 549: instantiated from here .. / .. / ggadget / scriptable_holder.h: 36: error: creating the matrix size with negative ( '-0x00000000000000001') make 3?: gtkmoz_browser_element_la-browser_element.lo? Error 1 make 3?: exits the directory `/ home/numeric/descargas/google-gadgets-for-linux-0.10.4/extensions/gtkmoz_browser_element ' make 2?: all-recursive? Error 1 make 2?: exits the directory `/ home/numeric/descargas/google-gadgets-for-linux-0.10.4/extensions' make 1?: all-recursive? Error 1 make 1?: exits the directory `/ home/numeric/descargas/google-gadgets-for-linux-0.10.4 ' make: all? Error 2

Thanks for your help.

numeric

Comment by james.su, Dec 20, 2008

To anfelsan: You can download binary package for Ubuntu Hardy at: http://download.opensuse.org/repositories/home:/suzhe/xUbuntu_8.04/

Comment by dwhite1189, Dec 22, 2008

problem. when i try to ./configure i get this message.. (fedora 10)

checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details.

any thoughts? how to install?

Comment by steven.francisco, Dec 29, 2008

Well done. I was able to compile 0.10.4 on 64bit Intrepid without issue at all. While I prefer most built in apps, there's no denying this is nicer than the gnome screenlets. Anyone tried making there own deb package with checkinstall?

Comment by emn178, Mar 24, 2009

Hi: I try to cross-compile to arm. I have finished compiling, but it will occur "Segmentation fault" when I run the ggl-gtk. I try to trace code for finding the problem. I can olny know it crash in:

RunOnce?::RunOnce?(const char path)

: impl(new Impl(path)) {
}

The line "impl(new Impl(path)" cases crash. I put a "printf" in the first line in construct of Impl, but it won't print. So I can't find the problem. I add the option --enable-debug, but I don't know how to use it.

So I have some questions 1. It's possible to cross compile Google Gadget to arm without modify code? 2. How can I use --enable-debug option to debug? 3. What the reasons could case "segmentation fault"?

Thank you.

Comment by james.su, Mar 24, 2009

GGL has been run successfully on Nokia N810, which is an ARM based device. --enable-debug enables debug log message and debug symble, so that you can use gdb to debug. I'm not sure what's the problem, but you can simply disable RunOnce? by delete all code related to run_once in hosts/gtk/main.cc

Comment by emn178, Mar 25, 2009

Thank you for your answer.

I try to use gdb for debug, but it doesn't show the information clearly. It shows something like that "in ?? () from libggadget-1.0.so.0" "access(or what I forget) 0x00 address" anyway, the information doesn't help ...

I think taht maybe I have wrong setting so that I can't cross-compile correctly. I descript how I do this in following,

I use poky and bitbake to do cross-compile. At first, I get

...
Build gtkmoz-browser-element  no
...
Build smjs-script-runtime     no
...

So I cross compile and install xulrunner for arm version.

I configure again, I get

...
Build gtkmoz-browser-element  yes
...
Build smjs-script-runtime     no
...

I think xulruner should include the two extension, but it only pass one. I start trace the configure.ac and find

EMBED_INCDIR=`$PKG_CONFIG --variable=includedir $has_gtkmozembed`
...
LIBMOZJS_INCDIR=`$PKG_CONFIG --variable=includedir $has_libmozjs`
...
LIBMOZJS_LIBDIR=`$PKG_CONFIG --variable=libdir $has_libmozjs`

The pkg-config will return the local path like "/usr/include/xulrunner" So I patch them to the path like

EMBED_INCDIR={$arm_staging_prefix}/`$PKG_CONFIG --variable=includedir $has_gtkmozembed`
...
LIBMOZJS_INCDIR={$arm_staging_prefix}/`$PKG_CONFIG --variable=includedir $has_libmozjs`
...
LIBMOZJS_LIBDIR={$arm_staging_prefix}/`$PKG_CONFIG --variable=libdir $has_libmozjs`

It can configure and compile successfully, but it show "segmentation fault" finally. what's the mistake of me?

I can't find the document about cross-platform on this offical site. What should I notice?

Comment by emn178, Mar 28, 2009

I delete anything about Run_Once?, but it will occur "Segmentation fault" in other places.

I try to build GGL in qemu directly, but it will also occur "Segmentation fault" in this command "../../xdg/intl-desktop-file.sh ggl-designer.desktop.tmp ggl-designer.desktop"

in the sh file, it fails in this line:

/home/root/qemu/google-gadgets-for-linux-0.10.5/xdg/intl-desktop-file $@

i trace the intl_desktop_file.cc, it crash in this line:

fm = ggadget::CreateFileManager(kGlobalResourcePaths[i]);

What is the designer? Can I disable it?

Comment by james.su, Mar 29, 2009

Something must be wrong when cross-compiling GGL. I believe the problem has nothing to do with GGL's code. You may try to cross-compile some other simpler programs to see if your environment is ok.

Comment by ThreatX, Apr 06, 2009

I'm trying to install to RHEL5.3 (Tikanga) which doesn't have a list of the required files for building the package. What can be done to determine what is missing from my prereqs?

Comment by stefan.piep, Jul 03, 2009

configure runs great but when i run make i get:

osink\" -DGGL_DEFAULT_BROWSER_PLUGINS_DIR=\"/usr/lib64/mozilla/plugins\" -DGGL_ENABLE_XDGMIME -DGGL_GTK_HTML_SCRIPT_ENGINE=\"xulrunner\" -DGGL_GTK_XML_HTTP_REQUEST=\"soup\" -DGGL_QT_SCRIPT_ENGINE=\"smjs\" -O2 -Wall -fstack-protector -Werror -MT libggadget-1.0_la-variant.lo -MD -MP -MF .deps/libggadget-1.0_la-variant.Tpo -c ../../ggadget/variant.cc -fPIC -DPIC -o .libs/libggadget-1.0_la-variant.o cc1plus: warnings being treated as errors ../../ggadget/variant.cc: In destructor »ggadget::Variant::~Variant()«: ../../ggadget/variant.cc:68: Fehler: Dereferenzierung eines Type-Pun-Zeigers verletzt strict-aliasing-Regeln ../../ggadget/variant.cc:71: Fehler: Dereferenzierung eines Type-Pun-Zeigers verletzt strict-aliasing-Regeln ../../ggadget/variant.cc: In member function »ggadget::Variant& ggadget::Variant::operator=(const ggadget::Variant&)«: ../../ggadget/variant.cc:83: Fehler: Dereferenzierung eines Type-Pun-Zeigers verletzt strict-aliasing-Regeln ../../ggadget/variant.cc:86: Fehler: Dereferenzierung eines Type-Pun-Zeigers verletzt strict-aliasing-Regeln ../../ggadget/variant.cc:105: Fehler: Dereferenzierung eines Type-Pun-Zeigers verletzt strict-aliasing-Regeln ../../ggadget/variant.cc:109: Fehler: Dereferenzierung eines Type-Pun-Zeigers verletzt strict-aliasing-Regeln ../../ggadget/variant.cc: In member function »std::string ggadget::Variant::Print() const«: ../../ggadget/variant.cc:202: Fehler: Dereferenzierung eines Type-Pun-Zeigers verletzt strict-aliasing-Regeln ../../ggadget/variant.cc:210: Fehler: Dereferenzierung eines Type-Pun-Zeigers verletzt strict-aliasing-Regeln make4?: libggadget-1.0_la-variant.lo? Fehler 1 make4?: Leaving directory `/home/stefan/ggl-trunk/build/ggadget' make3?: all-recursive? Fehler 1 make3?: Leaving directory `/home/stefan/ggl-trunk/build/ggadget' make2?: all? Fehler 2 make2?: Leaving directory `/home/stefan/ggl-trunk/build/ggadget' make1?: all-recursive? Fehler 1 make1?: Leaving directory `/home/stefan/ggl-trunk/build' make: all? Fehler 2

Comment by nicolas.alvarez, Oct 30, 2009

Don't fucking use --prefix=/usr!

/usr is reserved for your package manager to manage; your own self-compiled stuff should be in /usr/local.


Sign in to add a comment