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

LINK : fatal error LNK1181: Cannot open input file 'm.lib'. #128

Open
mitesuti opened this issue Jun 29, 2023 · 0 comments
Open

LINK : fatal error LNK1181: Cannot open input file 'm.lib'. #128

mitesuti opened this issue Jun 29, 2023 · 0 comments

Comments

@mitesuti
Copy link

Hello!

I have created a virtual environment for anaconda with the following command. (I am doing this on Windows 10)

conda env create -f environment.yaml
conda activate mesh_funcspace

Then, when I tried to compile it, I got the error below.

(mesh_funcspace) D:\occupancy_networks>python setup.py build_ext --inplace
No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0'
running build_ext
C:\Users\miki\anaconda3\envs\mesh_funcspace\lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for cl: [WinError 2] 指定されたファイルが見つかりません。
warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
building 'im2mesh.utils.libmesh.triangle_hash' extension
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\miki\anaconda3\envs\mesh_funcspace\lib\site-packages\numpy\core\include -IC:\Users\miki\anaconda3\envs\mesh_funcspace\include -IC:\Users\miki\anaconda3\envs\mesh_funcspace\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpim2mesh/utils/libmesh/triangle_hash.cpp /Fobuild\temp.win-amd64-3.6\Release\im2mesh/utils/libmesh/triangle_hash.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=triangle_hash -D_GLIBCXX_USE_CXX11_ABI=0
triangle_hash.cpp
c:\users\miki\anaconda3\envs\mesh_funcspace\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
im2mesh/utils/libmesh/triangle_hash.cpp(2799): warning C4244: '=': 'Py_ssize_t' から 'int' への変換です。データが失われ る可能性があります。
im2mesh/utils/libmesh/triangle_hash.cpp(3143): warning C4244: '=': 'Py_ssize_t' から 'int' への変換です。データが失われ る可能性があります。
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\miki\anaconda3\envs\mesh_funcspace\libs /LIBPATH:C:\Users\miki\anaconda3\envs\mesh_funcspace\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" m.lib /EXPORT:PyInit_triangle_hash build\temp.win-amd64-3.6\Release\im2mesh/utils/libmesh/triangle_hash.obj /OUT:build\lib.win-amd64-3.6\im2mesh\utils\libmesh\triangle_hash.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\im2mesh/utils/libmesh\triangle_hash.cp36-win_amd64.lib
LINK : fatal error LNK1181: 入力ファイル 'm.lib' を開けません。
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181

I think the main error is that m.lib is not found, but how can I solve this?

Thank you in advance for your help.

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