|
BuildingGearsForSafari
Building Gears for Safari
Current StatusGears for Safari compiles and runs in the current repository, there are still bugs and we currently working on stabilizing the port. If you are not a developer, interested in contributing to the Safari port, it's recommended that you wait for an official release. Gears for Safari requires OS X >=10.4 (Tiger or later) and Safari version 3.1.1 or better. The Windows version of Safari is not supported at this time (see relevant entry in issue tracker). IntroductionThe Safari port is implemented as an NPAPI plugin. It currently has feature parity with other platform with the exception of the FileSubmitter class. ComponentsGears for Safari is made up of two components:
Building
InstallingIf you have Iceberg installed you will get a Gears.pkg package that you can double click to install. Otherwise you can run the script under tools/osx/install_gears.sh which will install Gears for you. Another option is to install the components manually:
TestingAfter installing, you should restart Safari. Go to the Gears Homepage, this will indicated whether Gears is installed and what version is running. In addition you will see the 'Gears Settings...' menu item under the Safari Application menu. If you've compiled a debug build, Gears will print diagnostic messages to the console as it loads, you can use these to diagnose problems you may have with the Gears installation. Useful ScriptsYou can find some useful scripts related to Safari compilation in the tools/osx/ directory. Most of these can be run without arguments to print a usage message:
XCode ProjectYou can find an XCode project for compiling Gears at tools/osx/gears.xcodeproject. This is included mainly for convenience for Mac Developers, the "official" releases of Gears are compiled via the Makefile. Debugging with XCodeYou can debug Gears plugin using GDB and attaching to the Safari process. However, it's more convinient to use XCode. Here is how to setup a special 'debugging' project for XCode for that. Note if you use XCode project file to build Gears, you don't need this - but if you build with 'make' you do.
BreakpadBreakpad is only enabled for official builds, it will not work correctly if the file in /Library/Internet Plugins is an alias to the Gears.plugin file in your build directory rather than a copy. Also, by default, Breakpad turns itself off when running Gears under a debugger. |
Does compile in debug mode, but hangs up when used.
Works for me (except the Worker Pool Demo).
It works for Google Docs and Google Reader on Safari 4.0DP Leopard10.5.4. But when I try to use Google Reader as Web Application(Safari4 feature), it doesn't work. I can use Google Docs as Web Application...
Out of the box, it looks like the project can only be built on an Intel machine at present. I went to try to build the 0.4.20.0 sources on my old 12" Powerbook (PPC) and found that one of the binaries (xpidl) in the third_party/gecko_1.9 tree was i386-only.