libv4l: avoid compilation error by adding upstream patch
PATCH 1/1 libv4l: avoid compilation error by adding upstream patch
Without this patch, libv4l fails to build if qt5 is enabled:
capture-win-gl.cpp: In member function 'virtual void CaptureWinGLEngine::initializeGL()':
capture-win-gl.cpp:275:15: error: 'GL_FLAT' was not declared in this scope
glShadeModel(GL_FLAT);
^~~~~~~and more missing GL_* constants. This patch is upstream but not yet included in any release. So unitl a new version gets released, include it here.
Backported from: 4d65b0571ea0027b6de45a76cfcadca32ea4be4a
--- package/libv4l/0011-fix-compilation-with-qt.patch | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/libv4l/0011-fix-compilation-with-qt.patch
package/libv4l/0011-fix-compilation-with-qt.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 4d65b0571ea0027b6de45a76cfcadca32ea4be4a Mon Sep 17 00:00:00 2001 +From: Peter Seiderer <[email protected]> +Date: Sat, 4 Mar 2017 21:01:53 +0100 +Subject: qv4l2: fix qv4l2.pro qmake project file + +The header files v4l2-tpg.h and v4l2-tpg-colors.h moved +from v4l2-ctl to common. + +Signed-off-by: Peter Seiderer <[email protected]> +Signed-off-by: Hans Verkuil <[email protected]> + +diff --git a/utils/qv4l2/qv4l2.pro b/utils/qv4l2/qv4l2.pro +index 02b03de..6420fa2 100644 +--- a/utils/qv4l2/qv4l2.pro ++++ b/utils/qv4l2/qv4l2.pro +@@ -13,6 +13,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + QT += opengl + + INCLUDEPATH += $$PWD/../.. ++INCLUDEPATH += $$PWD/../common + INCLUDEPATH += $$PWD/../v4l2-ctl/ + INCLUDEPATH += $$PWD/../v4l2-compliance + +@@ -25,8 +26,8 @@ HEADERS += general-tab.h + HEADERS += qv4l2.h + HEADERS += raw2sliced.h + HEADERS += vbi-tab.h +-HEADERS += ../v4l2-ctl/v4l2-tpg.h +-HEADERS += ../v4l2-ctl/v4l2-tpg-colors.h ++HEADERS += ../common/v4l2-tpg.h ++HEADERS += ../common/v4l2-tpg-colors.h + HEADERS += ../../config.h + + SOURCES += capture-win.cpp +-- +cgit v0.10.2 +
Signature · 1 line
2.14.1
PATCH 1/1 libv4l: avoid compilation error by adding upstream patch
This patch does not solve the mentioned compilation breakage, please ignore.
Quoted 61 lines · Stephan Bauroth
Without this patch, libv4l fails to build if qt5 is enabled:
capture-win-gl.cpp: In member function 'virtual void
CaptureWinGLEngine::initializeGL()':
capture-win-gl.cpp:275:15: error: 'GL_FLAT' was not declared in this scopeglShadeModel(GL_FLAT); ^~~~~~~and more missing GL_* constants. This patch is upstream but not yet included in any release. So unitl a new version gets released, include it here.
Backported from:
4d65b0571ea0027b6de45a76cfcadca32ea4be4aSigned-off-by Stephan Bauroth <[email protected]>--- package/libv4l/0011-fix-compilation-with-qt.patch | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+)create mode 100644
package/libv4l/0011-fix-compilation-with-qt.patchpackage/libv4l/0011-fix-compilation-with-qt.patch new file +37
-0@@ -0,0 +1,37 @@ +From 4d65b0571ea0027b6de45a76cfcadca32ea4be4a Mon Sep 17 00:00:00 2001 +From: Peter Seiderer <[email protected]> +Date: Sat, 4 Mar 2017 21:01:53 +0100 +Subject: qv4l2: fix qv4l2.pro qmake project file + +The header files v4l2-tpg.h and v4l2-tpg-colors.h moved +from v4l2-ctl to common. + +Signed-off-by: Peter Seiderer <[email protected]> +Signed-off-by: Hans Verkuil <[email protected]> + +diff --git a/utils/qv4l2/qv4l2.pro b/utils/qv4l2/qv4l2.pro +index 02b03de..6420fa2 100644 +--- a/utils/qv4l2/qv4l2.pro ++++ b/utils/qv4l2/qv4l2.pro +@@ -13,6 +13,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + QT += opengl + + INCLUDEPATH += $$PWD/../.. ++INCLUDEPATH += $$PWD/../common + INCLUDEPATH += $$PWD/../v4l2-ctl/ + INCLUDEPATH += $$PWD/../v4l2-compliance + +@@ -25,8 +26,8 @@ HEADERS += general-tab.h + HEADERS += qv4l2.h + HEADERS += raw2sliced.h + HEADERS += vbi-tab.h +-HEADERS += ../v4l2-ctl/v4l2-tpg.h +-HEADERS += ../v4l2-ctl/v4l2-tpg-colors.h ++HEADERS += ../common/v4l2-tpg.h ++HEADERS += ../common/v4l2-tpg-colors.h + HEADERS += ../../config.h + + SOURCES += capture-win.cpp +-- +cgit v0.10.2 +
PATCH 1/1 libv4l: avoid compilation error by adding upstream patch
Hello Stephan,
Quoted 3 lines · Stephan Bauroth
This patch does not solve the mentioned compilation breakage, please ignore.
Mind to share your config/defconfig file with which you get the compilation problems (or did your solve it already)?
Regards,
Peter
Quoted 67 lines · Stephan Bauroth
Quoted 51 lines
Without this patch, libv4l fails to build if qt5 is enabled:
capture-win-gl.cpp: In member function 'virtual void
CaptureWinGLEngine::initializeGL()':
capture-win-gl.cpp:275:15: error: 'GL_FLAT' was not declared in this scopeglShadeModel(GL_FLAT); ^~~~~~~and more missing GL_* constants. This patch is upstream but not yet included in any release. So unitl a new version gets released, include it here.
Backported from:
4d65b0571ea0027b6de45a76cfcadca32ea4be4aSigned-off-by Stephan Bauroth <[email protected]>--- package/libv4l/0011-fix-compilation-with-qt.patch | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+)create mode 100644
package/libv4l/0011-fix-compilation-with-qt.patchpackage/libv4l/0011-fix-compilation-with-qt.patch new file +27
-0@@ -0,0 +1,37 @@ +From 4d65b0571ea0027b6de45a76cfcadca32ea4be4a Mon Sep 17 00:00:00 2001 +From: Peter Seiderer <[email protected]> +Date: Sat, 4 Mar 2017 21:01:53 +0100 +Subject: qv4l2: fix qv4l2.pro qmake project file + +The header files v4l2-tpg.h and v4l2-tpg-colors.h moved +from v4l2-ctl to common. + +Signed-off-by: Peter Seiderer <[email protected]> +Signed-off-by: Hans Verkuil <[email protected]> + +diff --git a/utils/qv4l2/qv4l2.pro b/utils/qv4l2/qv4l2.pro +index 02b03de..6420fa2 100644 +--- a/utils/qv4l2/qv4l2.pro ++++ b/utils/qv4l2/qv4l2.pro +@@ -13,6 +13,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + QT += opengl + + INCLUDEPATH += $$PWD/../.. ++INCLUDEPATH += $$PWD/../common + INCLUDEPATH += $$PWD/../v4l2-ctl/ + INCLUDEPATH += $$PWD/../v4l2-compliance + +@@ -25,8 +26,8 @@ HEADERS += general-tab.h + HEADERS += qv4l2.h + HEADERS += raw2sliced.h + HEADERS += vbi-tab.hpackage/libv4l/0011-fix-compilation-with-qt.patch line 37
Quoted 10 lines
package/libv4l/0011-fix-compilation-with-qt.patch new file +10
-0+-HEADERS += ../v4l2-ctl/v4l2-tpg.h +-HEADERS += ../v4l2-ctl/v4l2-tpg-colors.h ++HEADERS += ../common/v4l2-tpg.h ++HEADERS += ../common/v4l2-tpg-colors.h + HEADERS += ../../config.h + + SOURCES += capture-win.cpp +-- +cgit v0.10.2 +_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot