Open themightyoarfish opened 4 years ago
That's weird. I did the following:
$ docker run --rm -it ubuntu:20.04 bash
# apt update
# apt install libeigen3-dev libboost-all-dev libflann-dev git build-essential cmake mesa-common-dev -y
# git clone https://github.com/PointCloudLibrary/pcl
# mkdir pcl/build && cd pcl/build
# cmake -DWITH_VTK=ON -DBUILD_visualization ..
# make install
But saw no errors. It's true that CMake didn't fail, but that is different that the error you mentioned. PRs welcome to fix the lack of failure in CMake config step
Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs.
Context
I want to compile PCL with VTK enabled (not optional). I therefore run
cmake -DWITH_VTK=ON -DDBUILD_visualization=ON ..
. VTK however is not installed.Expected behavior
The build process should error out,
Current Behavior
CMake shows the warning that VTK was not found, but continues.
Visualization module, which needs VTK is not disabled (because I enabled it explicitly) and thus compilation errors ensue:
To Reproduce
I'm using this code to install PCL:
Your Environment (please complete the following information):
Possible Solution
Not sure how the
-DBUILD_<module>
options are generated, butvisualization
sCMakeLists.txt
should have a way to either disable itself even when explicitly requested by user when VTK is not found.