We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I was getting a linking error during the compilation of the MinkowskiEngineBackend.
MinkowskiEngineBackend
++ -pthread -shared -B /anaconda3/envs/pytorch13/compiler_compat -L/anaconda3/envs/pytorch13/lib -Wl,-rpath=/anaconda3/envs/pytorch13/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/pybind/minkowski.o -Lobjs -L/usr/local/cuda-10.1/lib64 -lminkowski -lopenblas -lcudart -o build/lib.linux-x86_64-3.6/MinkowskiEngineBackend.cpython-36m-x86_64-linux-gnu.so /anaconda3/envs/pytorch13/compiler_compat/ld: cannot find -lm /anaconda3/envs/pytorch13/compiler_compat/ld: cannot find -lpthread /anaconda3/envs/pytorch13/compiler_compat/ld: cannot find -lc collect2: error: ld returned 1 exit status error: command 'g++' failed with exit status 1
I solved it by adding extra_link_args=['-L/usr/lib/x86_64-linux-gnu/'] to setup.py in the ExtModules section:
extra_link_args=['-L/usr/lib/x86_64-linux-gnu/']
setup.py
ext_modules=[ Extension( name='MinkowskiEngineBackend', include_dirs=['./', get_python_inc() + "/.."], sources=[ 'pybind/minkowski.cpp', ], libraries=[ 'minkowski', 'openblas', # for other blas, replace openblas ], library_dirs=['objs'], extra_compile_args=extra_compile_args, extra_link_args=['-L/usr/lib/x86_64-linux-gnu/'] ) ],
The text was updated successfully, but these errors were encountered:
This seems to have disappeared on a new environment.
Sorry, something went wrong.
https://github.com/NVIDIA/MinkowskiEngine/issues/68
7be1d98
No branches or pull requests
Hi, I was getting a linking error during the compilation of the
MinkowskiEngineBackend
.I solved it by adding
extra_link_args=['-L/usr/lib/x86_64-linux-gnu/']
tosetup.py
in the ExtModules section:The text was updated successfully, but these errors were encountered: