OpenVC和TIFF,带有不同类型的REFER TYPEDEF重新定义INT64_T

发布于 2025-01-21 14:54:46 字数 652 浏览 4 评论 0原文

我有一个QT C ++项目,该项目取决于OpenCV和TIFF(使用VCPKG安装)。

它最初是在Windows(Microsoft编译器)上开发的,现在我尝试在MacOS(Clang)上构建它。我正在弄清楚如何提供所有依赖项。

我在同一VCPKG提交ID ACB6B10E7FDF5E8519C18398D0B069E1D58CA025 MacOS上的MacOS(X64-Windows)上。通过这样做,我认为我正在使用相同的LIB版本。

但是在Macos上,我知道

vcpkg/installed/x64-osx/include/opencv2/core/hal/interface.h:61:20: error: typedef redefinition with different types ('int64_t' (aka 'long long') vs 'long')
   typedef int64_t int64;
                   ^
vcpkg/installed/x64-osx/include/tiff.h:75:23: note: previous definition is here
typedef TIFF_INT64_T  int64;
                      ^

该怎么办?

I have a Qt C++ project which depends on opencv and tiff (installed with vcpkg) among other things.

It's originally developed on Windows (microsoft compiler) and now I'm trying to build it on macOS (clang). I'm in the mid of figuring out how to provide all dependencies.

I'm on the same vcpkg commit id acb6b10e7fdf5e8519c18398d0b069e1d58ca025 on macOS, as it is on Windows (x64-windows). By doing so I think I'm using same lib versions.

However on macOS I see

vcpkg/installed/x64-osx/include/opencv2/core/hal/interface.h:61:20: error: typedef redefinition with different types ('int64_t' (aka 'long long') vs 'long')
   typedef int64_t int64;
                   ^
vcpkg/installed/x64-osx/include/tiff.h:75:23: note: previous definition is here
typedef TIFF_INT64_T  int64;
                      ^

What should I do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文