cesium-native icon indicating copy to clipboard operation
cesium-native copied to clipboard

Error LNK2005: ZSTD_getErrorCode already defined in ktxd.lib(zstd.obj)

Open ComradeMashkov opened this issue 1 year ago • 1 comments

Commit: bbe581bd

When trying to build cesium-native with Visual Studio 17 2022 generator at the last stage I get the following erro:

zstd.lib(zstd.dll) : error LNK2005: ZSTD_getErrorCode already defined in ktxd.lib(zstd.obj)

How can I fix this error and what is the reason for this error to appear?

ComradeMashkov avatar May 22 '24 06:05 ComradeMashkov

It's hard to say. That commit built successfully with VS2022 on our CI system: https://github.com/CesiumGS/cesium-native/actions/runs/9031817639/job/24818805811

Is this while building cesium-native itself (perhaps linking the tests?), or while linking it into your own project?

It'll probably help to see the whole build log.

kring avatar May 22 '24 07:05 kring

@ComradeMashkov it's been a while since this issue was opened, so I'm going to close it for housekeeping purposes. If this is still an issue for you, please reopen with the information that Kevin requested above. Thank you!

j9liu avatar Oct 28 '24 17:10 j9liu