pcl icon indicating copy to clipboard operation
pcl copied to clipboard

[compile error] some hpp files can't open when i compilating pcl by myself

Open Bzz2745 opened this issue 2 years ago • 10 comments

some *.hpp files like boost/mpl/assert.hpp can't open while i compilating pcl form source. image image image

  • OS: Windows11
  • Compiler: Visual Studio 2019
  • PCL Version 1.12
  • PCL Type: Compiled from source
  • GPU, CUDA enabled
  • boost 1.78(all are form all in one installer)
  • debug x64

How can i solve this?

Bzz2745 avatar Jul 22 '22 12:07 Bzz2745

image here is the cmake setting of boost

Bzz2745 avatar Jul 22 '22 12:07 Bzz2745

@Bzz2745 I am not very familiar with the all-in-one installer, but I believe that you have to install Boost in some other way if you want to compile PCL yourself, because the all-in-one installer doesn't contain all necessary header files.

mvieth avatar Jul 22 '22 12:07 mvieth

@Bzz2745 I am not very familiar with the all-in-one installer, but I believe that you have to install Boost in some other way if you want to compile PCL yourself, because the all-in-one installer doesn't contain all necessary header files.

image it just over here.......TAT

Bzz2745 avatar Jul 22 '22 13:07 Bzz2745

@Bzz2745 I am not very familiar with the all-in-one installer, but I believe that you have to install Boost in some other way if you want to compile PCL yourself, because the all-in-one installer doesn't contain all necessary header files.

and another .hpp files also could found.......

Bzz2745 avatar Jul 22 '22 13:07 Bzz2745

@Bzz2745 Can you try adding /boost-1_78 at the end of CMake's Boost_INCLUDE_DIR

mvieth avatar Jul 22 '22 13:07 mvieth

@Bzz2745 Can you try adding /boost-1_78 at the end of CMake's Boost_INCLUDE_DIR

i have alreay try it,but it doesn't work....

Bzz2745 avatar Jul 22 '22 13:07 Bzz2745

@larshg Can you take a look

mvieth avatar Jul 22 '22 14:07 mvieth

As a @mvieth mentioned @Bzz2745 you should compile boost from the source: Check this gist for compiling Boost on windows using MinGW https://gist.github.com/sim642/29caef3cc8afaa273ce6

td43 avatar Jul 30 '22 00:07 td43

I have successfully compiled pcl (except kinfu), the reason for the error that I cannot find the .hpp file before is that nvcc does not correctly recognize my relative path, I don't know if it is my setting is wrong or it is just like this (so I Use notepad++ to change all the paths of the included boost header files in the generated files of the boost library compiled by myself to absolute paths, and do the same for the projects generated by CMAKE.). Hopefully this problem can be solved in the future, because it's really tortured. Finally, thanks to everyone who answered my question.

Bzz2745 avatar Jul 30 '22 17:07 Bzz2745

Hi @Bzz2745, you should close this issue if is already resolved.

td43 avatar Aug 03 '22 11:08 td43