【问题标题】:when building pixman library, the prompt always says "can not find xxx.h(the std header"?在构建 pixman 库时,提示总是说“找不到 xxx.h(std header”?
【发布时间】:2016-03-03 01:51:34
【问题描述】:

我使用的是 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': 没有这样的文件或目录”

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

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

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

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

谁能帮帮我?

【问题讨论】:

    标签: c++ pixman


    【解决方案1】:

    另请参阅此问题:Does Visual Studio 2015 have 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"
    

    【讨论】:

      猜你喜欢
      • 2023-02-15
      • 2017-03-29
      • 1970-01-01
      • 2016-06-14
      • 1970-01-01
      • 2015-10-16
      • 1970-01-01
      • 2012-09-21
      • 2021-04-17
      相关资源
      最近更新 更多