-
-
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
Fixed compile error related to example projects #1315
Conversation
Can you please explain the first fix (in "example_difference_of_normals.cpp")? Everything else looks good. |
This is strange, I'll need to test this. But anyway, we should not manipulate |
I guess then the other way is to add #include <pcl/features/impl/normal_3d_omp.hpp> below line 19 and add #include <pcl/segmentation/impl/extract_clusters.hpp> below line 22 since without this "PCL_NO_PRECOMPILE", this two hpp files will not be included and in the example project, the types typedef pcl::PointNormal PointNT;
typedef pcl::PointNormal PointOutT; will leave some functions of pcl::NormalEstimationOMP<PointT, PointNT> ne; and pcl::EuclideanClusterExtraction<PointOutT> ec; undefined. |
How about other example programs though? Shouldn't the same problem manifest in them as well? |
Other examples are built just fine. I guess they don't use any non-default point types. BTW, just want to note that I built with the PCL_NO_PRECOMPILE off. So maybe this example project should add some compile time switch... |
Ok, I also get the error with I think the right way to solve this is to include the corresponding headers from |
Sure, I'll update and submit another pull request then. |
You don't need to make another PR. Just rewrite your last commit locally and push with |
Can you actually join both
Mark the second commit as "fixup", save and exit. Once rebasing is done, |
This will be cleaned up code #include <string>
#include <pcl/point_types.h>
#include <pcl/io/pcd_io.h>
#include <pcl/kdtree/kdtree_flann.h>
#include <pcl/common/point_operators.h>
#include <pcl/common/io.h>
#include <pcl/search/organized.h>
#include <pcl/search/octree.h>
#include <pcl/search/kdtree.h>
#include <pcl/features/normal_3d_omp.h>
#include <pcl/filters/conditional_removal.h>
#include <pcl/segmentation/sac_segmentation.h>
#include <pcl/segmentation/extract_clusters.h>
#include <pcl/io/vtk_io.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/features/don.h>
#ifdef PCL_ONLY_CORE_POINT_TYPES
#include <pcl/features/impl/normal_3d_omp.hpp>
#include <pcl/segmentation/impl/extract_clusters.hpp>
#endif Sorry I'm not that familiar with git rebase, I tried "git rebase -i HEAD~2" but nothing seems to happen. Should I do this after this new commit or before? |
Got it, since with the interactive rebase, I have to setup my git to work with my notepad++ like this... |
Apparently working with terminal Git is a bit more complicated on Windows :D |
Now there should be only one commit :) |
Perfect! Thank you. |
Fixed compile error related to example projects
Related issues:
#1313
#1314