我正在为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
答案 0 :(得分:3)
您不会说明CMake命令是什么,但看起来您正在为Visual Studio构建进行配置。它似乎也有效,它只是告诉你它在系统上做了什么,但没有找到,这是任何配置过程的正常部分(autotools或CMake)。
Visual C ++不提供unistd.h
,您可能需要包含其他标题,但这取决于您的需要。至于off64_t
,这是一个POSIX类型,而且,它不是由编译器提供的。
您的代码实际上是否需要这些标头或类型,还是会进行编译?如果代码没有使用标题或类型,那么在配置时找不到它们并不重要。
如果失败了,您需要提供自己需要的实现,修改源代码以便于移植,或者切换到GCC和mingw或其他提供这些功能的工具链。