Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

OpenCV example crashed when build( of 0.9.8 msys2 with Qt creator5.8)

$
0
0

@abu wrote:

Hi everyone,

I've been trying build the example with addon ofxOpenCV, but the program always crashed and didn't show up the detail.
It would not happen with other addons, only happened with OpenCV.
When the project built it got lost of warning down below( it seems to relative to videoinput libs)

In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvShortImage.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvShortImage.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^

In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvColorImage.cpp:1:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvColorImage.cpp:1:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);

In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvHaarFinder.h:14,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvHaarFinder.cpp:1:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvHaarFinder.h:14,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvHaarFinder.cpp:1:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^ ^

In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvContourFinder.h:13,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvContourFinder.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvContourFinder.h:13,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvContourFinder.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/examples/addons/opencvExample/src/main.cpp:1:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/examples/addons/opencvExample/src/main.cpp:1:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^

In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/examples/addons/opencvExample/src/ofApp.h:3,
from F:/develope/of_v0.9.8_msys2_release/examples/addons/opencvExample/src/ofApp.cpp:1:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/examples/addons/opencvExample/src/ofApp.h:3,
from F:/develope/of_v0.9.8_msys2_release/examples/addons/opencvExample/src/ofApp.cpp:1:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);

In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvFloatImage.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:324:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:325:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^
In file included from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofDirectShowGrabber.h:9:0,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/video/ofVideoGrabber.h:31,
from F:/develope/of_v0.9.8_msys2_release/libs/openFrameworks/ofMain.h:96,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvConstants.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvImage.h:15,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvGrayscaleImage.h:12,
from F:/develope/of_v0.9.8_msys2_release/addons/ofxOpenCv/src/ofxCvFloatImage.cpp:2:
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:328:85: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
^
F:/develope/of_v0.9.8_msys2_release/libs/videoInput/include/videoInput.h:329:91: warning: converting to non-pointer type 'long int' from NULL [-Wconversion-null]
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
^ ^

does anyone have any idea how to solve this?
Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles