Cmake cannot find PCL

I’m trying to compile FreeCAD, but it fails.

CMake Error at cMake/FreeCAD_Helpers/SetupPCL.cmake:11 (find_package):
By not providing “FindPCL.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “PCL”, but
CMake did not find one.

Could not find a package configuration file provided by “PCL” with any of
the following names:

PCLConfig.cmake
pcl-config.cmake

Add the installation prefix of “PCL” to CMAKE_PREFIX_PATH or set “PCL_DIR”
to a directory containing one of the above files. If “PCL” provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
CMakeLists.txt:58 (SetupPCL)

Ubuntu uses something called libpcl-dev, but I see no equivalent in Manjaro.

They also suggest locating PCLConfig using ‘locate PCLConfig’ but there doesn’t seem to be any such file on my system.

~ Dave

There is a repo version - and AUR

And these are the dependencies if you want to compile yourself

https://wiki.freecad.org/Compile_on_Linux#Arch_Linux

… from their web site to here:
https://github.com/FreeCAD/FreeCAD
to the wiki, where the above list is

2 Likes

Thanks for the response.

Yes. I’m using this but it is extremely buggy and crashes repeatedly.

Yes.

I’m compiling from the git repositories.

I have done this many times over the last five or six years and it mostly works.

However, I have seen a thread on the FreeCAD forum which describes compiling on Manjaro and which might help.

https://forum.freecad.org/viewtopic.php?t=91202

Fingers crossed that I get some answers.

Looking around maybe you want libpcl ?
But everything associated with that seems ancient.

https://aur.archlinux.org/packages/libpcl

Thanks.

Installed from git, but am still having the same problem.

Neither PCLConfig nor pcl-config are found on my system.

There is also a Snap version available:

I have tried to build freecad-git from AUR but it failed the tests, however it didn’t fail around missing PCLConfig

They are also missing a couple of non-mandatory makedepends, will get in touch later

Locate search on your system, you should use pkgfile for searching stuff in the repo packages (given that it isn’t in the AUR)

After seeing your post I made pkgbuilds for this 2 days ago from scratch

At the moment at GitHub - FabioLolix/PKGBUILD-IMAGING: Pkgbuilds related to Insight ToolKit (ITK), VTK, Paraview, DICOM, etc

only to realize they are already on the AUR

My pkgbuilds don’t build with CUDA, gcc13, openni and correctly build in clean chroot, the AUR one have several faults IMO