econsysqtcam / qtcam

QtCAM is a free, Open Source Linux Webcamera Software with more than 10 image control settings, extension settings and Color space switching.
http://www.e-consystems.com/opensource-linux-webcam-software-application.asp
GNU General Public License v3.0
186 stars 95 forks source link

warnings during compilation #5

Open Germano0 opened 8 years ago

Germano0 commented 8 years ago

During compilation on Fedora, with the following patches applied

diff --git a/src/qtcam.pro b/src/qtcam.pro
index 1be3479..49bb261 100644
--- a/src/qtcam.pro
+++ b/src/qtcam.pro
@@ -59,7 +59,8 @@ HEADERS += \

 INCLUDEPATH +=  $$PWD/v4l2headers/include \
-                /usr/include
+                /usr/include \
+               /usr/include/ffmpeg \
+               /usr/include/qt5/QtCore \
+               /usr/include/qt5/QtGui

diff --git a/src/videoencoder.h b/src/videoencoder.h
index b04238b..c4953e3 100644
--- a/src/videoencoder.h
+++ b/src/videoencoder.h
@@ -38,6 +38,7 @@
 //    #define AV_CODEC_ID_VP8 CODEC_ID_VP8
 //    #define AVCodecID CodecID
 //#endif
+#define AVCodecID CodecID

 extern "C" {
 #include "libavcodec/avcodec.h" 

I get the following make log, containing a few warnings

g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o main.o main.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o logger.o logger.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o about.o about.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o cameraproperty.o cameraproperty.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o videostreaming.o videostreaming.cpp
videostreaming.cpp: In constructor ‘Videostreaming::Videostreaming()’:
videostreaming.cpp:68:15: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
     sf = {1, 1};
               ^
videostreaming.cpp:68:8: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
     sf = {1, 1};
        ^
videostreaming.cpp: In member function ‘void Videostreaming::capFrame()’:
videostreaming.cpp:208:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int l=0; l<(width*height*2); l=l+2) /* Y16 to YUYV conversion */
                       ^
videostreaming.cpp:224:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(x = 0; x < width; x += 2)  /* Nearest neighbour interpolation algorithm - y16 to RGB24 conversion */
                      ^
videostreaming.cpp:226:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(y = 0; y < height; y += 2)
                          ^
videostreaming.cpp:39:22: warning: comparison is always false due to limited range of data type [-Wtype-limits]
 #define CLIP(x) ((x) < 0? 0 :((x) >= 255)? 255 : (x))
                      ^
videostreaming.cpp:228:100: note: in expansion of macro ‘CLIP’
                B(x, y, width) = B(x + 1, y, width) = B(x, y + 1, width) = B(x + 1, y + 1, width) = CLIP(Bay(x, y, width));
                                                                                                    ^
videostreaming.cpp:39:22: warning: comparison is always false due to limited range of data type [-Wtype-limits]
 #define CLIP(x) ((x) < 0? 0 :((x) >= 255)? 255 : (x))
                      ^
videostreaming.cpp:229:100: note: in expansion of macro ‘CLIP’
                G(x, y, width) = G(x + 1, y, width) = G(x, y + 1, width) = G(x + 1, y + 1, width) = CLIP(Bay(x + 1, y, width));
                                                                                                    ^
videostreaming.cpp:39:22: warning: comparison is always false due to limited range of data type [-Wtype-limits]
 #define CLIP(x) ((x) < 0? 0 :((x) >= 255)? 255 : (x))
                      ^
videostreaming.cpp:230:100: note: in expansion of macro ‘CLIP’
                R(x, y, width) = R(x + 1, y, width) = R(x, y + 1, width) = R(x + 1, y + 1, width) = CLIP(Bay(x + 1, y + 1, width));
                                                                                                    ^
videostreaming.cpp: In member function ‘bool Videostreaming::extractIRImage(short unsigned int*, unsigned char*)’:
videostreaming.cpp:432:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int imgHeight = 1; imgHeight < height; imgHeight += 2)
                                          ^
videostreaming.cpp:434:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int imgWidth = 0; imgWidth < width; imgWidth += 2)
                                            ^
videostreaming.cpp: In member function ‘void Videostreaming::freeBuffers(unsigned char*, unsigned char*, unsigned char*)’:
videostreaming.cpp:652:75: warning: parameter ‘destBuffer’ set but not used [-Wunused-but-set-parameter]
 void Videostreaming::freeBuffers(unsigned char *srcBuffer, unsigned char *destBuffer, unsigned char *copyBuffer)
                                                                           ^
videostreaming.cpp: In member function ‘QString Videostreaming::getSettings(unsigned int)’:
videostreaming.cpp:1269:103: warning: ‘qctrl.v4l2_queryctrl::default_value’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         emit logCriticalHandle("Unable to get the Value, setting the Default value: "+ QString::number(qctrl.default_value,10));
                                                                                                       ^
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o uvccamera.o uvccamera.cpp
uvccamera.cpp:44:44: warning: unused parameter ‘econCamera’ [-Wunused-parameter]
 int uvccamera::findEconDevice(QStringList *econCamera,QString parameter)
                                            ^
uvccamera.cpp: In member function ‘bool uvccamera::initExtensionUnit(QString)’:
uvccamera.cpp:217:10: warning: unused variable ‘i’ [-Wunused-variable]
     uint i;
          ^
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o v4l2-api.o v4l2-api.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o seecam_10cug_m.o seecam_10cug_m.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o seecam_10cug_bayer.o seecam_10cug_bayer.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o seecam_11cug.o seecam_11cug.cpp
seecam_11cug.cpp: In member function ‘bool See3CAM_11CUG::setWbValues(See3CAM_11CUG::camRGBcolor, uint)’:
seecam_11cug.cpp:208:21: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
         if(rgbValue >= 0 && rgbValue <= 255)
                     ^
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o seecam_cu80.o seecam_cu80.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o seecam_cu50.o seecam_cu50.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o seecam_ar0130.o seecam_ar0130.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o videoencoder.o videoencoder.cpp
videoencoder.cpp: In member function ‘bool VideoEncoder::initFrame()’:
videoencoder.cpp:344:16: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated [-Wdeprecated-declarations]
     ppicture = avcodec_alloc_frame();
                ^
In file included from videoencoder.h:44:0,
                 from videoencoder.cpp:23:
/usr/include/ffmpeg/libavcodec/avcodec.h:3622:10: note: declared here
 AVFrame *avcodec_alloc_frame(void);
          ^
videoencoder.cpp:344:16: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated [-Wdeprecated-declarations]
     ppicture = avcodec_alloc_frame();
                ^
In file included from videoencoder.h:44:0,
                 from videoencoder.cpp:23:
/usr/include/ffmpeg/libavcodec/avcodec.h:3622:10: note: declared here
 AVFrame *avcodec_alloc_frame(void);
          ^
videoencoder.cpp:344:36: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated [-Wdeprecated-declarations]
     ppicture = avcodec_alloc_frame();
                                    ^
In file included from videoencoder.h:44:0,
                 from videoencoder.cpp:23:
/usr/include/ffmpeg/libavcodec/avcodec.h:3622:10: note: declared here
 AVFrame *avcodec_alloc_frame(void);
          ^
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o seecam_cu51.o seecam_cu51.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o see3cam_cu130.o see3cam_cu130.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o h264decoder.o h264decoder.cpp
h264decoder.cpp: In member function ‘bool H264Decoder::initH264Decoder(unsigned int, unsigned int)’:
h264decoder.cpp:70:20: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated [-Wdeprecated-declarations]
     pH264picture = avcodec_alloc_frame();
                    ^
In file included from h264decoder.h:34:0,
                 from h264decoder.cpp:22:
/usr/include/ffmpeg/libavcodec/avcodec.h:3622:10: note: declared here
 AVFrame *avcodec_alloc_frame(void);
          ^
h264decoder.cpp:70:20: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated [-Wdeprecated-declarations]
     pH264picture = avcodec_alloc_frame();
                    ^
In file included from h264decoder.h:34:0,
                 from h264decoder.cpp:22:
