• 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!

Compiling ERROR WHEN TRYING TO INSTALL VCPKG

Shoorkill

Active Member
Joined
Dec 17, 2018
Messages
153
Reaction score
25
GOOD, I HAD TO FORMAT MY COMPUTER, I ALWAYS COMPILED MY TFS WITHOUT ERRORS, I INSTALLED THE SAME OPERATING SYSTEM (WINDOWS 10) HOWEVER EVERY VCPKG I TRY TO INSTALL I AM RECEIVING THE SAME ERROR, CAN ANYONE HELP ME WITH THIS? THANKSImagem do WhatsApp de 2024-10-30 à(s) 21.08.31_c609ff5f.webp
 
when i have problems with this shitty thing written in paint i always remove Visual Studio, VCPKG then reinstalling everything, thats sad but in 90% of cringe random errors that shouldnt never happen it just solve. welcome in microsoft.
 
GOOD, I HAD TO FORMAT MY COMPUTER, I ALWAYS COMPILED MY TFS WITHOUT ERRORS, I INSTALLED THE SAME OPERATING SYSTEM (WINDOWS 10) HOWEVER EVERY VCPKG I TRY TO INSTALL I AM RECEIVING THE SAME ERROR, CAN ANYONE HELP ME WITH THIS? THANK
What engine do you try to compile?
vcpkg pretty fast lose possibility to build it's C++ libraries (few months, up to 2 years, then download links die). If you are trying to compile some old engine, you must keep old vcpkg directory copy.
 
What engine do you try to compile?
vcpkg pretty fast lose possibility to build it's C++ libraries (few months, up to 2 years, then download links die). If you are trying to compile some old engine, you must keep old vcpkg directory copy.
I'm just trying to compile my tfs 1.5, do you have a working vcpkg link to send me?
 
I'm just trying to compile my tfs 1.5
There is no 'working vcpkg link'. You need to use exact version of vcpkg for your engine.

Right now there are 23596 vcpkg versions and you must know which one is required by your engine to compile.
On new engines there are vcpkg.json files with required version for given TFS commit:
ex. 215a2535590f1f63788ac9bd2ed58ad15e6afdff

If you don't know vcpkg commit for your engine, all you can do is to download some vcpkg version by date with date similar to your engine release (dates are in "Tags" on vcpkg github site) and try to compile using it. If it fails, get another version and try again.
1730646578497.webp


If you don't have fast PC and few hours/days to find vcpkg version that works with your engine, you can just move to Linux. TFS compiles on Linux with system libraries - you don't need vcpkg. Ubuntu 22.04 should be compatible with TFS 1.5.
 

I reinstalled everything now I only have this error at compilation time, it seems like progress haha, any tips on how to solve this?
Error C1083 Cannot open file including: 'cryptopp/rsa.h': No such file or directory Cold Souls TFS 1.5 C:\Users\danie\Desktop\Cold Planet\cold souls\Source Silver\src\rsa.h 23
Post automatically merged:

There is no 'working vcpkg link'. You need to use exact version of vcpkg for your engine.

Right now there are 23596 vcpkg versions and you must know which one is required by your engine to compile.
On new engines there are vcpkg.json files with required version for given TFS commit:
ex. 215a2535590f1f63788ac9bd2ed58ad15e6afdff

If you don't know vcpkg commit for your engine, all you can do is to download some vcpkg version by date with date similar to your engine release (dates are in "Tags" on vcpkg github site) and try to compile using it. If it fails, get another version and try again.
View attachment 88051


If you don't have fast PC and few hours/days to find vcpkg version that works with your engine, you can just move to Linux. TFS compiles on Linux with system libraries - you don't need vcpkg. Ubuntu 22.04 should be compatible with TFS 1.5.
My PC is actually very weak and slow, things around here aren't very good ($$$) I'm barking in the yard to save the dog hahaha

but in fact I now only have this error:
Error C1083 Cannot open file include: 'cryptopp/rsa.h': No such file or directory Cold Souls TFS 1.5 C:\Users\danie\Desktop\Cold Planet\cold souls\Source Silver\src\rsa.h 23 Is there any way to fix this? thanks
 
Cannot open file include: 'cryptopp/rsa.h'
If you followed newest TFS vcpkg compliation instruction there is no Crypto++ library, as it was replaced in TFS 1.6 with OpenSSL library few months ago. For TFS 1.5 you probably need older version of instruction ex. (it's 1 version before "Changed build settings from crypto++ to openssl" - History for Compiling on Windows (vcpkg) · otland/forgottenserver Wiki (https://github.com/otland/forgottenserver/wiki/Compiling-on-Windows-(vcpkg)/_history) ):
There in vcpkg libraries instruction for x64 is:
Code:
.\vcpkg install --triplet x64-windows boost-iostreams boost-asio boost-system boost-variant boost-lockfree boost-locale luajit libmariadb pugixml cryptopp fmt
which contains cryptopp.

If only Crypto++ is missing, you can run in vcpkg folder:
Code:
.\vcpkg install --triplet x64-windows cryptopp
and then try to compile TFS again (Visual Studio restart may be required).
 
Back
Top