Quantcast

Using PCL failed on MAC OS X 10.12.4

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Using PCL failed on MAC OS X 10.12.4

BlairLu
This post has NOT been accepted by the mailing list yet.
Hi, After building PCL, I tried to use PCL with the sample pcd_write provided by the PCL official site. However, it never succeed. The detailed building errors are as followed. I did not install OpenNI and sensor since I think I donnot need it. And I see some people also got the same problem, without solution provided by other users. By the way, my OS X version is 10.12.4. PCL version is 1.8. Xcode version 8.3.1. My project name is pcd_write. Thank you very much for your help. CmakeList.txt: cmake_minimum_required(VERSION 2.6 FATAL_ERROR) project(pcd_write) find_package(PCL 1.3 REQUIRED COMPONENTS common io) include_directories(${PCL_INCLUDE_DIRS}) link_directories(${PCL_LIBRARY_DIRS}) add_definitions(${PCL_DEFINITIONS}) add_executable(pcd_write_test pcd_write.cpp) target_link_libraries(pcd_write_test ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES}) Terminal building process: lujinghandeMacBook-Pro:build lujinghan$ cmake .. -- The C compiler identification is AppleClang 8.1.0.8020041 -- The CXX compiler identification is AppleClang 8.1.0.8020041 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") -- Checking for module 'eigen3' -- Found eigen3, version 3.3.3 -- Found eigen: /usr/local/Cellar/eigen/3.3.3/include/eigen3 -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - found -- Found Threads: TRUE -- Boost version: 1.63.0 -- Found the following Boost libraries: -- system -- filesystem -- thread -- date_time -- iostreams -- chrono -- atomic -- regex -- Checking for module 'openni-dev' -- No package 'openni-dev' found -- Could NOT find openni (missing: OPENNI_LIBRARY OPENNI_INCLUDE_DIRS) ** WARNING ** io features related to openni will be disabled -- Found libusb-1.0: /usr/local/include -- looking for PCL_COMMON -- Found PCL_COMMON: /usr/local/lib/libpcl_common.dylib -- looking for PCL_OCTREE -- Found PCL_OCTREE: /usr/local/lib/libpcl_octree.dylib -- looking for PCL_IO -- Found PCL_IO: /usr/local/lib/libpcl_io.dylib -- Found PCL: /usr/local/lib/libboost_system-mt.dylib;/usr/local/lib/libboost_filesystem-mt.dylib;/usr/local/lib/libboost_thread-mt.dylib;/usr/local/lib/libboost_date_time-mt.dylib;/usr/local/lib/libboost_iostreams-mt.dylib;/usr/local/lib/libboost_chrono-mt.dylib;/usr/local/lib/libboost_atomic-mt.dylib;/usr/local/lib/libboost_regex-mt.dylib;optimized;/usr/local/lib/libpcl_common.dylib;debug;/usr/local/lib/libpcl_common.dylib;optimized;/usr/local/lib/libpcl_octree.dylib;debug;/usr/local/lib/libpcl_octree.dylib;vtkCommon;vtkRendering;vtkHybrid;optimized;/usr/local/lib/libpcl_io.dylib;debug;/usr/local/lib/libpcl_io.dylib (Required is at least version "1.3") -- Configuring done -- Generating done -- Build files have been written to: /Users/lujinghan/desktop/pcd_write/pcd_write/build lujinghandeMacBook-Pro:build lujinghan$ make Scanning dependencies of target pcd_write_test [ 50%] Building CXX object CMakeFiles/pcd_write_test.dir/pcd_write.cpp.o /bin/sh: -c: line 0: syntax error near unexpected token `(' /bin/sh: -c: line 0: `/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DDISABLE_OPENNI -DEIGEN_USE_NEW_STDVECTOR -DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET -DvtkDomainsChemistry_AUTOINIT="1(vtkDomainsChemistryOpenGL2)" -DvtkRenderingContext2D_AUTOINIT="1(vtkRenderingContextOpenGL2)" -DvtkRenderingCore_AUTOINIT="3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2)" -DvtkRenderingFreeType_AUTOINIT="1(vtkRenderingFreeTypeFontConfig)" -DvtkRenderingOpenGL2_AUTOINIT="1(vtkRenderingGL2PSOpenGL2)" -DvtkRenderingVolume_AUTOINIT="1(vtkRenderingVolumeOpenGL2)" -I/usr/local/Cellar/vtk/7.1.1/include/vtk-7.1 -I/usr/local/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/Cellar/hdf5/1.10.0-patch1/include -I/usr/local/opt/szip/include -I/usr/include/libxml2 -I/usr/local/include/pcl-1.6 -I/usr/local/Cellar/eigen/3.3.3/include/eigen3 vtkDomainsChemistry_AUTOINIT=1(vtkDomainsChemistryOpenGL2) vtkRenderingContext2D_AUTOINIT=1(vtkRenderingContextOpenGL2) vtkRenderingCore_AUTOINIT=3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2) vtkRenderingFreeType_AUTOINIT=1(vtkRenderingFreeTypeFontConfig) vtkRenderingOpenGL2_AUTOINIT=1(vtkRenderingGL2PSOpenGL2) vtkRenderingVolume_AUTOINIT=1(vtkRenderingVolumeOpenGL2) -msse4.1 -mfpmath=sse -o CMakeFiles/pcd_write_test.dir/pcd_write.cpp.o -c /Users/lujinghan/desktop/pcd_write/pcd_write/pcd_write.cpp' make[2]: *** [CMakeFiles/pcd_write_test.dir/pcd_write.cpp.o] Error 2 make[1]: *** [CMakeFiles/pcd_write_test.dir/all] Error 2 make: *** [all] Error 2 lujinghandeMacBook-Pro:build lujinghan$
Loading...