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。

猜你喜欢

转载自blog.csdn.net/yamgyutou/article/details/104877147