I created a new blog on WordPress.com, then I felt the dashboard is really really slow. I hoped the Google Gears can improve speed a lot.
There is an patch in this comment. However this patch would not work with more efforts, because it still use the Gecko comes with repository and that Gecko in subversion has 32-bit binary stuff, we need the 64-bit binary of Gecko (aka. XULRunner), you can install it on Fedora using yum install xulrunner-devel.x86_64.
My patch for r3234 (include exact same patch from that comment and comment out line 1195 of gears/tools/rules.mk) for Fedora 10 x86_64 can be downloaded in my comment on that issue.
You can patch by running
Copying 64-bit binary
Starting building process by running
The process will be stopped with the following error message:
Now we need to do the follows:
Build again, you should have no problem this time.
Packing can be done by running
The XPI should be generated under gears/bin-opt/installers.
You can download it here.
There are few demos that you can try out. I got no errors when ran them.
Checkout from repository
$ svn checkout http://gears.googlecode.com/svn/trunk/ gears-read-only
$ cd gears-read-only
Patching
There is an patch in this comment. However this patch would not work with more efforts, because it still use the Gecko comes with repository and that Gecko in subversion has 32-bit binary stuff, we need the 64-bit binary of Gecko (aka. XULRunner), you can install it on Fedora using yum install xulrunner-devel.x86_64.
My patch for r3234 (include exact same patch from that comment and comment out line 1195 of gears/tools/rules.mk) for Fedora 10 x86_64 can be downloaded in my comment on that issue.
You can patch by running
patch -p0 < r3234-64bit.patch
Copying 64-bit binary
Starting building process by running
cd gears
make BROWSER=FF3
The process will be stopped with the following error message:
/usr/bin/ld: skipping incompatible ../third_party/gecko_1.9/linux/gecko_sdk/lib/libxpcom.so when searching for -lxpcom
/usr/bin/ld: cannot find -lxpcom
collect2: ld returned 1 exit status
make[1]: *** [bin-opt/linux-x86_64/ff3/libgears.so] Error 1
make: *** [default] Error 2
[ 2 ] livibetter@dfed ~/var/src/gea/gears > file ../third_party/gecko_1.9/linux/gecko_sdk/lib/libxpcom.so
../third_party/gecko_1.9/linux/gecko_sdk/lib/libxpcom.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped
Now we need to do the follows:
cp /usr/lib64/xulrunner-sdk-1.9/sdk/lib/libxpcom.so ../third_party/gecko_1.9/linux/gecko_sdk/lib/libxpcom.so
cp /usr/lib64/xulrunner-sdk-1.9/sdk/lib/libxpcomglue_s.a ../third_party/gecko_1.9/linux/gecko_sdk/lib/libxpcomglue_s.a
cp /usr/lib64/xulrunner-sdk-1.9/sdk/lib/libxul.so ../third_party/gecko_1.9/linux/gecko_sdk/lib/libxul.so
cp /usr/lib64/xulrunner-1.9/xpt_link ../third_party/gecko_1.9/linux/gecko_sdk/bin/xpt_link
chmod +x ../third_party/gecko_1.9/linux/gecko_sdk/bin/xpt_link
Build again, you should have no problem this time.
Packaging XPI installer
Packing can be done by running
make installers
The XPI should be generated under gears/bin-opt/installers.
You can download it here.
Testing
There are few demos that you can try out. I got no errors when ran them.
Found this page through Issue 335 at Google Code, thanks alot for posting! I tested using Firefox 3.0.6 on Ubuntu 8.10 with your built XPI and it worked fine, much appreciated.
ReplyDelete@KyleG I am glad this build also works on Ubuntu!
ReplyDeleteHi there,
ReplyDeleteAgain, I found this through issues 335, followed you instructions and now have a working gears (fedora 10, x86_64) - thanks!
A couple of minor typos:
- Theres a newline missing on the cd gearsmake BROSWER=FF3 line
- Theres also a newline missing on the first line when copying the libs across from xulrunner
- gears/in-opt/installers should be gears/bin-opt/installers
Also, there was a build failure in wifi_data_provider_common.cc - the set of #ifs for this combo meant assert.h wasnt being included, and is needed to compile UpdatePollingInterval().
This might be new but I thought Id mention it in case someone else is struggling. Im building r3258 of the gears svn tree. assert.h is easily included directly before the function, but I doubt this is the proper fix.
Thanks again.
@Will, thanks for pointing out the typos clearly. Now, they should all be corrected. About the build failure, I didnt notice there was any. I guess that wasnt critical.
ReplyDeleteHave you had any success compiling the NPAPI version of google gears, I think this is necessary for Chromium
ReplyDelete