outposthd:building_from_source

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
outposthd:building_from_source [2019/11/18 04:31] – created leeor_netoutposthd:building_from_source [2019/11/18 04:42] leeor_net
Line 19: Line 19:
  
 ==== vcpkg ==== ==== vcpkg ====
 +See [[outposthd:vcpkg|Setting up vcpkg]] for complete install instructions.
 +
 In addition to NuGet, some of the dependencies for OutpostHD are only available via vcpkg, a very powerful command line package management system. It is not installed with Visual Studio so you'll need to get it set up manually. In addition to NuGet, some of the dependencies for OutpostHD are only available via vcpkg, a very powerful command line package management system. It is not installed with Visual Studio so you'll need to get it set up manually.
  
-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''. +===== Cloning the Repository ===== 
- +After you have Visual StudioGit and vcpkg installedwe're now ready to clone the OutpostHD repository and build.
-{{ :outposthd:cmd_admin.png?nolink |}} +
- +
-When askedclick ''Yes'' and a command prompt will open up. +
- +
-{{ :outposthd:cmd_admin.png?nolink |}} +
- +
-You can install vcpkg anywhere you want. To make it easyI'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.+To do this, click on the Clone Repository button.
  
-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:vs2019_clone_repository.png?nolink |}}
  
-{{ :outposthd:cmd_vcpkg_install_libs.png?nolink |}}+Next, copy the GitHub URL for the OutpostHD repository, ''https://github.com/ldicker83/OPHD.git'', into the //Repository location// and set a location somewhere on your machine that you can easily access. Here I used ''C:\Repos\OPHD'' but you can put it anywhereFinally, click Clone. After a few moments you'll see the OutpostHD project solution:
  
-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:vs2019_clone_repository3.png?direct&600 |}}
  • outposthd/building_from_source.txt
  • Last modified: 2021/02/19 04:25
  • by leeor_net