OpenVC和TIFF,带有不同类型的REFER TYPEDEF重新定义INT64_T
我有一个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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论