Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using the Google APIs Client Library for C++ on Windows

I noticed that Google has this SDK for accessing various Google services using C++ on the client side.

Curiously, they have support only for Linux and Mac OS. Arguably there are other popular client OSes as well, on which the developer would want to use Google's services. I want to write a C++ app for Windows8 and I want to be able to use the Google C++ API. Has anyone tried that and succeeded?

Btw, I noticed that the the discussion group for this SDK is quite empty. Wonder what kind of audience does Google have in mind with this library.

like image 971
Raman Sharma Avatar asked Nov 01 '22 14:11

Raman Sharma


1 Answers

Windows is not yet supported but we do expect to support it in the longer term. We are hoping to support a gcc compiler on windows in the next release. We expect to support Visual Studio in the future, but there are other features of higher priority at this time. Demand could certainly affect our prioritization.

I think the current (0.1) release will build with Visual Studio for purposes of smoke testing and feeling out some issues. It isnt a real port and is brittle so it isnt documented or something I want to support. But it is enough to prototype something and perhaps generate feedback from if you want to try.

To build 0.1 on Windows for Visual Studio follow the instructions for linux/mac running the python prepare_dependencies.py script. It will download and install cmake. After it builds the dependencies, Run cmake -G "NMake Makefiles" and use nmake.

All the tests should pass except for SSL support because configuring the curl build for SSL is more involved on windows (and you probably need perl for their standard process). You could try building that yourself or obtaining a prebuilt binary. It looks like the windows builds for curl are not current, but I assume older builds will work also.

The above will not necessarily work for the next release though, as noted, we hope to officially provide cygwin and/or mingw.

like image 84
ewiseblatt Avatar answered Nov 15 '22 05:11

ewiseblatt