daniilidis-group / neural_renderer

A PyTorch port of the Neural 3D Mesh Renderer
Other
1.12k stars 248 forks source link

problem about 'python setup.py install' #113

Open s-bei opened 2 years ago

s-bei commented 2 years ago

running install running bdist_egg running egg_info writing neural_renderer_pytorch.egg-info/PKG-INFO writing dependency_links to neural_renderer_pytorch.egg-info/dependency_links.txt writing top-level names to neural_renderer_pytorch.egg-info/top_level.txt reading manifest file 'neural_renderer_pytorch.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'neural_renderer_pytorch.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py running build_ext building 'neural_renderer.cuda.load_textures' extension Emitting ninja build file /workspace/ANsp/neural_renderer-master/build/temp.linux-x86_64-3.7/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) 1.9.0 g++ -pthread -shared -B /root/anaconda3/envs/ANsp/compiler_compat -L/root/anaconda3/envs/ANsp/lib -Wl,-rpath=/root/anaconda3/envs/ANsp/lib -Wl,--no-as-needed -Wl,--sysroot=/ /workspace/ANsp/neural_renderer-master/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda.o /workspace/ANsp/neural_renderer-master/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda_kernel.o -L/root/anaconda3/envs/ANsp/lib/python3.7/site-packages/torch/lib -L/usr/local/cuda/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda_cu -ltorch_cuda_cpp -o build/lib.linux-x86_64-3.7/neural_renderer/cuda/load_textures.cpython-37m-x86_64-linux-gnu.so g++: error: /workspace/ANsp/neural_renderer-master/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda_kernel.o: No such file or directory error: command 'g++' failed with exit status 1

when i use 'python setup.py install' ,the problem has occured. and i have edit three .cpp files in neural_renderer/cuda/, but it didn't work! Do you have some solutions to solve this problems.

Kai-0515 commented 2 years ago

have u solved this problem?

rabbityqc commented 1 year ago

refer to: https://blog.csdn.net/axept/article/details/127359947 you need to do as following: git clone https://github.com/daniilidis-group/neural_renderer.git cd neural_renderer python setup.py install