/usr/include/ffmpeg/libavcodec/avcodec.h:3622:10: note: declared here
 AVFrame *avcodec_alloc_frame(void);
          ^
h264decoder.cpp:70:40: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated [-Wdeprecated-declarations]
     pH264picture = avcodec_alloc_frame();
                                        ^
In file included from h264decoder.h:34:0,
                 from h264decoder.cpp:22:
/usr/include/ffmpeg/libavcodec/avcodec.h:3622:10: note: declared here
 AVFrame *avcodec_alloc_frame(void);
          ^
h264decoder.cpp:77:5: warning: ‘void avcodec_get_frame_defaults(AVFrame*)’ is deprecated [-Wdeprecated-declarations]
     avcodec_get_frame_defaults(pH264picture);
     ^
In file included from h264decoder.h:34:0,
                 from h264decoder.cpp:22:
/usr/include/ffmpeg/libavcodec/avcodec.h:3632:6: note: declared here
 void avcodec_get_frame_defaults(AVFrame *frame);
      ^
h264decoder.cpp:77:5: warning: ‘void avcodec_get_frame_defaults(AVFrame*)’ is deprecated [-Wdeprecated-declarations]
     avcodec_get_frame_defaults(pH264picture);
     ^
In file included from h264decoder.h:34:0,
                 from h264decoder.cpp:22:
/usr/include/ffmpeg/libavcodec/avcodec.h:3632:6: note: declared here
 void avcodec_get_frame_defaults(AVFrame *frame);
      ^
h264decoder.cpp:77:44: warning: ‘void avcodec_get_frame_defaults(AVFrame*)’ is deprecated [-Wdeprecated-declarations]
     avcodec_get_frame_defaults(pH264picture);
                                            ^
In file included from h264decoder.h:34:0,
                 from h264decoder.cpp:22:
