2

我正在为 renderdoc 使用 CMake GUI,我收到了这些消息。我应该如何修复它们?

The C compiler identification is MSVC 19.0.24215.1
Check for working C compiler: D:/VS15/VC/bin/x86_amd64/cl.exe
Check for working C compiler: D:/VS15/VC/bin/x86_amd64/cl.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of off64_t
Check size of off64_t - failed
Looking for fseeko
Looking for fseeko - not found
Looking for unistd.h
Looking for unistd.h - not found
Configuring done
4

1 回答 1

5

您没有说 CMake 命令是什么,但看起来您正在为 Visual Studio 构建进行配置。它似乎也有效,它只是告诉你它在系统上做了什么,没有找到什么,这是任何配置过程(autotools 或 CMake)的正常部分。

Visual C++ 不提供unistd.h,您可能需要包含其他标头,但这取决于您的需要。至于off64_t,那是 POSIX 类型,同样,它不是由编译器提供的。

您的代码实际上是否需要这些标头或类型,或者它会编译吗?如果代码不使用标头或类型,那么在配置时找不到它们也没关系。

如果失败了,您要么需要提供自己的所需实现,修改源代码以使其更便携,要么切换到 GCC 和 mingw 或其他提供这些东西的工具链。

于 2016-12-15T01:42:45.817 回答