davidcaron / pclpy

Python bindings for the Point Cloud Library (PCL)
MIT License
428 stars 59 forks source link

Cannot build via `scripts/conda_build.bat`? #108

Open snyang opened 1 year ago

snyang commented 1 year ago

I met the following error via running scripts/conda_build.bat, any idea to resolve it?

Added file:///C:/Users/HUAWEI/.conda/envs/pclpy2/conda-bld/pclpy_1673777755063/work to build tracker 'C:\\Users\\HUAWEI\\AppData\\Local\\Temp\\pip-build-tracker-smcdp8_3'   
  Running setup.py (path:%SRC_DIR%\setup.py) egg_info for package from file:///C:/Users/HUAWEI/.conda/envs/pclpy2/conda-bld/pclpy_1673777755063/work
  Created temporary directory: C:\Users\HUAWEI\AppData\Local\Temp\pip-pip-egg-info-cla626qb
  Preparing metadata (setup.py): started
  Running command python setup.py egg_info
  Package pcl_2d-1.9 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `pcl_2d-1.9.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'pcl_2d-1.9' found
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\HUAWEI\.conda\envs\pclpy2\conda-bld\pclpy_1673777755063\work\setup.py", line 344, in <module>
      inc_dirs = pkg_config_multi("--cflags-only-I", skip_chars=2)
    File "C:\Users\HUAWEI\.conda\envs\pclpy2\conda-bld\pclpy_1673777755063\work\pkgconfig_utils.py", line 30, in pkg_config_multi
      for value in pkg_config(arg, lib):
    File "C:\Users\HUAWEI\.conda\envs\pclpy2\conda-bld\pclpy_1673777755063\work\pkgconfig_utils.py", line 37, in pkg_config
      output = subprocess.check_output(command).decode().strip()
    File "C:\Users\HUAWEI\.conda\envs\pclpy2\conda-bld\pclpy_1673777755063\_h_env\lib\subprocess.py", line 415, in check_output
      return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    File "C:\Users\HUAWEI\.conda\envs\pclpy2\conda-bld\pclpy_1673777755063\_h_env\lib\subprocess.py", line 516, in run
      raise CalledProcessError(retcode, process.args,
  subprocess.CalledProcessError: Command '['pkg-config', '--cflags-only-I', 'pcl_2d-1.9']' returned non-zero exit status 1.
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> See above for output.