library 설치시 LNK 1181 에러 발생하는 경우
조회수 420회
from setuptools import setup
from distutils.extension import Extension
from Cython.Build import cythonize
import os.path
import numpy as np
extensions = [
Extension("*", ["pyrirgen.pyx"],
include_dirs=[
os.path.abspath("."),
],
library_dirs=[os.path.abspath(".")],
libraries=["rirgen"], #지우니 설치됨. but other error LNK1120 발생
language='c++'
),
]
setup(
name = 'pyrirgen',
ata_files = [('', ['librirgen.so'])],
ext_modules=cythonize(extensions, compiler_directives = {
'language_level': 3, # Python 3
'embedsignature': True, # add method signature to docstrings, thus tools can display it after compilation
'c_string_encoding': 'default',
'c_string_type': 'str',
}),
)
위의 라이브러리를 설치하려고 하는데, 아나콘다 프롬프트에서
python3 setup.py build_ext --inplace
를 실행하니 LNK 1181 error라 하여 'rirgen.lib'을 열 수 없습니다
고 합니다...
이것저것 찾아보니 libraries=["rirgen"]
를 지워보라길래 그리하니 이번엔 LNK1120 error라고 외부참조를 확인 할 수 없습니다
고 합니다... 어떻게 해결 할 수 있을까요?
-
(•́ ✖ •̀)
알 수 없는 사용자
댓글 입력