■CALENDAR■
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30   
<<前月 2021年09月 次月>>
■LOGIN■
現在のモード: ゲストモード
USER ID:
USER PW:
■ADMIN■
ADMIN ID:
ADMIN PW:
■NEW ENTRIES■
■CATEGORIES■
■BY CATEGORY■
■ARCHIVES■
■PROFILE■
■POWERED BY■
BLOGN(ぶろぐん)
BLOGNPLUS(ぶろぐん+)
■OTHER■

OpenCV3.3.1のビルドでpython36_d.libが無いよって言われたら
ここをクリック.


ファイルは,E:\ProgramData\Anaconda\Anaconda3\include\pyconfig.h

原文)
There is an ugly workaround, but there must be a better way. Anyway, the fix is to change the hardcoded DEFAULTLIB on line 325 of pyconfig.h to use the release lib. This is actually someone else's idea, but I can't find that post any more.
# if defined(_DEBUG)
//# pragma comment(lib,"python34_d.lib")
# pragma comment(lib,"python34.lib") // no debug lib in python distribution
# elif ...
It is also necessary to undefine Py_DEBUG on line 370 to avoid link errors:
#ifdef _DEBUG
//# define Py_DEBUG
#endif



ビルドの構成マネージャで
gen_opencv_python_source

opencv_python3
のプロジェクトだけReleaseモードに設定したほうがスッキリ.
| http://www.ccn.yamanashi.ac.jp/~tsuyoshi-s/blogn/blognplus/index.php?e=59 |
| MEMO | 12:39 PM | comments (0) | trackback (0) |

PAGE TOP ↑