Open Germano0 opened 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.
Hi Germano, We have cleared all the warnings and uploaded the latest source. Please look into it.
Hi Germano, Do you had a chance to look into it?
Thanks,
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
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?
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
During compilation on Fedora, with the following patches applied
I get the following make log, containing a few warnings