0

我使用的是 Windows 10 系统,VS2015。我现在想构建 pixman-0.34.0。这里的教程:http: //cairographics.org/end_to_end_build_for_win32/告诉我使用这些提示行:

   cd %ROOTDIR%\pixman\pixman
   sed s/-MD/-MT/ Makefile.win32 > Makefile.fixed
   move /Y Makefile.fixed Makefile.win32
   make -f Makefile.win32 "CFG=release"

但是,powershell(或 msys64)总是告诉我

“pixman-0.34.0\pixman\pixman.h(105): 致命错误 C1083: 无法打开包含文件: 'stdint.h': 没有这样的文件或目录”

这很奇怪,因为我的计算机中确实存在 < stdint.h > !如果我创建一个包含 <stdint.h> 的新 .cpp 文件,我可以成功编译它。

我试图将所有源代码从 pixman 的根目录移动到 VS 的包含目录...提示现在告诉没有 <time.h> 文件。

我想我需要在某处设置包含目录,但我不知道该怎么做。

它现在几乎让我发疯。我花了一整天的时间试图解决它,但我的尝试都没有奏效。

谁能帮我?

4

1 回答 1

0

另请参阅此问题:Visual Studio 2015 是否有 float.h?

Float.h 为 VS 2015 移动。我能够通过更新根源目录中的 Makefile.win32.common 来构建 pixman,第 28 行:

BASE_CFLAGS = -nologo -I. -I$(top_srcdir) -I$(top_srcdir)/pixman -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include"
于 2016-10-10T14:13:28.053 回答