-
Notifications
You must be signed in to change notification settings - Fork 49
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: find package "vtk_viewer" #98
Comments
That was the correct fix. Do you mind creating a PR? |
Another problem, not really relevant to the one mentioned above but also regarding the CMake behavior, is that the very first build after the cleaning of the catkin environment crashes with the following error:
All the following executions of the "catkin build' are successful. It looks like some missing information is added after the very first build attempt. |
@mpowelson Does this look familiar? |
No need for that. I've just found that there was a PR a couple of hours ago (#97)
I see that for quite a long time, but it annoys me only the very first time, that's why I didn't care too much. |
Not particularly. What version of cmake are you using? Are you on xenial/kinetic? |
I use Docker for testing both kinetic and melodic. It happens on both platforms. Cmake versions: |
I would upgrade the package to leverage cmake_common_scripts and see if the issue goes away. You can use vtk_viewer as a guide. |
I have the same issue (without using Docker) on Ubuntu 18.04/ROS Melodic where the build fails on the To reproduce:
Any subsequent builds will then be successful until you clean the workspace again. |
Try commenting out the lines below in noether_filtering cmake file and see if the issue goes away on first build.
|
That indeed solves the error on the first build, I'll make a PR for this then. |
That is good news, but it will not be as simple to just remove it. This was added as a way to check if PCL was built with NURBS so an alternative method needs to setup. A quick fix would be to add a compiler flag ENABLE_NURBS which is defaulted to OFF since that is the default of PCL.
then switch NURBS_FOUND for ENABLE_NURBS everywhere in the cmake |
@IKapitaniuk and @dave992 it turns out there is a bug in cmake which is fixed in noetic. If you pip install cmake this will get you the latest version. If that is not desirable you can pass the cmake compiler flag -DNURBS_FOUND=ON/OFF depending on if your version of PCL was built with NURBS. |
As this issue indeed seems specific for 18.04/melodic, passing the -DNURBS_FOUND flag sounds like an acceptable solution to me. I'll use the cmake compiler flag for now then. Thanks for the assistance! P.S. I don't know how many people using Noether are still on melodic, but do you want me to add this instruction to the readme? |
After the last merge, aka "Update vtk_viewer CMake #93" the CMake error has appeared:
Frankly speaking, I have no idea how exactly catkin build works under the hood, but I found that the problem can be solved by adding the following lines into package.xml:
but I am not sure that this is a proper solution.
The text was updated successfully, but these errors were encountered: