Comments (6)
Good day. I think may be the error is in the linking library part, try replacing:
##############################################################################
# TARGET LIBRARIES
##############################################################################
target_link_libraries(${PROJECT_NAME} ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES} ${PCL_VISUALIZATION_LIBRARY})
with:
##############################################################################
# TARGET LIBRARIES
##############################################################################
target_link_libraries(${PROJECT_NAME} ${PCL_LIBRARIES})
from dbscan-pcl-optimized.
By the way, the pcl build path should not end with "/", just: set(PCL_DIR /home/gz/pcl/release)
from dbscan-pcl-optimized.
hi!
thank u reply! after i modified cmakelist.txt:
in line 20:
and in line 89,added boost_system boost_filesystem ${PCL_LIBRARIES}:
i cmake .. && make correctly.and run this ./dbscan .......everything is ok.
but a few days later, it doesn't work.so i delete all dir/file in build.and recompile.
cmake ..
is ok, but when run make
, i got some error:
Scanning dependencies of target dbscan CMakeFiles/dbscan.dir/main.cpp.o: In function `readCloudFromFile(int, char**, std::vector<htr::Point3D, std::allocator<htr::Point3D> >&, boost::shared_ptr<pcl::PointCloud<pcl::PointXYZRGB> >&)': main.cpp:(.text+0x1322): undefined reference to `pcl::io::loadPolygonFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pcl::PolygonMesh&)' collect2: error: ld returned 1 exit status CMakeFiles/dbscan.dir/build.make:366: recipe for target 'bin/dbscan' failed make[2]: *** [bin/dbscan] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/dbscan.dir/all' failed make[1]: *** [CMakeFiles/dbscan.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
could u plz help me fix it? thank u.
from dbscan-pcl-optimized.
Again, it is a problem of linking pcl correctly. I'm going to leave the general version of the CMakeList.txt project on GitHub. Go back to download again DBScan from the GitHub and try to compile it.
from dbscan-pcl-optimized.
When you compile the project with cmake, verify that the pcl include part (which is printed on the terminal) comes from your PCL_dir and not from the pcl of ROS
from dbscan-pcl-optimized.
If you use: ${PCL_LIBRARIES}
it is not necessary the link to Boost library (pcl already does)
from dbscan-pcl-optimized.
Related Issues (5)
- VTK package HOT 2
- run docker fails HOT 3
- Possible bug in step 1 HOT 1
- Core dumped HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbscan-pcl-optimized.