Skip to content
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

cannot find people_detect application after build pcl #2277

Closed
chiaho903 opened this issue Apr 11, 2018 · 17 comments · Fixed by #3460
Closed

cannot find people_detect application after build pcl #2277

chiaho903 opened this issue Apr 11, 2018 · 17 comments · Fixed by #3460
Labels
module: gpu needs: code review Specify why not closed/merged yet

Comments

@chiaho903
Copy link

Your Environment

  • Operating System and version: ubuntu 16.04
  • Compiler: ccmake 3.5.1
  • PCL Version: 1.8.1

Context

Hi, I was trying to run the example on the pcl tutorial/gpu/detect people. I expect that it will be built after cmake the whole pcl repository, my ccmake options is shown below:

image

I already turn on the BUILD_GPU and BUILD_GPU_PEOPLE, but even after I run make and make install successfully, I can't find an executable file name people_detect in the bin folder.

I also find the original code in doc/tutorials/content/sources/gpu/people_detect and try to build it, but I got the error message:
fatal error: pcl/gpu/people/include/pcl/gpu/people/people_detector.h: No such file or directory
I think maybe the reference include file is misplaced, but I still can't make the people_detect file executable.

@libaosuan
Copy link

I am so sorry to ask the question. Please tell me how to compile the source code in Ubuntu 16.04? I was trying to compile for two days.Do you have the installation process.Thank you!!

@chiaho903
Copy link
Author

hi @libaosuan, I followed the tutorial on the pcl website here. Make sure you have install the dependencies below the page.

@libaosuan
Copy link

Thanks. I have installed the PCL.

@dhgokul
Copy link

dhgokul commented May 2, 2018

Me too having same issue, people_detect executable file is not generated after enable BUILD_GPU ,BUILD_CUDA and BUILD_PEOPLE options .

Already raised an issue - PFB links
#2292

Any help appreciated !

@SergioRAgostinho SergioRAgostinho added the needs: code review Specify why not closed/merged yet label May 2, 2018
@dhgokul
Copy link

dhgokul commented May 3, 2018

Thanks for review, Please let me know how to sort out this issue !

@chiaho903
Copy link
Author

hi @dhgokul I solved this problem by enabling the WITH_VTK option, then go to build the people_detect.cpp in the tutorial folder.
I think its because the people_detect needs something from VTK, and the files in tutorial folder won't be build in the general cmake.

@dhgokul
Copy link

dhgokul commented May 3, 2018

Hi Chiah,

Thanks for your response, I have enabled option WITH_VTK - ON (vtk-6.2), still not able to generated people binary. If you have ccmake configuration screen shot. Please share with me. will validate once

Thanks,
Gokul

@dhgokul
Copy link

dhgokul commented May 3, 2018

Cmake configuration details :

