cmake编译错误_待解决

cmake编译错误,可以打开生成编译的build文件夹下的......\build\CMakeFiles\CMakeError.log查看错误。

如下是整个CMakeError.log文件:

Performing C++ SOURCE FILE Test HAVE_MM_MALLOC failed with the following output:
Change Dir: E:/PCL/3Dgraphics/3DG-PCC/trunk/pcc-mp3dg/build/CMakeFiles/CMakeTmp

Run Build Command(s):D:/VS2017/myVS2017/MSBuild/15.0/Bin/MSBuild.exe cmTC_3d743.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=15.0 /v:m && 用于 .NET Framework 的 Microsoft (R) 生成引擎版本 15.9.21+g9802d43bc3

版权所有(C) Microsoft Corporation。保留所有权利。



  用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.16.27034 版

  版权所有(C) Microsoft Corporation。保留所有权利。

  

  cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /D WIN32 /D _WINDOWS /D HAVE_MM_MALLOC /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_3d743.dir\Debug\\" /Fd"cmTC_3d743.dir\Debug\vc141.pdb" /Gd /TP /errorReport:queue "E:\PCL\3Dgraphics\3DG-PCC\trunk\pcc-mp3dg\build\CMakeFiles\CMakeTmp\src.cxx"

  src.cxx

  

E:\PCL\3Dgraphics\3DG-PCC\trunk\pcc-mp3dg\build\CMakeFiles\CMakeTmp\src.cxx(2): fatal error C1083: 无法打开包括文件: “mm_malloc.h”: No such file or directory [E:\PCL\3Dgraphics\3DG-PCC\trunk\pcc-mp3dg\build\CMakeFiles\CMakeTmp\cmTC_3d743.vcxproj]



...and run output:

Return value: 1
Source file was:

        #include <mm_malloc.h>
        int main()
        {
          void* mem = _mm_malloc (100, 16);
          return 0;
        }
Performing C++ SOURCE FILE Test HAVE_POSIX_MEMALIGN failed with the following output:
Change Dir: E:/PCL/3Dgraphics/3DG-PCC/trunk/pcc-mp3dg/build/CMakeFiles/CMakeTmp

Run Build Command(s):D:/VS2017/myVS2017/MSBuild/15.0/Bin/MSBuild.exe cmTC_890e9.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=15.0 /v:m && 用于 .NET Framework 的 Microsoft (R) 生成引擎版本 15.9.21+g9802d43bc3

版权所有(C) Microsoft Corporation。保留所有权利。



  用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.16.27034 版

  版权所有(C) Microsoft Corporation。保留所有权利。

  

  cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /D WIN32 /D _WINDOWS /D HAVE_POSIX_MEMALIGN /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_890e9.dir\Debug\\" /Fd"cmTC_890e9.dir\Debug\vc141.pdb" /Gd /TP /errorReport:queue "E:\PCL\3Dgraphics\3DG-PCC\trunk\pcc-mp3dg\build\CMakeFiles\CMakeTmp\src.cxx"

  src.cxx

  

E:\PCL\3Dgraphics\3DG-PCC\trunk\pcc-mp3dg\build\CMakeFiles\CMakeTmp\src.cxx(6): error C3861: “posix_memalign”: 找不到标识符 [E:\PCL\3Dgraphics\3DG-PCC\trunk\pcc-mp3dg\build\CMakeFiles\CMakeTmp\cmTC_890e9.vcxproj]



...and run output:

Return value: 1
Source file was:

        #include <stdlib.h>
        int main()
        {
          void* mem;
          return posix_memalign (&mem, 16, 100);
        }

我跟着他说的,run build command 试了一下,但会提示  MSBUILD : error MSB1009: Project file does not exist,这个错误我搜了半天也看不懂个123。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值