Integrate C++ gRPC with Bazel on Windows/MSVC? - c++

I know that according to this, integrating gRPC for C++ using Bazel on Windows is currently not supported, CMake is the preferred way. But since Bazel is very adaptable and gRPC integration works like a charm on Linux I was wondering if there is some example/howto that's not officially supported, ideally for MSVC. I could not find any.

gRPC for C++ doesn't support this yet, although that is indeed the plan, so there is no current example/howto from the team.
You're welcome to try it out and send pull requests for anything you end up patching to make it work. Alternatively, you can create a new feature request at https://github.com/grpc/grpc/issues.

Related

where can I find grpc library for c++ windows and Linux both

I am trying to setup grpc server for a embedded device which runs the C++ environment. I have followed the link at https://github.com/grpc/grpc/blob/master/INSTALL.md, but I am unable to understand what needs to be done there in a order for grpc library to be available or installed in C++ libs.
Setting up grpc for C++, I assume to be having a generic approach for windows/Linux environment apart from the specifics of C++ run time location
The approach at above location says to build, but its failing for me at step,
With error as below,
Anyone if having more detailed link/reference to step by step process would be really helpful
For building gRPC under Windows nowadays, I would highly encourage people to use the provided CMakefile.
We haven't done any work towards supporting cygwin however, and we don't have any plans in supporting it at the moment. Most of the Windows-specific codebase would expect msys/mingw or VC, and I wouldn't be surprised if it would fail at runtime with cygwin even if you manage to compile, as our usage of the Linux API is probably too advanced for cygwin's emulation layer.
The Makefile should potentially behave properly under msys, if you insist on using it.

Building AlchemyAPI on Windows with Visual Studio

I am trying to integrate AlchemyAPI into my c++ project and I'm a little lost regarding where to start. I downloaded the API, obtained the key. The readme file has Unix installation instructions on running the autobuild.sh script then configure and make and make install. I have cygwin installed, I installed autoconf for windows. I'm just guessing there must be a more straightforward way to use AlchemyAPI c++ on windows.
There's two ways to go about this that are probably a lot easier than what you're trying to do:
Using the C# SDK that AlchemyAPI provides, build it, reference it, and call it from your solution.
Bypass the SDKs all together, hitting the API directly by building your own URLs and data strings for HTTP GETs or POSTs (x-www-form-urlencoded) and submitting them using a popular C++ HTTP implementation. (This is all the SDK is really doing anyway.)
An example URL that you could use to build your own interface might be this one (enter your API key to view it in your browser):
http://access.alchemyapi.com/calls/url/URLGetRankedNamedEntities?apikey=YOUR_API_KEY&url=http://www.cnn.com/2011/09/28/us/massachusetts-pentagon-plot-arrest/index.html?hpt=hp_t1&sentiment=1
If you want to parse the results in XML, you can use libxml, and AlchemyAPI's C++ SDK can provide you with an example. If you want to parse the results as JSON, then add 'outputMode=json' to the request and use your favorite JSON parser.
There's more information in the documentation on all of the features and how to implement them in your requests:
http://www.alchemyapi.com/api/

connecting to web service from freebsd or other OS

i will explain my problem and please try to help me
i want to access a web-service from Point-Of-Cell Handheld
its SDK use C language on eclipse
at first i wanted to learn how to access web-services from C or c++ LANGUAGE
and i succeeded in this using gsoap library and i can access a web-service using it.
i modified the stdsoap2.c file to can fit the handheld library as i modified tcp-connect and tcp-send and tcp-receive and so on
my problem here there is alot of errors in this file, it is run time error as memory fail or pthread fail and so on
my director told me that it is because this file is for windows and ask me to search for gsoap version work on another platform
he tried the Linux version but it didn't work too
he asked me to search for a copy that work on embedded system or on FreeBSD OS
is he right? and is there any copy of gsoap can satisfy my need?
Gsoap is available on FreeBSD. Just install the port from /usr/ports/devel/gsoap
If your code was written for windows, you will have to replace windows-specific functions with those available on FreeBSD.

Wii MotionPlus support

I am developing a PC application that interacts with the Wiimote. So far I have been using the wiiuse library, which has worked great.
However, wiiuse does not support the MotionPlus extension.
I have heard of extensions to implement this by Dolphin and libogc but have not managed to locate this code.
Do you know of code that implements support for MotionPlus with wiiuse, or another C based libary?
I found that fWIIne has a modded version with MotionPlus support, though only in the release zip file and not the repository.

Cross platform c++ with libcurl

I am a perl developer that has never went into the client side programming of things. I'd like to think that I'm a pretty good developer, except I know that my severe lack of knowledge of the way desktop programming really takes away from my credibility.
That said, I really want to get into doing some desktop applications.
I want to try to develop a simple application that will connect to my server and grab an rss feed, then display it in the console. My plan of attack is to use libcurl (and curlpp) to grab the feed (I'd also like to do more curl stuff in the future). But I want to be able to run this small program on linux, windows, and mac because I want to understand developing cross platform.
So here is the question (and I know it is extremely noobish): How do I write c++ code that will use libcurl and curlpp, and will work on the 3 major OSes? The main thing I don't understand is if I have to compile libcurl and curlpp, then how does it work when trying to take it over to the other platforms?
You need to write the code portably - basically make it a console application. You then transfer the source code (not the exe) to the other platforms and compile it there and link with the version of llibcurl on each specific platform.
Neil is right, but using a framework will make your life easier. Try QT it is very nice. It has a cross platform http API, and integrates curl.
I'd recommend Qt4 as well, I've wrote a small'ish tutorial on how to setup a windows gcc compiler on linux and compile Qt4/OpenSSL with it for windows, hope that helps.
http://www.limitlessfx.com/mingw-openssl-qt4-for-windows-on-linux.html
You can easily adapt that tutorial to compiling libcurl instead of just moving to Qt4.