关于搭建GaussianDreamer环境出现的一些bug

Building wheel for pysdf (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [59 lines of output] Couldn't find Eigen locally, downloading... Download failed, failed to find Eigen /root/miniconda3/envs/gsdreamer/lib/python3.10/site-packages/setuptools/dist.py:498: SetuptoolsDeprecationWarning: Invalid dash-separated options !! ******************************************************************************** Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See Configuring setuptools using setup.cfg files - setuptools 69.2.0.post20240313 documentation for details. ******************************************************************************** !! opt = self.warn_dash_deprecation(opt, section) /root/miniconda3/envs/gsdreamer/lib/python3.10/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! dist.fetch_build_eggs(dist.setup_requires) /root/miniconda3/envs/gsdreamer/lib/python3.10/site-packages/setuptools/dist.py:498: SetuptoolsDeprecationWarning: Invalid dash-separated options !! ******************************************************************************** Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See Configuring setuptools using setup.cfg files - setuptools 69.2.0.post20240313 documentation for details. ******************************************************************************** !! opt = self.warn_dash_deprecation(opt, section) running bdist_wheel running build running build_ext creating tmp gcc -pthread -B /root/miniconda3/envs/gsdreamer/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /root/miniconda3/envs/gsdreamer/include -fPIC -O2 -isystem /root/miniconda3/envs/gsdreamer/include -fPIC -I/root/miniconda3/envs/gsdreamer/include/python3.10 -c /tmp/tmpp4e970rs.cpp -o tmp/tmpp4e970rs.o -std=c++17 gcc -pthread -B /root/miniconda3/envs/gsdreamer/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /root/miniconda3/envs/gsdreamer/include -fPIC -O2 -isystem /root/miniconda3/envs/gsdreamer/include -fPIC -I/root/miniconda3/envs/gsdreamer/include/python3.10 -c /tmp/tmpu00bxep5.cpp -o tmp/tmpu00bxep5.o -fvisibility=hidden building 'pysdf' extension creating build creating build/temp.linux-x86_64-cpython-310 creating build/temp.linux-x86_64-cpython-310/src gcc -pthread -B /root/miniconda3/envs/gsdreamer/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /root/miniconda3/envs/gsdreamer/include -fPIC -O2 -isystem /root/miniconda3/envs/gsdreamer/include -fPIC -DVERSION_INFO=\"0.1.9\" -Iinclude -I/tmp/pip-install-tx4ee_gq/pysdf_10b2f9b72b9c4d6082c847a261d9be3c/.eggs/pybind11-2.12.0-py3.10.egg/pybind11/include -INone -I/root/miniconda3/envs/gsdreamer/include/python3.10 -c pybind.cpp -o build/temp.linux-x86_64-cpython-310/pybind.o -std=c++17 -fvisibility=hidden In file included from pybind.cpp:2: include/sdf/sdf.hpp:30:10: fatal error: Eigen/Core: No such file or directory 30 | #include <Eigen/Core> | ^~~~~~~~~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pysdf Running setup.py clean for pysdf Building wheel for envlight (setup.py) ... done Created wheel for envlight: filename=envlight-0.1.0-py3-none-any.whl size=40356 sha256=fc2ba701ca369edd4c693fe16397470e19be904726234933d12845c6d8d08afc Stored in directory: /tmp/pip-ephem-wheel-cache-28ic117h/wheels/c8/03/70/2579ccfef7bef64158f69ebc5e12de9b560ef319dfe948e55a Building wheel for clip (setup.py) ... done Created wheel for clip: filename=clip-1.0-py3-none-any.whl size=1369497 sha256=1bbfaa3cc32d05038f86ab2f578c45a81cdb3e3f3c73b784c514304263402dc1 Stored in directory: /tmp/pip-ephem-wheel-cache-28ic117h/wheels/da/2b/4c/d6691fa9597aac8bb85d2ac13b112deb897d5b50f5ad9a37e4 Building wheel for controlnet_aux (setup.py) ... done Created wheel for controlnet_aux: filename=controlnet_aux-0.0.7-py3-none-any.whl size=274341 sha256=4f2b679365eba915f548d848f9dcb6b9270d57e4e033cc4e2d6af00e13425cc1 Stored in directory: /root/.cache/pip/wheels/51/e0/2e/2ea411cec18f5717a694b724daddc1595786a0e0942592e80f Building wheel for ffmpy (setup.py) ... done Created wheel for ffmpy: filename=ffmpy-0.3.2-py3-none-any.whl size=5582 sha256=7cad093a4c4834f6217926d23a125d155a6a8eb9f45096235e2c8e3ff828902c Stored in directory: /root/.cache/pip/wheels/f1/33/b9/967f1c6df43a4e6759a80bcc23e335ad8ea0d3c7be950bdcc7 Building wheel for pycollada (setup.py) ... done Created wheel for pycollada: filename=pycollada-0.8-py3-none-any.whl size=127517 sha256=5d3ae9e7e8b120d54669434a0f535504ef0c28cf1df03f9324de43bd89d44ec2 Stored in directory: /root/.cache/pip/wheels/6f/9e/2d/afa2abeeb5caac5b9e7d9f159d7baf24de733786f6354a9fa7 Successfully built antlr4-python3-runtime nerfacc tinycudann nvdiffrast envlight clip controlnet_aux ffmpy pycollada Failed to build pysdf ERROR: Could not build wheels for pysdf, which is required to install pyproject.toml-based projects

来自 <https://chat.openai.com/c/16cd490e-3fc3-4c9b-8e16-e326cde3529f>

解决方案:

使用eigen库时出现找不到文件的错误

#include<Eiegn/Core>

当在cpp文件中包含了该头文件时,对其进行编译,出现以下错误:

fatal error: Eigen/Core: No such file or directory

compilation terminated.

1

2

出现这个问题首先要考虑是否安装了eigen库,可以进行以下命令检查:

$ sudo updatedb

$ locate eigen3

1.eigen库已安装

如果安装好的话会出现eigen库的所有文件,那么我们还需要检查CMakelist文件是否包含了eigen库的头文件,即

include_directories("/usr/include/eigen3")。

如果仍未成功,则需要链接对应的文件,即进行以下命令:

sudo ln -s /usr/include/eigen3/Eigen /usr/include/Eigen

执行此命令是因为 eigen 库默认安装在了 /usr/include/eigen3/Eigen 路径下,需使用下面命令映射到 /usr/include 路径下。

2.eigen库未安装

执行命令:$ sudo apt-get install libeigen3-dev进行安装。

linux下的命令: sudo ln -s 源文件 目标文件

这是一个常用的linux命令,功能是为源文件在目标文件的位置建立一个同步的链接,当二者建立联系后即可在源文件中访问目标文件。

  • 9
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值