构建 Pixman 库时,提示总是说 "can not find xxx.h(the std header" ?



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

   cd %ROOTDIR%pixmanpixman
   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文件,我可以成功编译它。>

我试图将所有源代码从像素人的根目录移动到 VS 的包含目录......提示现在告诉没有 文件。

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

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

谁能帮我?

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

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

BASE_CFLAGS = -nologo -I. -I$(top_srcdir) -I$(top_srcdir)/pixman -I"C:Program Files (x86)Windows Kits10Include10.0.14393.0ucrt" -I"C:Program Files (x86)Microsoft Visual Studio 14.0VCinclude"

相关内容

最新更新