• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

Compiling TFS with vcpkg - Unable to find a valid Visual Studio instance

overdriven

Active Member
Joined
Mar 10, 2020
Messages
71
Solutions
1
Reaction score
39
I want to compile TFS on Windows (at commit 17bf6). I have installed vcpkg and Visual Studio community edition 2022.

I'm following github.com/otland/forgottenserver/wiki/Compiling-on-Windows to install required libraries.

At the end I get an error:
Error: in triplet x64-windows: Unable to find a valid Visual Studio instance
Could not locate a complete Visual Studio instance
The following paths were examined for Visual Studio instances:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary/Build\vcvarsall.bat

BUT I have installed VS in C:\Program Files\Microsoft Visual Studio\2022 - I don't understand why it fails to find it? Am I missing some VS components? Which ones?

Edit. Looks like I'm missing VC, but what is VC?
My folder C:\Program Files\Microsoft Visual Studio\2022\Community doesn't have any VC folder as in examined path:
VC\Auxiliary/Build\vcvarsall.bat
Post automatically merged:

Fixed.

One has to install C++ CMake tools for Windows component.
1645448352721.png

@Evil Puncker Perhaps the wiki can be updated with this detail? I know it should be obvious but it's not for everyone...
I don't know how to contribute a change to wiki on github... or I don't have rights.
Post automatically merged:

Furthermore, one will also need components: Windows Universal CRT SDK and Windows 10 SDK
 
Last edited:

Evil Puncker

I know nothing
TFS Developer
Joined
May 30, 2009
Messages
8,509
Solutions
260
Reaction score
4,467
@Evil Puncker Perhaps the wiki can be updated with this detail? I know it should be obvious but it's not for everyone...
I don't know how to contribute a change to wiki on github... or I don't have rights.
visual studio should be installed with default settings and English lang pack, it seems like you had unselected all stuff that was selected by default or did they change the installer to not have stuff by default anymore?
 

nugo

Australia OT Mapper
Joined
Apr 1, 2009
Messages
382
Solutions
4
Reaction score
185
@Evil Puncker
I came back after a few years to compile master branch for experiments. Got the same problem as this guy following
I suggest updating the above documentation to make sure when installing community 2022 that you include the following components:
  • Windows Universal CRT SDK
  • Windows 10 SDK
  • C++ CMake tools for Windows
  • English language pack
 
Top