Launch Visual Studio Code, then lets set up a pair of extensions, CMake Tools and C : Using vcpkg can also make C development more enjoyable for Visual Studio Code (and CLion users too) developers, but the process is slightly different. No need to configure the linker, simple add the appropriate #include to the top of your code and presto, you’re ready to go! What About Visual Studio Code? Due to the “integrate install” command we ran earlier your library is ready to go in Visual Studio, no further actions require. This is done with the command: c:\dev\vcpkg\vcpkg install raylibĪt this point vcpkg will do the magic of downloading and installing the raylib library for you. We are going to install the full version ‘raylib’. Note we have two different options here, raylib and raylib. Simply type: c:\dev\vcpkg\vcpkg search raylib We locate the name of the package using the built in search functionality. In this example I am going to use the excellent RayLib game library (you can learn more about RayLib 3.0 here). Let’s start by finding the name of the package we want to work with. First you need to find a package to use, of which there are 2000 configured in vcpkg at this point in time. That is it, we are now ready to start using vcpkg. These files are going to remain installed after we are done, so pick a location you are comfortable with but one that doesn’t require special permissions such as Program Files. Next we are going to need to pick a directory to install vcpkg to. Start off by creating a command prompt with administrative permissions or select Windows Key X, then select Windows PowerShell(Admin). Next you are going to want to make sure that MSVC build tools and a version of the Windows 10 SDK are both installed. Regardless to if you choose Visual Studio or Build Tools, there are some features you need to be sure to install, specifically C support: Additionally vcpkg can be used on Linux and MacOS as well, but in this tutorial we are going to focus on Windows development. It should be noted that vcpkg can work with Visual Studio Code. Visual Studio 2015 or later (including Build Tools), free/community versions are fine.Before you can start using vcpkg, there are a few things you need to have installed:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |