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

OTClient Meha OTclient Error Compile VS2022

Lord Sorte

New Member
Joined
Apr 18, 2016
Messages
5
Reaction score
2
Hello everything is fine? I have the following problem when compiling MehaOTC only in the x64 release version, in the debug version I compile successfully.

Visual Studio 2022
Meha Official Distro
Windows 10 64x
Mode Compiling: Release x64

Help me!

1>(compilando o arquivo fonte 'otclient/x64/Release/unity_KI4A04U6SMSAKEY5.cpp')
1>C:\OTCMeha\vcpkg_installed\x64-windows-static\x64-windows-static\include\parallel_hashmap\phmap_base.h(5038,53): error C2065: '_lock': identificador não declarado
1>(compilando o arquivo fonte 'otclient/x64/Release/unity_KI4A04U6SMSAKEY5.cpp')
1>C:\OTCMeha\vcpkg_installed\x64-windows-static\x64-windows-static\include\parallel_hashmap\phmap_base.h(5038,34): error C3861: 'InitializeSRWLock': identificador não encontrado
1>(compilando o arquivo fonte 'otclient/x64/Release/unity_KI4A04U6SMSAKEY5.cpp')
1>C:\OTCMeha\vcpkg_installed\x64-windows-static\x64-windows-static\include\parallel_hashmap\phmap_base.h(5039,59): error C2065: '_lock': identificador não declarado
1>(compilando o arquivo fonte 'otclient/x64/Release/unity_KI4A04U6SMSAKEY5.cpp')
1>C:\OTCMeha\vcpkg_installed\x64-windows-static\x64-windows-static\include\parallel_hashmap\phmap_base.h(5039,34): error C3861: 'AcquireSRWLockExclusive': identificador não encontrado
1>(compilando o arquivo fonte 'otclient/x64/Release/unity_KI4A04U6SMSAKEY5.cpp')
1>C:\OTCMeha\vcpkg_installed\x64-windows-static\x64-windows-static\include\parallel_hashmap\phmap_base.h(5040,59): error C2065: '_lock': identificador não declarado
1>(compilando o arquivo fonte 'otclient/x64/Release/unity_KI4A04U6SMSAKEY5.cpp')
1>C:\OTCMeha\vcpkg_installed\x64-windows-static\x64-windows-static\include\parallel_hashmap\phmap_base.h(5040,34): error C3861: 'ReleaseSRWLockExclusive': identificador não encontrado
1>(compilando o arquivo fonte 'otclient/x64/Release/unity_KI4A04U6SMSAKEY5.cpp')
1>C:\OTCMeha\vcpkg_installed\x64-windows-static\x64-windows-static\include\parallel_hashmap\phmap_base.h(5041,71): error C2065: '_lock': identificador não declarado
1>(compilando o arquivo fonte 'otclient/x64/Release/unity_KI4A04U6SMSAKEY5.cpp')
1>C:\OTCMeha\vcpkg_installed\x64-windows-static\x64-windows-static\include\parallel_hashmap\phmap_base.h(5041,43): error C3861: 'TryAcquireSRWLockExclusive': identificador não encontrado
1>(compilando o arquivo fonte 'otclient/x64/Release/unity_KI4A04U6SMSAKEY5.cpp')
1>C:\OTCMeha\vcpkg_installed\x64-windows-static\x64-windows-static\include\parallel_hashmap\phmap_base.h(5042,56): error C2065: '_lock': identificador não declarado
1>(compilando o arquivo fonte 'otclient/x64/Release/unity_KI4A04U6SMSAKEY5.cpp')
1>C:\OTCMeha\vcpkg_installed\x64-windows-static\x64-windows-static\include\parallel_hashmap\phmap_base.h(5042,34): error C3861: 'AcquireSRWLockShared': identificador não encontrado
1>(compilando o arquivo fonte 'otclient/x64/Release/unity_KI4A04U6SMSAKEY5.cpp')
1>C:\OTCMeha\vcpkg_installed\x64-windows-static\x64-windows-static\include\parallel_hashmap\phmap_base.h(5043,56): error C2065: '_lock': identificador não declarado
1>(compilando o arquivo fonte 'otclient/x64/Release/unity_KI4A04U6SMSAKEY5.cpp')
1>C:\OTCMeha\vcpkg_installed\x64-windows-static\x64-windows-static\include\parallel_hashmap\phmap_base.h(5043,34): error C3861: 'ReleaseSRWLockShared': identificador não encontrado
1>(compilando o arquivo fonte 'otclient/x64/Release/unity_KI4A04U6SMSAKEY5.cpp')
1>C:\OTCMeha\vcpkg_installed\x64-windows-static\x64-windows-static\include\parallel_hashmap\phmap_base.h(5044,68): error C2065: '_lock': identificador não declarado
1>(compilando o arquivo fonte 'otclient/x64/Release/unity_KI4A04U6SMSAKEY5.cpp')
1>C:\OTCMeha\vcpkg_installed\x64-windows-static\x64-windows-static\include\parallel_hashmap\phmap_base.h(5044,43): error C3861: 'TryAcquireSRWLockShared': identificador não encontrado
1>(compilando o arquivo fonte 'otclient/x64/Release/unity_KI4A04U6SMSAKEY5.cpp')

1721700226371.png
 
in order of priority

Alternative 1: update vcpkg

Use Powershell in directory C:

cd C:\vcpkg

• To update vcpkg installation, run the commands below in Powershell:

Code:
git pull

.\vcpkg upgrade

.\vcpkg upgrade --no-dry-run

.\bootstrap-vcpkg.bat


Alternative 2:
1721703514088.png

1721703071543.png

Alternative 3:


undo "builtin-baseline" in vcpkg.json

to 01f602195983451bc83e72f4214af2cbc495aa94
or 13c3c0fcc203d179f4443fe48d252e3ff220cbeb

depending on how old your version vcpkg is

 
Last edited:
in order of priority

Alternative 1: update vcpkg

Use Powershell in directory C:

cd C:\vcpkg

• To update vcpkg installation, run the commands below in Powershell:

Code:
git pull

.\vcpkg upgrade

.\vcpkg upgrade --no-dry-run

.\bootstrap-vcpkg.bat


Alternative 2:
View attachment 86181

View attachment 86180

Alternative 3:


undo "builtin-baseline" in vcpkg.json

to 01f602195983451bc83e72f4214af2cbc495aa94
or 13c3c0fcc203d179f4443fe48d252e3ff220cbeb

depending on how old your version vcpkg is

Thank Your, Alternative 2 Compile Sucess.

In addition to the reply from @Error 502 which is correct, I recommend to have vcpkg for TFS and OTC in separate folders like is mentioned here

Regards!
Thanks for the info!

problem solved, you can close the topic.
 
Back
Top