{"action":"created","issue":{"url":"https://api.github.com/repos/PointCloudLibrary/pcl/issues/1881","repository_url":"https://api.github.com/repos/PointCloudLibrary/pcl","labels_url":"https://api.github.com/repos/PointCloudLibrary/pcl/issues/1881/labels{/name}","comments_url":"https://api.github.com/repos/PointCloudLibrary/pcl/issues/1881/comments","events_url":"https://api.github.com/repos/PointCloudLibrary/pcl/issues/1881/events","html_url":"https://github.com/PointCloudLibrary/pcl/issues/1881","id":233003011,"number":1881,"title":"Cannot compile pcl 1.8 on Ubuntu 14.04","user":{"login":"mgarbade","id":3956593,"avatar_url":"https://avatars0.githubusercontent.com/u/3956593?v=3","gravatar_id":"","url":"https://api.github.com/users/mgarbade","html_url":"https://github.com/mgarbade","followers_url":"https://api.github.com/users/mgarbade/followers","following_url":"https://api.github.com/users/mgarbade/following{/other_user}","gists_url":"https://api.github.com/users/mgarbade/gists{/gist_id}","starred_url":"https://api.github.com/users/mgarbade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgarbade/subscriptions","organizations_url":"https://api.github.com/users/mgarbade/orgs","repos_url":"https://api.github.com/users/mgarbade/repos","events_url":"https://api.github.com/users/mgarbade/events{/privacy}","received_events_url":"https://api.github.com/users/mgarbade/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-01T20:37:45Z","updated_at":"2017-06-02T09:29:28Z","closed_at":null,"body":":warning: This is a issue tracker, please use our mailing list for questions: www.pcl-users.org. :warning: \r\n\r\nupon doing cmake I get a warning:\r\n ```\r\nCMake Warning at cmake/pcl_targets.cmake:864 (message):\r\n   OpenNI grabber support: not building because OpenNI not found\r\n Call Stack (most recent call first):\r\n   CMakeLists.txt:297 (PCL_ADD_GRABBER_DEPENDENCY)\r\n\r\n\r\n\r\n CMake Warning at cmake/pcl_targets.cmake:864 (message):\r\n   OpenNI2 grabber support: not building because OpenNI2 not found\r\n Call Stack (most recent call first):\r\n   CMakeLists.txt:298 (PCL_ADD_GRABBER_DEPENDENCY)\r\n\r\n\r\n\r\n CMake Warning at cmake/pcl_targets.cmake:864 (message):\r\n   Fotonic camera support: not building because FZAPI not found\r\n Call Stack (most recent call first):\r\n   CMakeLists.txt:299 (PCL_ADD_GRABBER_DEPENDENCY)\r\n\r\n\r\n\r\n CMake Warning at cmake/pcl_targets.cmake:864 (message):\r\n   IDS-Imaging Ensenso camera support: not building because Ensenso not found\r\n Call Stack (most recent call first):\r\n   CMakeLists.txt:300 (PCL_ADD_GRABBER_DEPENDENCY)\r\n\r\n\r\n\r\n CMake Warning at cmake/pcl_targets.cmake:864 (message):\r\n   David Vision Systems SDK support: not building because davidSDK not found\r\n Call Stack (most recent call first):\r\n   CMakeLists.txt:301 (PCL_ADD_GRABBER_DEPENDENCY)\r\n\r\n\r\n\r\n CMake Warning at cmake/pcl_targets.cmake:864 (message):\r\n   RealSense SDK support: not building because RSSDK not found\r\n Call Stack (most recent call first):\r\n   CMakeLists.txt:303 (PCL_ADD_GRABBER_DEPENDENCY)\r\n```\r\nand if I ignore them even more warnings (still in cmake):\r\n\r\n ```\r\nCMake Warning at cmake/pcl_targets.cmake:194 (add_library):\r\n   Cannot generate a safe runtime search path for target pcl_io because files\r\n   in some directories may conflict with libraries in implicit directories:\r\n\r\n     runtime library [libusb-1.0.so.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:\r\n       /opt/softkinetic/DepthSenseSDK/lib\r\n\r\n   Some of these libraries may not be found correctly.\r\n Call Stack (most recent call first):\r\n   io/CMakeLists.txt:322 (PCL_ADD_LIBRARY)\r\n\r\n\r\n\r\n CMake Warning at cmake/pcl_targets.cmake:263 (add_executable):\r\n   Cannot generate a safe runtime search path for target\r\n   pcl_convert_pcd_ascii_binary because files in some directories may conflict\r\n   with libraries in implicit directories:\r\n\r\n     runtime library [libusb-1.0.so.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:\r\n       /opt/softkinetic/DepthSenseSDK/lib\r\n\r\n   Some of these libraries may not be found correctly.\r\n Call Stack (most recent call first):\r\n   io/tools/CMakeLists.txt:15 (PCL_ADD_EXECUTABLE)\r\n\r\n\r\n\r\n CMake Warning at cmake/pcl_targets.cmake:263 (add_executable):\r\n   Cannot generate a safe runtime search path for target pcl_converter because\r\n   files in some directories may conflict with libraries in implicit\r\n   directories:\r\n\r\n     runtime library [libusb-1.0.so.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:\r\n       /opt/softkinetic/DepthSenseSDK/lib\r\n\r\n   Some of these libraries may not be found correctly.\r\n Call Stack (most recent call first):\r\n   io/tools/CMakeLists.txt:17 (PCL_ADD_EXECUTABLE)\r\n\r\n\r\n\r\n CMake Warning at cmake/pcl_targets.cmake:263 (add_executable):\r\n   Cannot generate a safe runtime search path for target pcl_hdl_grabber\r\n   because files in some directories may conflict with libraries in implicit\r\n   directories:\r\n\r\n     runtime library [libusb-1.0.so.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:\r\n       /opt/softkinetic/DepthSenseSDK/lib\r\n\r\n   Some of these libraries may not be found correctly.\r\n Call Stack (most recent call first):\r\n\r\n```\r\nThen after calling make, it fails with:\r\n\r\n```\r\n[ 28%] Linking CXX executable ../bin/pcl_compute_hausdorff\r\n[ 28%] Linking CXX executable ../bin/pcl_vtk2ply\r\n[ 28%] Linking CXX executable ../bin/pcl_pcd2vtk\r\n../lib/libpcl_kdtree.so.1.8.0: undefined reference to `LZ4_resetStreamHC'\r\n../lib/libpcl_kdtree.so.1.8.0: undefined reference to `LZ4_setStreamDecode'\r\n../lib/libpcl_kdtree.so.1.8.0: undefined reference to `LZ4_decompress_safe'\r\n../lib/libpcl_kdtree.so.1.8.0: undefined reference to `LZ4_decompress_safe_continue'\r\n../lib/libpcl_kdtree.so.1.8.0: undefined reference to `LZ4_compress_HC_continue'\r\ncollect2: error: ld returned 1 exit status\r\nmake[2]: *** [bin/pcl_compute_hausdorff] Error 1\r\nmake[1]: *** [tools/CMakeFiles/pcl_compute_hausdorff.dir/all] Error 2\r\nmake[1]: *** Waiting for unfinished jobs....\r\n[ 28%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/convex_hull.cpp.o\r\n[ 28%] Built target pcl_vtk2ply\r\n[ 28%] Linking CXX executable ../bin/pcl_tiff2pcd\r\n[ 29%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/3rdparty/poisson4/factor.cpp.o\r\n[ 29%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/3rdparty/poisson4/geometry.cpp.o\r\n[ 29%] Building CXX object surface/CMakeFiles/pcl_surface.dir/src/3rdparty/poisson4/marching_cubes_poisson.cpp.o\r\n[ 29%] Built target pcl_pcd2vtk\r\n[ 29%] Built target pcl_tiff2pcd\r\n[ 29%] Linking CXX executable ../bin/pcl_pclzf2pcd\r\n[ 29%] Linking CXX executable ../bin/pcl_concatenate_points_pcd\r\n[ 29%] Built target pcl_pclzf2pcd\r\n[ 29%] Built target pcl_concatenate_points_pcd\r\n[ 29%] Linking CXX shared library ../lib/libpcl_surface.so\r\n[ 29%] Built target pcl_surface\r\nScanning dependencies of target pcl_gpu_features\r\n[ 30%] Building CXX object gpu/features/CMakeFiles/pcl_gpu_features.dir/src/features.cpp.o\r\n[ 30%] Linking CXX shared library ../../lib/libpcl_gpu_features.so\r\n[ 30%] Built target pcl_gpu_features\r\nmake: *** [all] Error 2\r\n\r\n```\r\n\r\n\r\n## My Environment\r\n* Operating System and version: Ubuntu 14.04\r\n* Titan X Pascal\r\n* Cuda_8.0.61\r\n* Compiler: gcc 4.8.4\r\n* PCL Version: 1.8\r\n\r\n## Other remarks\r\nI already tried installing via ppa  \r\n`    sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl`\r\nbut also apt-get could not install pcl:\r\n```\r\nThe following packages have unmet dependencies:\r\n libpcl-all : Depends: libpcl-1.7-all but it is not going to be installed\r\nE: Unable to correct problems, you have held broken packages.\r\n```\r\nI already installed tons of requirements but the problem persists\r\n- VTK (fresh from github --> is there any special version I need, maybe the newest is not compatible?)\r\n- FLANN (both from github and via apt-get)\r\n\r\nAny idea what goes wrong? (I've already wasted half a day)\r\n"},"comment":{"url":"https://api.github.com/repos/PointCloudLibrary/pcl/issues/comments/305737762","html_url":"https://github.com/PointCloudLibrary/pcl/issues/1881#issuecomment-305737762","issue_url":"https://api.github.com/repos/PointCloudLibrary/pcl/issues/1881","id":305737762,"user":{"login":"mgarbade","id":3956593,"avatar_url":"https://avatars0.githubusercontent.com/u/3956593?v=3","gravatar_id":"","url":"https://api.github.com/users/mgarbade","html_url":"https://github.com/mgarbade","followers_url":"https://api.github.com/users/mgarbade/followers","following_url":"https://api.github.com/users/mgarbade/following{/other_user}","gists_url":"https://api.github.com/users/mgarbade/gists{/gist_id}","starred_url":"https://api.github.com/users/mgarbade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgarbade/subscriptions","organizations_url":"https://api.github.com/users/mgarbade/orgs","repos_url":"https://api.github.com/users/mgarbade/repos","events_url":"https://api.github.com/users/mgarbade/events{/privacy}","received_events_url":"https://api.github.com/users/mgarbade/received_events","type":"User","site_admin":false},"created_at":"2017-06-02T09:29:28Z","updated_at":"2017-06-02T09:29:28Z","body":"That was the trick! Thanks a lot! (I wasted hours on that sh**)\r\nI kicked out the manually compiled flann ( from git) and instead installed the system version\r\n    `sudo apt-get install libflann-dev`\r\nThen the compilation worked fine.\r\n\r\nOther packages I installed (but were unrelated to my bug / probably unnecessary) - just for completeness:\r\n\r\n`sudo apt-get install g++ cmake cmake-gui doxygen   mpi-default-dev openmpi-bin openmpi-common libeigen3-dev libboost-all-dev libvtk5.8-qt4 libvtk5.8 libqhull* libusb-dev libgtest-dev git-core freeglut3-dev pkg-config build-essential libxmu-dev libxi-dev  libusb-1.0-0-dev graphviz mono-complete qt-sdk libeigen3-dev`\r\n\r\n"}}
{"actor":{"display_login":"mgarbade"}}