Skip to content

Whether I can skip the installation of Open3D of C++ version, if I only want to use the Python binding of Patchwork++ using pybind11? #42

@laliwang

Description

@laliwang

While I just run the pip install . in patchwork-plusplus directory with running pip install open3d ahead, some errors interrupts as follows:

Processing /mnt/storage/wjh/Third_Parties/patchwork-plusplus
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.23 in /home/wjh/anaconda3/envs/h2mapping/lib/python3.8/site-packages (from pypatchworkpp==0.0.1) (1.24.4)
Building wheels for collected packages: pypatchworkpp
  Building wheel for pypatchworkpp (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for pypatchworkpp (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [45 lines of output]
      *** scikit-build-core 0.7.0 using CMake 3.27.9 (wheel)
      *** Configuring CMake...
      loading initial cache file /tmp/tmpd3hlu9k0/build/CMakeInit.txt
      -- The C compiler identification is GNU 7.5.0
      -- The CXX compiler identification is GNU 7.5.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - failed
      -- Check for working C compiler: /usr/bin/cc
      -- Check for working C compiler: /usr/bin/cc - broken
      CMake Error at /tmp/pip-build-env-vobq7vv2/normal/lib/python3.8/site-packages/cmake/data/share/cmake-3.27/Modules/CMakeTestCCompiler.cmake:67 (message):
        The C compiler
      
          "/usr/bin/cc"
      
        is not able to compile a simple test program.
      
        It fails with the following output:
      
          Change Dir: '/tmp/tmpd3hlu9k0/build/CMakeFiles/CMakeScratch/TryCompile-9QWsce'
      
          Run Build Command(s): /tmp/pip-build-env-vobq7vv2/normal/lib/python3.8/site-packages/ninja/data/bin/ninja -v cmTC_478da
          [1/2] /usr/bin/cc    -o CMakeFiles/cmTC_478da.dir/testCCompiler.c.o -c /tmp/tmpd3hlu9k0/build/CMakeFiles/CMakeScratch/TryCompile-9QWsce/testCCompiler.c
          ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
          ERROR: ld.so: object '/lib64/libstdc++.so' from /etc/ld.so.preload cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
          [2/2] : && /usr/bin/cc   CMakeFiles/cmTC_478da.dir/testCCompiler.c.o -o cmTC_478da   && :
          FAILED: cmTC_478da
          : && /usr/bin/cc   CMakeFiles/cmTC_478da.dir/testCCompiler.c.o -o cmTC_478da   && :
          ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
          ERROR: ld.so: object '/lib64/libstdc++.so' from /etc/ld.so.preload cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
          /usr/lib/gcc/x86_64-linux-gnu/7/../../../../x86_64-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/liblto_plugin.so: error loading plugin: /usr/lib/gcc/x86_64-linux-gnu/7/liblto_plugin.so: wrong ELF class: ELFCLASS64
          collect2: error: ld returned 1 exit status
          ninja: build stopped: subcommand failed.
      
      
      
      
      
        CMake will not be able to correctly generate this project.
      Call Stack (most recent call first):
        CMakeLists.txt:2 (project)
      
      
      -- Configuring incomplete, errors occurred!
      
      *** CMake configuration failed
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pypatchworkpp
Failed to build pypatchworkpp
ERROR: Could not build wheels for pypatchworkpp, which is required to install pyproject.toml-based projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions