edubart / otclient

An alternative tibia client for otserv written in C++11 and Lua, made with a modular system that uses lua scripts for ingame interface and functionality, making otclient flexible and easy to customize
Other
652 stars 399 forks source link

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

Open Geenovez opened 1 year ago

Geenovez commented 1 year ago

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 commented 1 year ago

Same @Geenovez did you mange to solve it ?

gesior commented 1 year ago

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:

2 real solutions:

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 commented 7 months ago

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