BOOST_THREAD_LIBRARY /usr/lib/x86_64-linux-gnu/libpthread.so
BUILD_2d ON
BUILD_CUDA ON
BUILD_GPU ON
BUILD_apps ON
BUILD_apps_3d_rec_framework OFF
BUILD_apps_cloud_composer OFF
BUILD_apps_in_hand_scanner OFF
BUILD_apps_modeler OFF
BUILD_apps_optronic_viewer OFF
BUILD_apps_point_cloud_editor OFF
BUILD_common ON
BUILD_examples ON
BUILD_features ON
BUILD_filters ON
BUILD_geometry ON
BUILD_global_tests ON
BUILD_io ON
BUILD_kdtree ON
BUILD_keypoints ON
BUILD_ml ON
BUILD_octree ON
BUILD_outofcore ON
BUILD_people ON
BUILD_recognition ON
BUILD_registration ON
BUILD_sample_consensus ON
BUILD_search ON
BUILD_segmentation ON
BUILD_simulation ON
BUILD_stereo ON
BUILD_surface ON
BUILD_surface_on_nurbs ON
BUILD_tests_2d ON
BUILD_tests_common ON
BUILD_tests_features ON
BUILD_tests_filters ON
BUILD_tests_geometry ON
BUILD_tests_io ON
BUILD_tests_kdtree ON
BUILD_tests_keypoints ON
BUILD_tests_octree ON
BUILD_tests_outofcore ON
BUILD_tests_people ON
BUILD_tests_recognition ON
BUILD_tests_registration ON
BUILD_tests_sample_consensus ON
BUILD_tests_search ON
BUILD_tests_segmentation ON
BUILD_tests_surface ON
BUILD_tests_visualization ON
BUILD_tools ON
BUILD_tracking ON
BUILD_visualization ON
CMAKE_BUILD_TYPE Release
CMAKE_CONFIGURATION_TYPES Debug;Release
CMAKE_INSTALL_PREFIX /usr/local
CUDA_ARCH_BIN 2.0 2.1(2.0) 3.0 3.5 5.0 5.2
CUDA_ARCH_PTX
CUDA_HOST_COMPILER /usr/bin/cc
CUDA_SDK_ROOT_DIR /usr/local/cuda
CUDA_TOOLKIT_ROOT_DIR /usr/lib/nvidia-cuda-toolkit
CUDA_USE_STATIC_CUDA_RUNTIME ON
CUDA_rt_LIBRARY /usr/lib/x86_64-linux-gnu/librt.so
DPKG_PROGRAM /usr/bin/dpkg
DSSDK_DIR DSSDK_DIR-NOTFOUND
ENSENSO_INCLUDE_DIR ENSENSO_INCLUDE_DIR-NOTFOUND
ENSENSO_LIBRARY ENSENSO_LIBRARY-NOTFOUND
FZ_API_DIR default value
LIBUSB_1_INCLUDE_DIR /usr/include
LIBUSB_1_LIBRARY /usr/lib/x86_64-linux-gnu/libusb-1.0.so
OPENNI2_INCLUDE_DIR OPENNI2_INCLUDE_DIR-NOTFOUND
OPENNI2_LIBRARY OPENNI2_LIBRARY-NOTFOUND
OPENNI_INCLUDE_DIR /usr/include/ni
OPENNI_LIBRARY /usr/lib/libOpenNI.so
PCAP_INCLUDE_DIR /usr/include
PCAP_LIBRARY /usr/lib/x86_64-linux-gnu/libpcap.so
PCL_QT_VERSION 4
PCL_VERBOSITY_LEVEL Info
PCL_VERSION 1.7
QT_QMAKE_EXECUTABLE /usr/bin/qmake
RSSDK_DIR RSSDK_DIR-NOTFOUND
USB_10_INCLUDE_DIR /usr/include
USB_10_LIBRARY /usr/lib/x86_64-linux-gnu/libusb-1.0.so
USE_UMFPACK OFF
VTK_DIR /usr/lib/cmake/vtk-6.2
WITH_CUDA ON
WITH_DAVIDSDK OFF
WITH_DOCS OFF
WITH_DSSDK OFF
WITH_ENSENSO OFF
WITH_FZAPI OFF
WITH_LIBUSB ON
WITH_OPENGL ON
WITH_OPENNI ON
WITH_OPENNI2 OFF
WITH_PCAP ON
WITH_PNG ON
WITH_QHULL ON
WITH_QT ON
WITH_RSSDK OFF
WITH_VTK ON
tide_DIR tide_DIR-NOTFOUND

@chiaho903
Copy link
Author

@dhgokul this is my ccmake list for pcl,
ccmake1
ccmake2
ccmake3
ccmake4
ccmake5
ccmake6

And here is the ccmake list for people_detect,
people_detect_ccmake

@dhgokul
Copy link

dhgokul commented May 3, 2018

Chia,
Thanks for sharing screen-shot, it really helped me lot . In my build i am not able to see BUILD_gpu_* (example : BUILD_gpu_people) options . Any changes need to be done ?

@chiaho903
Copy link
Author

@dhgokul in my ccmake I just press [t] to get in advanced mode, maybe you should try install ccmake, it's the GUI for cmake, the usage is the same as cmake.

@dhgokul
Copy link

dhgokul commented May 4, 2018

Thanks chia. Now, I'm able to enable BUILD_gpu_people = ON.

Now, facing different issue like CUDA version issue as follows,
I have cuda 9.0 version only, but still it shows CMake error with cuda version

Error details :

   CMake Error at gpu/people/CMakeLists.txt:24 (if):
   if given arguments:

     "9.0" "VERSION_GREATER_EQUAL" "9.0"

   Unknown arguments specified

I have tried changing version in CMakeLists.txt file like 8.0, 9.0 and 9.1. But, it always shows the same error. Please let me know, anything missing here.

@smihael
Copy link

smihael commented Aug 10, 2018

Which version of CMake are you using?

VERSION_GREATER_EQUAL logic is available only since CMake v3.7, whereas Ubuntu 16.04 ships only with v3.5.

@dhgokul
Copy link

dhgokul commented Sep 17, 2018

@smihael Thanks ! will check

@SergioRAgostinho
Copy link
Member

Based on this comment seems like we're not respecting the minimum required cmake version for the project. Regarding the application install location we'll still need to look into it.

@anujgpatil
Copy link

anujgpatil commented Nov 7, 2019

Based on this comment seems like we're not respecting the minimum required cmake version for the project. Regarding the application install location we'll still need to look into it.

In my CMakeLists
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
My CMake version:
cmake version 3.5.2

Still getting the same error.
1650
Any resolutions?

PS- The gpu/people file that it references is this: @line24
1722

@anujgpatil
Copy link

#3459 (comment)

Fixed it!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: gpu needs: code review Specify why not closed/merged yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants