I would like to use the pyflann module for nearest neighbor search show like here: http://pythonhosted.org/laspy/tut_part_1.html . I have a python 2.7 for ArcGis. Unfortunately the installing guide is not clear for me and I have problem compiling the package (the Laspy is installed with pip without problem). http://www.cs.ubc.ca/research/flann/ The guide here says the installation is the following:
The output was: 1 Microsoft (R) Build Engine version 14.0.23107.0 Copyright (C) Microsoft Corporation. All rights reserved.
Build started 9/21/2015 6:04:47 PM. Project "C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets). PrepareForBuild: Creating directory "Debug\". C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj] Creating directory "Debug\CompilerIdC.tlog\". InitializeBuildStatus: Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. ClCompile: CL.exe /c /nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp
recise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\" /Fd"Debug\vc140.pdb" /Gd /TC /analyze- /errorReport:queue CMakeCCompilerId.c TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj]
Done Building Project "C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) -> (PrepareForBuild target) -> C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj]
"C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) -> (ClCompile target) -> TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj]
1 Warning(s) 1 Error(s) Time Elapsed 00:00:00.45
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: C:\MinGW\bin Build flags: Id flags:
The output was: 1 Microsoft (R) Build Engine version 14.0.23107.0 Copyright (C) Microsoft Corporation. All rights reserved.
Build started 9/21/2015 6:04:47 PM. Project "C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets). PrepareForBuild: Creating directory "Debug\". C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj] Creating directory "Debug\CompilerIdCXX.tlog\". InitializeBuildStatus: Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. ClCompile: CL.exe /c /nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp
recise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\" /Fd"Debug\vc140.pdb" /Gd /TP /analyze- /errorReport:queue CMakeCXXCompilerId.cpp TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj]
Done Building Project "C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) -> (PrepareForBuild target) -> C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj]
"C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) -> (ClCompile target) -> TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj]
1 Warning(s) 1 Error(s) Time Elapsed 00:00:00.33
Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
أكثر...
"C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" cd flann-x.y.z-src mkdir build cd build cmake .. nmake
I could find the vcvarsall. bat here: C:\Users\Gary\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0 When I tried to run the cmake .. I got an error starting with the C compiler identification is unknown. Here is the errorlog: Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: C:\MinGW\bin Build flags: Id flags:
The output was: 1 Microsoft (R) Build Engine version 14.0.23107.0 Copyright (C) Microsoft Corporation. All rights reserved.
Build started 9/21/2015 6:04:47 PM. Project "C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets). PrepareForBuild: Creating directory "Debug\". C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj] Creating directory "Debug\CompilerIdC.tlog\". InitializeBuildStatus: Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. ClCompile: CL.exe /c /nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp
Done Building Project "C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) -> (PrepareForBuild target) -> C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj]
"C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) -> (ClCompile target) -> TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj]
1 Warning(s) 1 Error(s) Time Elapsed 00:00:00.45
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: C:\MinGW\bin Build flags: Id flags:
The output was: 1 Microsoft (R) Build Engine version 14.0.23107.0 Copyright (C) Microsoft Corporation. All rights reserved.
Build started 9/21/2015 6:04:47 PM. Project "C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets). PrepareForBuild: Creating directory "Debug\". C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj] Creating directory "Debug\CompilerIdCXX.tlog\". InitializeBuildStatus: Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. ClCompile: CL.exe /c /nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp
Done Building Project "C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) -> (PrepareForBuild target) -> C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj]
"C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) -> (ClCompile target) -> TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj]
1 Warning(s) 1 Error(s) Time Elapsed 00:00:00.33
Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
أكثر...