Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jul 2018 16:38:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        multimedia@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 229759] multimedia/vlc-qt4 fails to build, when qt5 is also installed
Message-ID:  <bug-229759-12827-Ap9hNj2QNA@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-229759-12827@https.bugs.freebsd.org/bugzilla/>
References:  <bug-229759-12827@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-multimedia mai=
ling
list <multimedia@FreeBSD.org> for maintainer-feedback:
Bug 229759: multimedia/vlc-qt4 fails to build, when qt5 is also installed
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229759



--- Description ---
Attempting to build vlc-qt4 kept failing with cpp-errors (this file was
generated with moc-5....) until I modified qt.mk as below to explicitly add=
 MOC
to the environment bypassing the qtchooser:

--- Uses/qt.mk	(revision 474594)
+++ Uses/qt.mk	(working copy)
@@ -118,8 +118,8 @@
 .  endfor

 # Pass the chosen Qt version to the environment for qtchooser.
-CONFIGURE_ENV+=3D		QT_SELECT=3D${_QT_RELNAME}
-MAKE_ENV+=3D		QT_SELECT=3D${_QT_RELNAME}
+CONFIGURE_ENV+=3D		QT_SELECT=3D${_QT_RELNAME} MOC=3D${MOC:Q}
+MAKE_ENV+=3D		QT_SELECT=3D${_QT_RELNAME} MOC=3D${MOC:Q}

 # Make sure both the installed mkspecs as well as the ones being built are
 # found, with the ones from the port being built having preference.


Other ports using moc (or anything else backed by qtchooser) may be affected
too -- this is not something, that would show up in a pristine build...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229759-12827-Ap9hNj2QNA>