vcpkg install pcl[tools] failed to build because of boost 1.67 upgrade. The error message is similar to the ones shown in https://github.com/PointCloudLibrary/pcl/issues/2284
Based on the comments, I manually add add_definitions(-DBOOST_UUID_RANDOM_GENERATOR_COMPAT) into the root CMakeLists for pcl in the source folder and it successfully compiles. However, this doesn't feel like the right way to fix it, I couldn't find a way to use add_definitions or target_compile_definitions to propagate the macro in the pcl portfile when building it.
@UnaNancyOwen @ras0219-msft What do you think is the best way to fix this?
I confirm this issue and that it was solved by adding the definition suggested by @jasjuang.
Thanks for posting it here.
I created a patch and added it to PCL port, pushing the associated commit on my fork.
Since the release cycles of PCL are quite slow (last one August 2017), I would suggest to add my patch to PCL port while waiting for a fix upstream and the next release.
Let's see what the maintainers opinion is.
Thanks for reporting. Sorry, I have not working about this problem yet, because I have so busy recently.
It seems that it is still under discussion on upstream. (I have not examined it in detail yet,) I think the breaking changes of Bore.Uuid is cause of this problem.
Anyway, I agree to add a patch to the PCL port for now as a temporary measure.
@claudiofantacci Could you send pull-request?
How to apply the above patch?. I am seeing the missing uuid in my build
@MukilanP It should be applied automatically. If not, try deleting the pcl folder in buildtree and install again.
@jasjuang Thanks for your reply. I followed your steps and it is not working. Then removed entirely and followed below steps
I couldn't find the uuid package.
@MukilanP It's not necessary to vcpkg install boost first. Just directly do vcpkg install pcl than the patch will be automatically applied.
If the problem persists I would recommend @MukilanP to open another issue as this one is closed 馃槃
Most helpful comment
Thanks for reporting. Sorry, I have not working about this problem yet, because I have so busy recently.
It seems that it is still under discussion on upstream. (I have not examined it in detail yet,) I think the breaking changes of Bore.Uuid is cause of this problem.
Anyway, I agree to add a patch to the PCL port for now as a temporary measure.
@claudiofantacci Could you send pull-request?