otclient icon indicating copy to clipboard operation
otclient copied to clipboard

Error compiling in Windows "LNK1104 não é possível abrir o arquivo 'zstdd.lib'"

Open Geenovez opened this issue 2 years ago • 3 comments

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?

Geenovez avatar Feb 02 '23 17:02 Geenovez

Same @Geenovez did you mange to solve it ?

przmak avatar Sep 12 '23 22:09 przmak

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 line zstdd.lib;, replace it with zstd.lib; (may require installation of zstd)
  • Rename zstd.lib file: install zstd and rename vcpkg file zstd.lib into zstdd.lib (with double d).

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 avatar Nov 22 '23 16:11 gesior

@gesior your solution works perfectly and it will be even better if it is explained in the wiki page. Thanks

mhnaufal avatar Apr 20 '24 07:04 mhnaufal