/usr/include/ffmpeg/libavcodec/avcodec.h:3632:6: note: declared here
 void avcodec_get_frame_defaults(AVFrame *frame);
      ^
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o qtquick2applicationviewer.o qtquick2applicationviewer/qtquick2applicationviewer.cpp
/usr/lib64/qt5/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I/home/caterpillar/qtcam/src -I/home/caterpillar/qtcam/src/qtquick2applicationviewer -I/home/caterpillar/qtcam/src/v4l2headers/include -I/usr/include -I/usr/include/ffmpeg -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/c++/5.1.1 -I/usr/include/c++/5.1.1/x86_64-redhat-linux -I/usr/include/c++/5.1.1/backward -I/usr/lib/gcc/x86_64-redhat-linux/5.1.1/include -I/usr/local/include -I/usr/include qtquick2applicationviewer/qtquick2applicationviewer.h -o moc_qtquick2applicationviewer.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o moc_qtquick2applicationviewer.o moc_qtquick2applicationviewer.cpp
/usr/lib64/qt5/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I/home/caterpillar/qtcam/src -I/home/caterpillar/qtcam/src/qtquick2applicationviewer -I/home/caterpillar/qtcam/src/v4l2headers/include -I/usr/include -I/usr/include/ffmpeg -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/c++/5.1.1 -I/usr/include/c++/5.1.1/x86_64-redhat-linux -I/usr/include/c++/5.1.1/backward -I/usr/lib/gcc/x86_64-redhat-linux/5.1.1/include -I/usr/local/include -I/usr/include about.h -o moc_about.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o moc_about.o moc_about.cpp
/usr/lib64/qt5/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I/home/caterpillar/qtcam/src -I/home/caterpillar/qtcam/src/qtquick2applicationviewer -I/home/caterpillar/qtcam/src/v4l2headers/include -I/usr/include -I/usr/include/ffmpeg -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/c++/5.1.1 -I/usr/include/c++/5.1.1/x86_64-redhat-linux -I/usr/include/c++/5.1.1/backward -I/usr/lib/gcc/x86_64-redhat-linux/5.1.1/include -I/usr/local/include -I/usr/include cameraproperty.h -o moc_cameraproperty.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o moc_cameraproperty.o moc_cameraproperty.cpp
/usr/lib64/qt5/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I/home/caterpillar/qtcam/src -I/home/caterpillar/qtcam/src/qtquick2applicationviewer -I/home/caterpillar/qtcam/src/v4l2headers/include -I/usr/include -I/usr/include/ffmpeg -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/c++/5.1.1 -I/usr/include/c++/5.1.1/x86_64-redhat-linux -I/usr/include/c++/5.1.1/backward -I/usr/lib/gcc/x86_64-redhat-linux/5.1.1/include -I/usr/local/include -I/usr/include videostreaming.h -o moc_videostreaming.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o moc_videostreaming.o moc_videostreaming.cpp
/usr/lib64/qt5/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I/home/caterpillar/qtcam/src -I/home/caterpillar/qtcam/src/qtquick2applicationviewer -I/home/caterpillar/qtcam/src/v4l2headers/include -I/usr/include -I/usr/include/ffmpeg -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/c++/5.1.1 -I/usr/include/c++/5.1.1/x86_64-redhat-linux -I/usr/include/c++/5.1.1/backward -I/usr/lib/gcc/x86_64-redhat-linux/5.1.1/include -I/usr/local/include -I/usr/include uvccamera.h -o moc_uvccamera.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o moc_uvccamera.o moc_uvccamera.cpp
/usr/lib64/qt5/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I/home/caterpillar/qtcam/src -I/home/caterpillar/qtcam/src/qtquick2applicationviewer -I/home/caterpillar/qtcam/src/v4l2headers/include -I/usr/include -I/usr/include/ffmpeg -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/c++/5.1.1 -I/usr/include/c++/5.1.1/x86_64-redhat-linux -I/usr/include/c++/5.1.1/backward -I/usr/lib/gcc/x86_64-redhat-linux/5.1.1/include -I/usr/local/include -I/usr/include seecam_10cug_m.h -o moc_seecam_10cug_m.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o moc_seecam_10cug_m.o moc_seecam_10cug_m.cpp
/usr/lib64/qt5/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I/home/caterpillar/qtcam/src -I/home/caterpillar/qtcam/src/qtquick2applicationviewer -I/home/caterpillar/qtcam/src/v4l2headers/include -I/usr/include -I/usr/include/ffmpeg -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/c++/5.1.1 -I/usr/include/c++/5.1.1/x86_64-redhat-linux -I/usr/include/c++/5.1.1/backward -I/usr/lib/gcc/x86_64-redhat-linux/5.1.1/include -I/usr/local/include -I/usr/include seecam_10cug_bayer.h -o moc_seecam_10cug_bayer.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o moc_seecam_10cug_bayer.o moc_seecam_10cug_bayer.cpp
/usr/lib64/qt5/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I/home/caterpillar/qtcam/src -I/home/caterpillar/qtcam/src/qtquick2applicationviewer -I/home/caterpillar/qtcam/src/v4l2headers/include -I/usr/include -I/usr/include/ffmpeg -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/c++/5.1.1 -I/usr/include/c++/5.1.1/x86_64-redhat-linux -I/usr/include/c++/5.1.1/backward -I/usr/lib/gcc/x86_64-redhat-linux/5.1.1/include -I/usr/local/include -I/usr/include seecam_11cug.h -o moc_seecam_11cug.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o moc_seecam_11cug.o moc_seecam_11cug.cpp
/usr/lib64/qt5/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I/home/caterpillar/qtcam/src -I/home/caterpillar/qtcam/src/qtquick2applicationviewer -I/home/caterpillar/qtcam/src/v4l2headers/include -I/usr/include -I/usr/include/ffmpeg -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/c++/5.1.1 -I/usr/include/c++/5.1.1/x86_64-redhat-linux -I/usr/include/c++/5.1.1/backward -I/usr/lib/gcc/x86_64-redhat-linux/5.1.1/include -I/usr/local/include -I/usr/include seecam_cu80.h -o moc_seecam_cu80.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o moc_seecam_cu80.o moc_seecam_cu80.cpp
/usr/lib64/qt5/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I/home/caterpillar/qtcam/src -I/home/caterpillar/qtcam/src/qtquick2applicationviewer -I/home/caterpillar/qtcam/src/v4l2headers/include -I/usr/include -I/usr/include/ffmpeg -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/c++/5.1.1 -I/usr/include/c++/5.1.1/x86_64-redhat-linux -I/usr/include/c++/5.1.1/backward -I/usr/lib/gcc/x86_64-redhat-linux/5.1.1/include -I/usr/local/include -I/usr/include seecam_cu50.h -o moc_seecam_cu50.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o moc_seecam_cu50.o moc_seecam_cu50.cpp
/usr/lib64/qt5/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I/home/caterpillar/qtcam/src -I/home/caterpillar/qtcam/src/qtquick2applicationviewer -I/home/caterpillar/qtcam/src/v4l2headers/include -I/usr/include -I/usr/include/ffmpeg -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/c++/5.1.1 -I/usr/include/c++/5.1.1/x86_64-redhat-linux -I/usr/include/c++/5.1.1/backward -I/usr/lib/gcc/x86_64-redhat-linux/5.1.1/include -I/usr/local/include -I/usr/include seecam_ar0130.h -o moc_seecam_ar0130.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o moc_seecam_ar0130.o moc_seecam_ar0130.cpp
/usr/lib64/qt5/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I/home/caterpillar/qtcam/src -I/home/caterpillar/qtcam/src/qtquick2applicationviewer -I/home/caterpillar/qtcam/src/v4l2headers/include -I/usr/include -I/usr/include/ffmpeg -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/c++/5.1.1 -I/usr/include/c++/5.1.1/x86_64-redhat-linux -I/usr/include/c++/5.1.1/backward -I/usr/lib/gcc/x86_64-redhat-linux/5.1.1/include -I/usr/local/include -I/usr/include seecam_cu51.h -o moc_seecam_cu51.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o moc_seecam_cu51.o moc_seecam_cu51.cpp
/usr/lib64/qt5/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I/home/caterpillar/qtcam/src -I/home/caterpillar/qtcam/src/qtquick2applicationviewer -I/home/caterpillar/qtcam/src/v4l2headers/include -I/usr/include -I/usr/include/ffmpeg -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/c++/5.1.1 -I/usr/include/c++/5.1.1/x86_64-redhat-linux -I/usr/include/c++/5.1.1/backward -I/usr/lib/gcc/x86_64-redhat-linux/5.1.1/include -I/usr/local/include -I/usr/include see3cam_cu130.h -o moc_see3cam_cu130.cpp
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o moc_see3cam_cu130.o moc_see3cam_cu130.cpp
g++ -Wl,-O1 -Wl,-z,relro -o Qtcam main.o logger.o about.o cameraproperty.o videostreaming.o uvccamera.o v4l2-api.o seecam_10cug_m.o seecam_10cug_bayer.o seecam_11cug.o seecam_cu80.o seecam_cu50.o seecam_ar0130.o videoencoder.o seecam_cu51.o see3cam_cu130.o h264decoder.o qtquick2applicationviewer.o moc_qtquick2applicationviewer.o moc_about.o moc_cameraproperty.o moc_videostreaming.o moc_uvccamera.o moc_seecam_10cug_m.o moc_seecam_10cug_bayer.o moc_seecam_11cug.o moc_seecam_cu80.o moc_seecam_cu50.o moc_seecam_ar0130.o moc_seecam_cu51.o moc_see3cam_cu130.o   -lv4l2 -lv4lconvert -lavutil -lavcodec -lavformat -lswscale -ludev -L/usr/lib/ -lturbojpeg -lQt5Widgets -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGL -lpthread
econsysqtcam commented 8 years ago

