|
BuildingGearsForWindows
Building Gears for Windows
IntroductionThis document describes how to build Gears for Windows. BuildingInstall the following to create the build environment:
Follow the instructions at http://code.google.com/p/gears/source to set up your source tree. Finally open a command prompt, setup your build environment, and build Gears. (These instructions assume you put Gears in c:\svn-gears and installed Visual Studio and the Platform SDK to their default locations.)
InstallingTo install Gears, go to bin-dbg\win32\installers\ from your Gears directory and run the .msi (IE and Firefox) or open the .xpi (Firefox only). TestingAfter installing, you should restart your browser. Go to the Gears API page. At the lower left corner, it should indicate the build of Gears that is active. You should be able to try out the demos or create your own. You can also run the unit tests in the source tree (/gears/test/unit_tests.html). |
Sign in to add a comment
Platform SDK url seems to have changed
I used this one: http://www.microsoft.com/downloads/details.aspx?FamilyId=0BAF2B35-C656-4969-ACE8-E4C0C0716ADB&displaylang=en
I compile in windows and: LIBCMTD.lib(stdexcpt.obj) : error LNK2005 : ya se definio "public: virtual this call std:exception::~exception(void)" (??exception@std@VAE@XZ) en exception_handler_win32.obj
Why????
How to build a GoogleGears? which can be silently installed ??
Visual Studio 2005 is no longer available, but this works using the full version of MS Visual Studio 2008, but not with the express version. Start full compilation including installer by simply calling "make" without parameters.
Compiling using Visual Studio 2008 seems to require a small adjustment in the zlib sources. Putting <stdio.h> on top of the includes did the job for me.
I got everything compiled but the make dependency to create the windows installer (.msi or .xpi file) seems to be missing. When we did this a year ago things worked so I suspect something has recently changed. Any clues about how to install the windows version (on Firefox 3.1) once it is compiled? - Rick
To make it work with vs2008(winXP SP3, code page 949): 1) commented out "//line 200# define vsnprintf vsnprintf" "C:\svn-gears\gears\gears\third_party\zlib\zutil.h" 2) save as "C:\svn-gears\gears\gears\gears\base\common\url_utils_test.cc" in code page 949
When I follow the instructions with visual studio 2008 I get this error: 'cl' is not recognized as an internal or external command,operable program or batch file.
Any ideas? :|
The requirements above are a little vague. You specifically need Visual C++ installed (not just some form of Visual Studio, some people never install C++). You can also use VS2005 or VS2008. I also used Python 2.6.2 and the latest build of Wix (3.5.x).
For VS2008 there are two changes to the above instructions:
1) comment out "//line 200# define vsnprintf vsnprintf" in file: "C:\svn-gears\gears\gears\third_party\zlib\zutil.h" (confirmed, thanks mansukim)
2) "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" is located at "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
Also of note is that the build paths can be confusing, because the path to Unxutils "/wbin" is explicit in the example, but the path to Wix's /bin is also explicitly required. Without the full path here, you will build everything but the .msi installer packages.
Please update above.
For the PSDK, http://www.microsoft.com/downloads/details.aspx?FamilyId=E15438AC-60BE-41BD-AA14-7F1E0F19CA0D&displaylang=en gives you and img/iso file that you can use with Virtual CD
I've been following the above instructions and been making some fresh headway (thanks unicron) but I've run into this error now:
...\third_party/passthru_app/urlmon_ie7_extras.h(278)
as 'enumerator' ee declaration of 'QUERY_USES_HISTORYFOLDER' make1?: bin-dbg/win32-i386/ie/http_intercept.obj? Error 2 make: default? Error 2Anyone have any idea of what I need to do here? Would really appreciate any advice :)
Temporarily, you can get it past the redefinition by commenting out the enum in urlmon_ie7_extras.h. Ideally, there would be some sort of PSDK version definition, but I'm unaware of one.