How do you install vckpg for Visual Studio Code on Windows? - c++

I am trying to install libcurl for my C++ project on VSCode and I came across a method to install via vckpg from this link: How do you properly install libcurl for use in visual studio 2017?
Hence, I looked for the documentation by Microsoft but only found that you can install vckpg for VSCode for Linux and MacOS but I couldn't find anything on how to install vckpg for VSCode on Windows.
Any idea how do you install vckpg for VSCode on Windows? Or is there an alternative method of installing libcurl on VSCode?

Currently VS Code does not support vcpkg on Windows.
As mentioned here the following issue is directly connected with VS Code support of vcpkg on Windows: https://github.com/microsoft/vcpkg/issues/10217. The issue is currently open and no workaround is provided.
The support may be provided in the future. Here are the comments from the thread:
ghost: "If there are enough requests, a feature request could be initiated to see what would be needed to integrate with CODE RUNNER and/or a plugin for VSCODE."
strega-nil: "Code Runner is not currently a supported way of building with vcpkg; we may add support eventually, but more likely it should be added by the community (or, even better, vcpkg support should be added to Code Runner). However, we do have features hopefully coming down the pipeline which will make life a lot easier for community members adding that support."

Unfortunately i was struggling with the same issue and installing C++ Redistributable which #mutantkeyboard recommended didn't solve the problem.
I installed VS Community Edition with English language pack and now it's OK.

Related

How to install ZeroMQ for C++ using VS2015 community

I am trying to learn networking in windows in C++ (specifically for making a very simple mmo server).
I was reading about cross-platform-ness and socket complexity and came accross both protobuf and zeroMQ quite a lot.
After reading about zeroMQ I decided it makes sense for an mmo server.
So i went over to the zeroMQ website and downloaded the msi installer. I ran it, and now i'm stuck.
I don't quite understand what the MSI did... Did it plop a zeroMQ.dll in system32? Di I still need to get the C++ binding? Basically, how do you install zeromq for C++?
P.S. extra points if someone shows me how to do it with Nuget. I guess that's why I don't know how to install libraries manually, I always use Nuget...
Thanks.
Nuget does have a package for ZeroMQ, but that seems to be only for C# currently.
The MSI you installed contains Python binding for ZeroMQ, and is installed for the selected python version in the installer.
For C++, they have pre-build binaries on their download page.
However, these libraries are build with an older version of Visual Studio, which are not compatible with Visual Studio 2015. If you want to use ZeroMQ, i'm afraid you are going to have to build the library your self.
When you have successfully build ZeroMQ, you can follow their guide to get a feeling of how to use it. Or you can add the C++ bindings which has a pretty and easy-to-use interface.

Cross-compiling C++ OpenCV from Visual Studio 2013 on Windows to Ubuntu

I've got a C++ VS2013 solution with 3 projects, using OpenCV 2.4.10, easylogging++ and Dlib libraries. The problem is that our client is now migrating to Linux (Ubuntu Server). I've looked into Cygwin and MinGW and a few questions here on stackoverflow, but I'm still lost as to where I should start. I need this done as soon as possible, so the simpler solution would be best. I really appreciate any help you can provide.
I recommend using cmake build system on ubuntu. Using Opencv and easylogging on ubuntu out of the box could be a matter of minutes. dlib's website also mentions a simple cmake building steps that works on ubuntu.
After you get your libraries up and running, build your code and see if there are any system-dependent functions then google how to standardize them across systems. If your code is already standardized it should run right then and there.
You can then ask about any specific issues you meet on the way.

When was support for AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM added to WASAPI?

Does anyone know when support for the AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM stream flag was added to WASAPI? MSDN mentions this flag briefly, but doesn't go into much detail regarding its use and which versions of Windows support this.
I'm using the Platform SDK that comes with Visual Studio 2015 and AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM isn't even defined.
Download and install the separate Windows 10 SDK, even though most of the components are installed with VS2015:
https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
I had the same problem as you, and installing the latest Windows 10 SDK solved it for me. (Version 10.0.14393.795 at the time of writing.)

Which and how do i use a compiler with eclipse juno (newest one)?

i am learning c++ using eclipse. I have heard that i need a compiler with it. Which one should i use and how do i add it? Also if there is a better ide than eclipse for c++ please let me know. Thanks
Most Linux boxes come with GCC built right in. If not, fire up the package manager and install.
Mac I can't speak on.
For Windows your easiest choices are MinGW and Visual Studio.
My preference goes to MinGW because of tight integration with Eclipse.
If you go with using Visual Studio, learn using the IDE that comes with it. Once you know C++ and gain some experience, then try using using Eclipse with it as Eclipse doesn't work well out of the box with Visual Studio. Until you know what the error messages that will come your way mean, Visual Studio under Eclipse will just cause you grief.
As for better IDE, that's a matter of preference, but real men use ed and start fires by spitting on wood really, really fast.
EDIT
If anyone has experience with the current state of Clang support in Eclipse, please chime in.
You didn't say what operating system you're running on. For Windows, you can download Visual Studio Express. For Linux, GCC works well, so if g++ at a command prompt isn't found, you should install the build-essential package, like this:
sudo apt-get install build-essential

Compiling cairo (cairomm) on Windows

I'm trying to compile cairo into a lib file using Mingw. I've downloaded the cairo, cairomm, and pixman source packages, but I can't figure out where to go from here. The INSTALL help file talks about a bunch of scripts that I can't seem to run or even find ('./configure', 'make', 'make install'). Googling the issue is bringing up nothing helpful.
I feel like this is a noobish question to ask. I've only recently started getting into the C++ side of programming (coming from Java/C#), and this is the first time I've had to compile an external library before using it. The shocking lack of explanations on the process makes me wonder if there was some chapter of a tutorial somewhere I was supposed to read that makes this whole process a complete no-brainer.
I think this project isn't supporting building with Mingw.
There are build instructions here for building with Visual Studio (which can be downloaded for free as the Visual Studio Express Edition from MS Website: http://www.visualstudio.com/en-US/products/visual-studio-express-vs
Build instructions here:
http://cairographics.org/end_to_end_build_for_win32/
It's probably possible to make this work for MingW, but you will have to make it work yourself, which may be a bit of a long step for someone who is new to compilers and build scripts in general.