Hi Germano, The reason behind these kind of warnings, Warning: 'AVFrame* avcodec_alloc_frame() is deprecated.

The .pro file includes "/usr/include/ffmpeg" which contains deprecated version of avcodec APIs. you may have to update your ffmpeg library set. Or if the updated one is in different directory please locate that.

On the other warnings it mostly like unused variables and signed & unsigned int comparisions. We will be fixing that in the near future releases.

econsysqtcam commented 8 years ago

Hi Germano, We have cleared all the warnings and uploaded the latest source. Please look into it.

econsysqtcam commented 8 years ago

Hi Germano, Do you had a chance to look into it?

Thanks,

Germano0 commented 8 years ago

Hello. Now with the same patches applied, I got the following errors:

$ qmake-qt5
$ make
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/libusb-1.0 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o main.o main.cpp
In file included from /usr/include/qt5/QtWidgets/QApplication:1:0,
                 from main.cpp:21:
/usr/include/qt5/QtWidgets/qapplication.h:100:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 0)
                        ^
/usr/include/qt5/QtWidgets/qapplication.h:136:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 0)
                        ^
/usr/include/qt5/QtWidgets/qapplication.h:166:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 0)
                        ^
In file included from /usr/include/qt5/QtCore/QDateTime:1:0,
                 from main.cpp:24:
