简体   繁体   中英

How to use OpenCV with Qt5

I'm migrating my code from Qt4 to Qt5 that uses OpenCV to take shots from the Webcam and display it on QLabel, on Qt4 everything works fine, but in Qt5 i have a trouble. The libstdc++-6.dll that is required both from Qt and OpenCV are different (the used by OpenCV has 957 KB(i got it by download of MinGW on the SourceForge page), and the required by Qt5 that came with the Qt5 installer has 874 KB) and when i try to use one i got this error: "The procedure entry point __gxx_personality_v0 could not be located in the dynamic link library libstdc++-6.dll" and when i try to use another dll i got this error: "The procedure entry point __gxx_personality_sj0 could not be located in the dynamic link library libstdc++-6.dll". What i can do to solve this issue and use OpenCV with Qt5?

我找到了一个简单的解决方案:使用vc11预编译的库(不需要libstdc ++-6.dll,从而避免与Qt5所需的libstdc ++-6.dll冲突),而不是使用MinGW的OpenCV预编译库。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM