OpenCV and QT imread exit code

2019-09-03 09:08发布

问题:

After writting this thread I was thinking the problem is solved, but it still is not. In Debug mode the program is starting, then src.empty is true, which mean it cannot load file. If I change to release mode exit code -1073741701 is showned again, which is strange because I load the release .lib files like this:

INCLUDEPATH += D:\opencv_2411\opencv\build\include
LIBS += -LD:\opencv_2411\opencv\build\x64\vc12\lib \
-lopencv_calib3d2411 \
-lopencv_core2411 \
-lopencv_features2d2411 \
-lopencv_flann2411 \
-lopencv_highgui2411 \
-lopencv_imgproc2411 \
-lopencv_ml2411 \
-lopencv_objdetect2411 \
-lopencv_photo2411 \
-lopencv_stitching2411 \
-lopencv_superres2411 \
-lopencv_ts2411 \
-lopencv_video2411 \
-lopencv_videostab2411

Here are some screenshots:

回答1:

I forgot again to copy .dll files to release directory. Now the -1073741701 exit code disappear in release mode. The other problem is solved with the use of full path to the image and the escape of backslash character this way \\, which I forgot again. This was noobie question.