-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake Error occurs in new PCLConfig.cmake #2059
Comments
The only difference between Ensenso/OpenNI and the other grabbers that I can find are these lines: Lines 371 to 379 in 7b3b571
But this does not offer any hints how to solve the problem. I will need to investigate more. |
I checked the As for this particular issue, it results from the sloppy way the dependencies are handled. Currently, we try to re-discover and link all optional dependencies, even if they were not found during library build time. And the linking in this config script is less robust than in the main CMakeLists, so we get errors when some of the libraries are not found. Here is a workaround fix for Ensenso. Instead of improving the dependency handling I just make sure that the finder script does not set variables if the library is not found. Please give this patch a try. If it works, I'll produce similar fixes for OpenNI/OpenNI2 and submit a PR. |
Oh wow, I just re-read my first comment in that thread. There I point to one example of what a potential issue can be: #1337. And guess what, this exact issue just hit us :D |
@taketwo PCLConfig.cmake will work correctly when applying that patch. CMake Error about Ensenso doesn't occur. Please submit Pull Request. Thanks,
I think that we should solve this problem in the future. |
* Make sure XXX_LIBRARIES and XXX_INCLUDE_DIRS variables are not defined if the packages are not found * Make XXX_LIBRARIES and XXX_INCLUDE_DIRS advanced options * Some reformatting Fixes PointCloudLibrary#2059
@taketwo After applying the patch, I can pass the cmake configuration step 👍 |
* Make sure XXX_LIBRARIES and XXX_INCLUDE_DIRS variables are not defined if the packages are not found * Make XXX_LIBRARIES and XXX_INCLUDE_DIRS advanced options * Some reformatting Fixes PointCloudLibrary#2059
I am still seeing this issue with QHull (using current pcl master). If I don't have QHull installed, I can't have a cmake project that depends on PCL. PCL builds fine without QHull features, but the config script that PCL installs requires QHull to be installed. |
Please file a new issue with all relevant information, error output, etc. |
Done (#2343). Thanks :) |
The user own project can't creat using new PCLConfig.cmake, because an error has occurre when congfigure using CMake.
These options (Ensenso SDK, OpenNI) has been disabled when building PCL.
(
WITH_ENSENSO
andWITH_OPENNI
is OFF.)Strangely, These options (david SDK, DepthSense SDK, RealSense SDK) has also been disabled when building PCL, but no error occurs for these.
(
WITH_DAVIDSDK
,WITH_DSSDK
andWITH_RSSDK
is OFF.)This problem can be fixed temporarily with the following changes in PCLConfig.cmake#L570.
(Remove
${OPENNI_LIBRARIES}
and${ENSENSO_LIBRARIES}
)But, It is not desirable. :(
Do you know anything about this problem?
Your Environment
The text was updated successfully, but these errors were encountered: