Differences

This shows you the differences between two versions of the page.

Link to this comparison view

outposthd:vcpkg [2019/11/18 04:33] (current)
leeor_net created
Line 1: Line 1:
 +====== Setting up vcpkg and dependencies ======
  
 +These instructions assume that you have git properly installed.
 +
 +To begin, open a command prompt with administrator privileges. Click on the start button and type in ''​cmd''​. Right click on ''​Command Prompt''​ and click ''​Run as administrator''​.
 +
 +{{ :​outposthd:​cmd_admin.png?​nolink |}}
 +
 +When asked, click ''​Yes''​ and a command prompt will open up.
 +
 +{{ :​outposthd:​cmd_admin.png?​nolink |}}
 +
 +You can install vcpkg anywhere you want. To make it easy, I'm going to install it in //​C:​\vcpkg//​. To do that, you'll need to create the directory.
 +
 +Enter the following commands pressing ''​enter''​ after every line:
 +
 +<​code>​
 +cd..
 +cd..
 +cls
 +</​code>​
 +
 +You will now be at the root directory of the C:\ drive (or whatever is your primary disk, usually C:\ but sometimes other letters). Anyway, now we need clone the vcpkg git repository. Type ''​git clone https://​github.com/​microsoft/​vcpkg.git''​ and press ''​enter''​. Assuming Git is installed properly, the vcpkg repository will be cloned into C:\vcpkg. Now type ''​cd vcpkg''​ and press ''​enter''​ to change to the vcpkg directory.
 +
 +{{ :​outposthd:​cmd_git_clone2.png?​nolink |}}
 +
 +Next you'll type ''​bootstrap-vcpkg''​ and press ''​enter''​. It will take a few minutes for vcpkg to builds itself. After it finishes your prompt should look like this:
 +
 +{{ :​outposthd:​cmd_vcpkg_build.png?​nolink |}}
 +
 +Next we need to integrate vcpkg with Visual Studio. To do this, type ''​vcpkg integrate install''​ and press ''​enter''​. This will take a minute or two. When the process completes, we need to install the PhysFS and GLEW packages.
 +
 +We're almost done, we're in the home stretch! Type ''​vcpkg install glew:​x86-windows glew:​x64-windows physfs:​x86-windows physfs:​x64-windows''​ and press ''​enter''​. This will proceed to download and install the 32-bit and 64-bit versions of the GLEW and PhysFS libraries. This process will take awhile, so just hang out and wait for the process to complete.
 +
 +{{ :​outposthd:​cmd_vcpkg_install_libs.png?​nolink |}}
 +
 +And that's it! vcpkg and the dependencies that OutpostHD will require are installed! You can see on my machine it took about 5 minutes to build but on my laptop it took 20 minutes. You can just let the process work in the background and you're done.
  • outposthd/vcpkg.txt
  • Last modified: 2019/11/18 04:33
  • by leeor_net