Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Geenovez opened this issue Feb 2, 2023 · 3 comments

Comments

@Geenovez
Copy link

Geenovez commented Feb 2, 2023

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?

@przmak
Copy link

przmak commented Sep 12, 2023

Same
@Geenovez did you mange to solve it ?

@gesior
Copy link
Contributor

gesior commented Nov 22, 2023

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.

@mhnaufal
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants