我使用的是Windows10系统,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的include目录中……提示符现在告诉您没有< time.h >文件。
我想我需要在某个地方设置包含目录,但是我不知道怎么做。
现在几乎要把我逼疯了。我花了一整天的时间试图解决它,但我的尝试都没有奏效。
有谁可以帮我?
发布于 2016-10-10 22:13:28
另请参阅此问题:Does Visual Studio 2015 have 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 Kits\10\Include\10.0.14393.0\ucrt" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include"https://stackoverflow.com/questions/35761671
复制相似问题