PCL( I currently use CDT with cmake to build a Point Cloud Library (PCL) project.)
2017-07-20 20:05
645 查看
PCL + cmake : Compiles Fine, but errors while in the path [SOLVED] [message #755517] | Tue, 08 November 2011 16:59 | ||
| |||
Hello, I currently use CDT with cmake to build a Point Cloud Library (PCL) project. Here is my CMakeLists : ********************************************************************** ********************************************************************** cmake_minimum_required(VERSION 2. PROJECT( project_name ) set(EXECUTABLE_NAME executable) add_executable( #executable ${EXECUTABLE_NAME} #libraries IOCloud.h Ply.hpp #source code main.cpp Ply.cpp ) set(CMAKE_BUILD_TYPE Release) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}) include_directories( ${CMAKE_CURRENT_BINARY_DIR}) #packages #PointCloud Library find_package( PCL 1.1 REQUIRED) if(PCL_FOUND) include_directories( ${PCL_INCLUDE_DIRS} ) link_directories( ${PCL_LIBRARY_DIRS} ) add_definitions( ${PCL_DEFINITIONS} ) target_link_libraries( ${EXECUTABLE_NAME} ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES} ${PCL_LIBRARIES} ) endif() #OpenMp find_package( OpenMP REQUIRED) #include(FindOpenMP) if(OPENMP_FOUND) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}") endif() ********************************************************************** ********************************************************************** I'm running Eclipse 3.7.1 on Ubuntu 11.10 The project imported in Eclipse, compiles and runs fine. The PCL libraries are in the include Path. The completion works for #include <pcl/... 4000 But all the pcl objects and function can't be resolved (red underline and "could not be resolved" message). It looks like it doesn't know the namespace. Can anyone help me ? Thanks. [Updated on: Mon, 29 July 2013 08:52] Report message to a moderator | |||
Re: PCL + cmake : Compiles Fine, but errors while in the path [message #1075330 is a reply to message #755517] | Mon, 29 July 2013 08:51 | ||
| |||
It appears that PCL include conflicts with Eigen include. In project-> properties -> include paths, removing the include of eigen solved the problem. PS: this was for a project generated by CMake, for a imported makefile project, adding PCL to the dependency and Eigen produce the same problem. |
相关文章推荐
- PCL(Point Cloud Library)简介
- How to create a DLL library in C and then use it with C#
- PCL(Point Cloud Library)的第三方库简介(boost,eigen,flann,vtk,qhull)
- PCL点云库:对点云进行变换(Using a matrix to transform a point cloud)
- you try to use the STM32 Library examples with IAR 6.30.6 you get a loot of error
- 利用PCL(Point Cloud Library)进行点云拼接
- 用第三方预编译包从源码在windows下搭建PCL(Point Cloud Library)开发环境
- Using CMake to Build Qt Projects
- How to Build an Android Project with Eclipse
- import c++ project to eclipse cdt with exiting makefile
- Learnning Dlib(一) cmake build dlib static library with iOS
- How to build cURL static library with SSL support on Windows
- How to use Tornado GNU tools with Eclipse 3.2 / CDT 3.1
- nodejs错误:ld: library not found for -lgcc_s.10.5 clang: error: linker command failed with exit code 1 (use -v to see invocation)
- pacparser - A library to make your web software pac (proxy auto-config) files intelligent. Comes with much useful pactester tool now. - Google Project Hosting
- Using CMake to Build Qt Projects
- How to configure a C/C++ project with Eclipse and CMake
- SharePoint Project Deployment Fails With Error "Failed to extract the cab file in the solution"
- use update cache to synchronize the part in the cache with the library
- Use ANT and Maven to create executable jar with dependent library