otclient
otclient copied to clipboard
Error compiling in Windows "LNK1104 não é possível abrir o arquivo 'zstdd.lib'"
I'm getting error trying to compile otclient, the error is: LNK1104 não é possível abrir o arquivo 'zstdd.lib'
Anyone knows how to solve it?
Same @Geenovez did you mange to solve it ?
IDK if it's vcpkg problem, some version of zlib library problem or OTC uses wrong file name [old zstdd.lib
file name], but I've found solution.
Easiest, but not real solution:
- Build 'Release', not 'Debug' version. Only 'Debug' version requires '.lib' file.
2 real solutions:
- Fix OTC project: edit
vc14/settings.props
. There is a linezstdd.lib;
, replace it withzstd.lib;
(may require installation ofzstd
) - Rename
zstd.lib
file: installzstd
and rename vcpkg filezstd.lib
intozstdd.lib
(with doubled
).
How to install zstd
for 64-bit?
In vcpkg directory run ./vcpkg install zstd:x64-windows
Where is file zstd.lib
I need to rename?
My vcpkg is in C:\ots\vcpkg_mehah
. I opened this folder, went into installed\x64-windows\debug\lib
and copied zstd.lib
into new file with name zstdd.lib
.
@gesior your solution works perfectly and it will be even better if it is explained in the wiki page. Thanks