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

Hello! I want to compile the C++ libs for running this repo but I got into trouble. #26

Closed
ReloadProcz opened this issue Jan 22, 2025 · 1 comment

Comments

@ReloadProcz
Copy link

ReloadProcz commented Jan 22, 2025

The error I found during running the .hy3dgen/texgen/custom_rasterizer/setup.py install:

ninja: error: '/home/user0/Hunyuan3D-2/lib/custom_rasterizer_kernel/grid_neighbor.cpp', needed by '/home/user0/Hunyuan3D-2/build/temp.linux-x86_64-cpython-310/lib/custom_rasterizer_kernel/grid_neighbor.o', missing and no known rule to make it

(Actually I did not find the file named 'grid_neighbor.o' indeed.)

How to reproduce this error:

For personal reasons I have to build a venv in this repo:
I firstly built a venv in the folder of this repo:

sudo python3.10 -m venv venv

Then during the python setup part I always use like this format:

sudo venv/bin/python -m pip install -r requirements.txt

after finishing installing the depencies, i tried to run the setup.py in:

sudo venv/bin/python hy3dgen/texgen/custom_rasterizer/setup.py install

Then I can see the error in the first part. :(

However, I modified the ./hy3dgen/texgen/differentiable_renderer/compile_mesh_painter.sh to set the python path to my python in the venv and it ran well.(Refer to the issue #1 but I still got the same ModuleNotFoundError)

The content of my ./hy3dgen/texgen/differentiable_renderer/compile_mesh_painter.sh file:

c++ -O3 -Wall -shared -std=c++11 -fPIC `venv/bin/python3 -m pybind11 --includes` hy3dgen/texgen/differentiable_renderer/mesh_processor.cpp -o mesh_processor`python3-config --extension-suffix`
@ReloadProcz
Copy link
Author

Oh well, I solved it by reset the repo and do not use the venv is OK.

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

1 participant