Ask Your Question
0

cannot open file 'python35_d.lib'

asked 2018-06-22 13:32:35 -0600

shamini gravatar image

Hello everyone! I'am trying to install opencv with cmake. I could successfully configure and generate it using cmake. but when I'am running the opencv.sln in visual studio 2017 I'am getting the following error.

Severity Code Description Project File Line Suppression State Error LNK1104 cannot open file 'python35_d.lib' opencv_python3 C:\Users\Desktop\opencv3\modules\python3\LINK

Can anyone help me with this

Thanks in advance! shamini Koravuna

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-06-22 14:41:09 -0600

LBerger gravatar image

updated 2018-06-24 02:53:31 -0600

You can build python36_d.lib if you download zip file https://www.python.org/ftp/python/3.6.... You can find in gzip a sln file to build python in release and debug. You have to give path in cmkae for opencv I Think you can do it too for python35

for python36 I set cmake variables :

you must set some cmake variables :

//Path to Python library
PYTHON3_LIBRARY:FILEPATH=optimized;C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/libs/python36.lib;debug;C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/libs/python36_d.lib

//Path to Python debug
PYTHON3_LIBRARY_DEBUG:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/libs/python36_d.lib
edit flag offensive delete link more

Comments

I tried doing that still I'am getting the same error. Is there any other alternative to fix it?

shamini gravatar imageshamini ( 2018-06-23 15:47:17 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-06-22 13:32:35 -0600

Seen: 2,780 times

Last updated: Jun 24 '18