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

Error: Compile YCB_renderer: pybind11 folder does not contain a CMakeLists.txt file. #3

Closed
Lynne-Zheng-Linfang opened this issue Nov 11, 2020 · 2 comments

Comments

@Lynne-Zheng-Linfang
Copy link

Thanks for sharing the code. I tried to compile the YCB_renderer, while error occurs when I was trying to run the following command:

python setup.py develop

The error information are as follows:

running develop
running egg_info
writing CppYCBRenderer.egg-info/PKG-INFO
writing dependency_links to CppYCBRenderer.egg-info/dependency_links.txt
writing top-level names to CppYCBRenderer.egg-info/top_level.txt
reading manifest file 'CppYCBRenderer.egg-info/SOURCES.txt'
writing manifest file 'CppYCBRenderer.egg-info/SOURCES.txt'
running build_ext
CMake Error at CMakeLists.txt:9 (add_subdirectory):
  The source directory

    /home/linfang/Documents/Code/PoseRBPF-master/ycb_render/pybind11

  does not contain a CMakeLists.txt file.

-- Configuring incomplete, errors occurred!
See also "/home/linfang/Documents/Code/PoseRBPF-master/ycb_render/build/temp.linux-x86_64-3.6/CMakeFiles/CMakeOutput.log".
See also "/home/linfang/Documents/Code/PoseRBPF-master/ycb_render/build/temp.linux-x86_64-3.6/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
  File "setup.py", line 76, in <module>
    zip_safe=False,
  File "/home/linfang/.local/lib/python3.6/site-packages/setuptools/__init__.py", line 165, in setup
    return distutils.core.setup(**attrs)
  File "/home/linfang/anaconda3/envs/pose_rbpf_env/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/linfang/anaconda3/envs/pose_rbpf_env/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/home/linfang/anaconda3/envs/pose_rbpf_env/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/linfang/.local/lib/python3.6/site-packages/setuptools/command/develop.py", line 38, in run
    self.install_for_development()
  File "/home/linfang/.local/lib/python3.6/site-packages/setuptools/command/develop.py", line 140, in install_for_development
    self.run_command('build_ext')
  File "/home/linfang/anaconda3/envs/pose_rbpf_env/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/linfang/anaconda3/envs/pose_rbpf_env/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "setup.py", line 33, in run
    self.build_extension(ext)
  File "setup.py", line 62, in build_extension
    cmake_args, cwd=self.build_temp, env=env)
  File "/home/linfang/anaconda3/envs/pose_rbpf_env/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/home/linfang/Documents/Code/PoseRBPF-master/ycb_render', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/linfang/Documents/Code/PoseRBPF-master/ycb_render', '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/home/linfang/Documents/Code/PoseRBPF-master/ycb_render/build', '-DPYTHON_EXECUTABLE=/home/linfang/anaconda3/envs/pose_rbpf_env/bin/python', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.

By the way, pybind11 folder is empty. Did I missed any necessary operation before running this command? Thanks in advance!

@greatwallet
Copy link

You must have missed --recursive flag when git cloning.

Do git clone https://github.com/NVlabs/PoseRBPF.git --recursive

@Lynne-Zheng-Linfang
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants