CesiumGS / cesium-native

Apache License 2.0
391 stars 200 forks source link

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

Open ComradeMashkov opened 1 month ago

ComradeMashkov commented 1 month ago

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?

kring commented 1 month ago

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.