/usr/include/qt5/QtCore/qdatetime.h:89:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5,0)
                        ^
/usr/include/qt5/QtCore/qdatetime.h:286:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 2)
                        ^
In file included from /usr/include/qt5/QtGui/QIcon:1:0,
                 from main.cpp:26:
/usr/include/qt5/QtGui/qicon.h:95:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 0)
                        ^
In file included from /usr/include/qt5/QtCore/QStandardPaths:1:0,
                 from main.cpp:27:
/usr/include/qt5/QtCore/qstandardpaths.h:88:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 2)
                        ^
In file included from /usr/include/qt5/QtGui/qsurface.h:38:0,
                 from /usr/include/qt5/QtGui/qwindow.h:44,
                 from /usr/include/qt5/QtQuick/qquickwindow.h:40,
                 from /usr/include/qt5/QtQuick/qquickview.h:37,
                 from /usr/include/qt5/QtQuick/QQuickView:1,
                 from qtquick2applicationviewer/qtquick2applicationviewer.h:14,
                 from main.cpp:28:
/usr/include/qt5/QtGui/qsurfaceformat.h:123:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 2)
                        ^
In file included from cameraproperty.h:40:0,
                 from main.cpp:29:
v4l2-api.h:25:27: fatal error: libv4lconvert.h: File or directory does not exist
compilation terminated.
Makefile:613: istruction set for object "main.o" failed
make: *** [main.o] Error 1
econsysqtcam commented 8 years ago

Thanks for reply germano, i would like to know what the fedora version do you use? So that i can try to build from my side.

Did you have all dependency installed in the PC?

Germano0 commented 8 years ago

Sorry, it seems that I missed some dependencies. Probably I am using a different machine compared to the one I used months ago, so some dependencies were not installed. The operating system is Fedora 23. Now I get errors

$ make
g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -O2 -Wall -W -D__STDC_CONSTANT_MACROS -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iqtquick2applicationviewer -Iv4l2headers/include -isystem /usr/include -isystem /usr/include/ffmpeg -isystem /usr/include/qt5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/libusb-1.0 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o main.o main.cpp
In file included from /usr/include/qt5/QtWidgets/QApplication:1:0,
                 from main.cpp:21:
/usr/include/qt5/QtWidgets/qapplication.h:100:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 0)
                        ^
/usr/include/qt5/QtWidgets/qapplication.h:136:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 0)
                        ^
/usr/include/qt5/QtWidgets/qapplication.h:166:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 0)
                        ^
In file included from /usr/include/qt5/QtCore/QDateTime:1:0,
                 from main.cpp:24:
/usr/include/qt5/QtCore/qdatetime.h:89:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5,0)
                        ^
/usr/include/qt5/QtCore/qdatetime.h:286:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 2)
                        ^
In file included from /usr/include/qt5/QtGui/QIcon:1:0,
                 from main.cpp:26:
/usr/include/qt5/QtGui/qicon.h:95:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 0)
                        ^
In file included from /usr/include/qt5/QtCore/QStandardPaths:1:0,
                 from main.cpp:27:
/usr/include/qt5/QtCore/qstandardpaths.h:88:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 2)
                        ^
In file included from /usr/include/qt5/QtGui/qsurface.h:38:0,
                 from /usr/include/qt5/QtGui/qwindow.h:44,
                 from /usr/include/qt5/QtQuick/qquickwindow.h:40,
                 from /usr/include/qt5/QtQuick/qquickview.h:37,
                 from /usr/include/qt5/QtQuick/QQuickView:1,
                 from qtquick2applicationviewer/qtquick2applicationviewer.h:14,
                 from main.cpp:28:
/usr/include/qt5/QtGui/qsurfaceformat.h:123:24: error: missing binary operator before token "("
 #if QT_DEPRECATED_SINCE(5, 2)
                        ^
In file included from /usr/include/qt5/QtGui/qguiapplication.h:39:0,
                 from /usr/include/qt5/QtWidgets/qapplication.h:45,
                 from /usr/include/qt5/QtWidgets/QApplication:1,
                 from main.cpp:21:
/usr/include/qt5/QtGui/qinputmethod.h:75:18: error: expected ‘;’ at end of member declaration
     Q_ENUM(Action)
                  ^
/usr/include/qt5/QtGui/qinputmethod.h:82:5: error: ‘QLocale’ does not name a type
     QLocale locale() const;
     ^
/usr/include/qt5/QtGui/qinputmethod.h:91:21: error: ‘Qt::InputMethodQueries’ has not been declared
     void update(Qt::InputMethodQueries queries);
                     ^
In file included from /usr/include/qt5/QtWidgets/qapplication.h:45:0,
                 from /usr/include/qt5/QtWidgets/QApplication:1,
                 from main.cpp:21:
/usr/include/qt5/QtGui/qguiapplication.h:85:12: error: ‘QWindowList’ does not name a type
     static QWindowList allWindows();
            ^
/usr/include/qt5/QtGui/qguiapplication.h:86:12: error: ‘QWindowList’ does not name a type
     static QWindowList topLevelWindows();
            ^
/usr/include/qt5/QtGui/qguiapplication.h:138:12: error: ‘QFunctionPointer’ does not name a type
     static QFunctionPointer platformFunction(const QByteArray &function);
            ^
/usr/include/qt5/QtGui/qguiapplication.h:143:16: error: ‘ApplicationState’ in namespace ‘Qt’ does not name a type
     static Qt::ApplicationState applicationState();
                ^
/usr/include/qt5/QtGui/qguiapplication.h:146:36: error: expected ‘;’ at end of member declaration
     bool notify(QObject *, QEvent *) Q_DECL_OVERRIDE;
                                    ^
/usr/include/qt5/QtGui/qguiapplication.h:146:38: error: ‘Q_DECL_OVERRIDE’ does not name a type
     bool notify(QObject *, QEvent *) Q_DECL_OVERRIDE;
                                      ^
/usr/include/qt5/QtGui/qguiapplication.h:164:38: error: ‘Qt::ApplicationState’ has not been declared
     void applicationStateChanged(Qt::ApplicationState state);
                                      ^
/usr/include/qt5/QtGui/qguiapplication.h:173:24: error: expected ‘;’ at end of member declaration
     bool event(QEvent *) Q_DECL_OVERRIDE;
                        ^
/usr/include/qt5/QtGui/qguiapplication.h:173:26: error: ‘Q_DECL_OVERRIDE’ does not name a type
     bool event(QEvent *) Q_DECL_OVERRIDE;
                          ^
/usr/include/qt5/QtGui/qguiapplication.h:174:69: error: expected ‘;’ at end of member declaration
     bool compressEvent(QEvent *, QObject *receiver, QPostEventList *) Q_DECL_OVERRIDE;
                                                                     ^
/usr/include/qt5/QtGui/qguiapplication.h:174:71: error: ‘Q_DECL_OVERRIDE’ does not name a type
     bool compressEvent(QEvent *, QObject *receiver, QPostEventList *) Q_DECL_OVERRIDE;
                                                                       ^
In file included from /usr/include/qt5/QtWidgets/QApplication:1:0,
                 from main.cpp:21:
/usr/include/qt5/QtWidgets/qapplication.h:65:37: error: expected initializer before ‘:’ token
 class Q_WIDGETS_EXPORT QApplication : public QGuiApplication
                                     ^
Makefile:613: istruction set for object "main.o" failed
make: *** [main.o] Error