PointCloudLibrary / PointCloudLibrary/pcl

[windows/compile_error] "FLANN issues flann/util/param.h" not found even tho its in the path

Open
#4,620 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind: compile error needs: author reply platform: windows
Dominant language
C++
Stars
11.1k
Forks
4.7k
Avg merge
4d 10h
Merged PRs (30d)
6

Description

hi all ive tried installing pcl on windows. However the vcpkg is not suitaable due to issues with the vtk external package. when using the all one installer. I found an issues with flann. It cant find the flann dir. Hence why util pararms for kdtree are not usable.

Please refer to below log.

System Windows 10.
Compiler VS 19 for x64
PCL 1.11.1

Cmake
1>This warning is for project developers. Use -Wno-dev to suppress it.
1>
1>-- Configuring done
1>-- Generating done
1>-- Build files have been written to: C:/Users/esgaa/Desktop/UNI/uts/Capstone/Code/3D-Scanner/Segmentation/Poisson Reconstruction/out
2>------ Build started: Project: obj_converterer, Configuration: Debug x64 ------
2>loadmesh.cpp
2>C:\Program Files\PCL 1.11.1\include\pcl-1.11\pcl/kdtree/kdtree_flann.h(44,10): fatal error C1083: Cannot open include file: 'flann/util/params.h': No such file or directory
2>objimporter.cpp
2>C:\Program Files\PCL 1.11.1\3rdParty\Boost\include\boost-1_74\boost/function_output_iterator.hpp(14): message : This header is deprecated. Use <boost/iterator/function_output_iterator.hpp> instead.
2>C:\Program Files\PCL 1.11.1\include\pcl-1.11\pcl/io/low_level_io.h(73,16): warning C4996: '_open': This function or variable may be unsafe. Consider using _sopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
2>C:\Program Files\PCL 1.11.1\include\pcl-1.11\pcl/io/low_level_io.h(78,16): warning C4996: '_open': This function or variable may be unsafe. Consider using _sopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
2>C:\Program Files\PCL 1.11.1\include\pcl-1.11\pcl/kdtree/kdtree_flann.h(44,10): fatal error C1083: Cannot open include file: 'flann/util/params.h': No such file or directory
2>tester.cpp
2>C:\Program Files\PCL 1.11.1\include\pcl-1.11\pcl/kdtree/kdtree_flann.h(44,10): fatal error C1083: Cannot open include file: 'flann/util/params.h': No such file or directory
2>tester2.cpp
2>C:\Program Files\PCL 1.11.1\include\pcl-1.11\pcl/kdtree/kdtree_flann.h(44,10): fatal error C1083: Cannot open include file: 'flann/util/params.h': No such file or directory
2>tester3.cpp
2>C:\Program Files\PCL 1.11.1\include\pcl-1.11\pcl/kdtree/kdtree_flann.h(44,10): fatal error C1083: Cannot open include file: 'flann/util/params.h': No such file or directory
2>Generating Code...
2>Done building project "obj_converterer.vcxproj" -- FAILED.
3>------ Build started: Project: poisson, Configuration: Debug x64 ------
3>LINK : fatal error LNK1104: cannot open file 'Debug\obj_converterer.lib'
3>Done building project "poisson.vcxproj" -- FAILED.
4>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug x64 ------
4>Project not selected to build for this solution configuration
========== Build: 1 succeeded, 2 failed, 0 up-to-date, 1 skipped ==========

Also everything i set the a diff path to find the flann dir. it keeps being reverted to not found.

image

Could you please let me know how to address this.

Regards,

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with pcl/kdtree/kdtree_flann.h and the generated CMake/Visual Studio project, then inspect how the Windows installer exposes the FLANN include directory. Reproduce the PCL 1.11.1 build with Visual Studio 2019 on Windows 10; done means the project finds flann/util/params.h and the affected targets build successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system, computer-vision
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.