[vlc-devel] [PATCH 3.0 17/41] contrib: qt: fix pathes of private header on Msys2

Steve Lhomme robux4 at ycbcr.xyz
Tue Jul 7 15:11:16 CEST 2020


For some reason gcc can't use the "" pathes relative to the headers they are
defined in. It may be because pathes are too long.

(cherry picked from commit 2eaadaa8fea94c759a709e473a53a68abf503701)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
---
 contrib/src/qt/rules.mak | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/contrib/src/qt/rules.mak b/contrib/src/qt/rules.mak
index 0c393b00bf..e26a537de2 100644
--- a/contrib/src/qt/rules.mak
+++ b/contrib/src/qt/rules.mak
@@ -33,6 +33,10 @@ ifdef HAVE_WIN32
 ifndef HAVE_WIN64
 	$(APPLY) $(SRC)/qt/0001-disable-qt_random_cpu.patch
 endif
+ifndef HAVE_CROSS_COMPILE
+	cd qt-$(QT_VERSION_FULL); for i in QtFontDatabaseSupport QtWindowsUIAutomationSupport QtEventDispatcherSupport QtCore; do \
+		sed -i -e 's,"../../../../../src,"../src,g' include/$$i/$(QT_VERSION)/$$i/private/*.h; done
+endif
 endif
 	$(MOVE)
 
-- 
2.26.2



More information about the vlc-devel mailing list