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

ninja: build stopped: subcommand failed. #24

Closed
Subin-Kim46 opened this issue Oct 5, 2023 · 4 comments
Closed

ninja: build stopped: subcommand failed. #24

Subin-Kim46 opened this issue Oct 5, 2023 · 4 comments

Comments

@Subin-Kim46
Copy link

Hi,

Thank you for your excellent investigation.
I got some error. I think it's not match cuda version and gcc version.

Like this error
mapillary/inplace_abn#106 (comment)

My version is cuda 11.6 and gcc version 9.4.0
Can you tell me the version you used?

[INFO] load image from data/AU/w1_rgba.png...
Number of points at initialisation : 5000
[INFO] loading zero123...
Loading pipeline components...: 100%|█████████████████████████████████████████████████████| 6/6 [00:00<00:00, 7.16it/s]
[INFO] loaded zero123!
100%|█████████████████████████████████████████████████████████████████████████████████| 500/500 [00:54<00:00, 9.25it/s]
[INFO] save model to logs/w1_model.ply.
/home/sbkim/dreamgaussian/dream_venv/lib/python3.8/site-packages/torch/functional.py:478: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:2894.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
/home/sbkim/dreamgaussian/dream_venv/lib/python3.8/site-packages/varname/utils.py:447: UsingExecWarning: 'pure_eval' is not installed. Using 'eval' to get the function that calls 'argname'. Try calling it using a variable reference to the function, or passing the function to 'argname' explicitly.
warnings.warn(
Tensor occ torch.Size([128, 128, 128]) torch.float32 cuda:0∈ [0.0, 65.49642181396484] μ = 0.1503143310546875 σ =
1.5049272775650024
[INFO] mesh cleaning: (15938, 3) --> (9009, 3), (31868, 3) --> (18014, 3)
[INFO] marching cubes result: torch.Size([9009, 3]) (-0.689032793045044-0.6991069912910461), torch.Size([18014, 3])
[INFO] unwrap uv...
Traceback (most recent call last):
File "/home/sbkim/dreamgaussian/dream_venv/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1808, in _run_ninja_build
subprocess.run(
File "/usr/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

...

fatal error: EGL/egl.h: No such file or directory
36 | #include <EGL/egl.h>
| ^~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

@ashawkey
Copy link
Collaborator

ashawkey commented Oct 5, 2023

@Subin-Kim46 Hi, this is caused by an NVIDIA driver installation without opengl. You can either reinstall the driver or try adding force_cuda_rast=True to the command.

@lyk412
Copy link

lyk412 commented Oct 24, 2023

@Subin-Kim46 Hi, this is caused by an NVIDIA driver installation without opengl. You can either reinstall the driver or try adding force_cuda_rast=True to the command.

Hi. when I run the command python -m kiui.render logs/name.obj --save_video name.mp4 --wogui or python -m kiui.render logs/name.obj --save images/name/ --wogui, I met the problem mentioned aboved. I tried to add force_cuda_rast=True at the end of the command, but got the error:

render.py: error: unrecognized arguments: force_cuda_rast=True

How can I run it successfully?

@ashawkey
Copy link
Collaborator

For renderer.py, you need to append --force_cuda_rast.

@lyk412
Copy link

lyk412 commented Oct 24, 2023

For renderer.py, you need to append --force_cuda_rast.

It works! Thank you so much for such a timely reply!

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

3 participants