Hi,
On Ubuntu and Debian the Qt 4 packages install a qmake-qt4, uic-qt4 and
moc-qt4 while the Qt3 packages install qmake-qt3, uic-qt3 and moc-qt3.
By default if you try to compile bat or Debian and ubuntu it will fail
because the default qmake in path is the Qt 3 version.
One method of choosing the right versions of the above utils is that
/usr/bin/(uic|moc|qmake) is a symlink to /etc/alternatives, which is
then a symlink to the above qt3 or qt4 versions. However this is a bit
nasty if you do both Qt3 and Qt4 software development because you'd have
to continually change the symlinks when you switch back and forth and
it'd break horribly etc.
A nicer fix is to simply call qmake-qt4 on the pro file in the
qt-console directory This then automatically handles uic-qt4 and moc-qt
rather than just the uic and moc in $PATH (which are the wrong Qt 3
versions by default).
I've attached a patch for configure.in which fixes it. It also errors
out if qmake isn't found. Bat now compiles out of the box on my Ubuntu
system :) I'm not an autoconf god, so there may be a more elegant way of
fixing it :)
Index: autoconf/configure.in
===================================================================
--- autoconf/configure.in (revision 5755)
+++ autoconf/configure.in (working copy)
@@ -74,6 +74,8 @@
AC_PATH_PROG(DVDRWMEDIAINFO, dvd+rw-mediainfo, dvd+rw-mediainfo)
AC_PATH_PROG(DVDRWFORMAT, dvd+rw-format, dvd+rw-format)
AC_PATH_PROG(PKGCONFIG, pkg-config, pkg-config)
+AC_PATH_PROG(QMAKE, qmake, none)
+AC_PATH_PROG(QMAKEQT4, qmake-qt4, none)
AC_ARG_VAR(WXCONFIG, [wx-config command. On some systems, you must set it to
wx-config-2.6 to use wxWidgets 2.6.])
if test "x$WXCONFIG" = x; then
WXCONFIG=wx-config
@@ -2230,10 +2232,23 @@
)
if test "${support_bat}" = "yes" ; then
+ if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
+ echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
+ exit 1
+ fi
+
+ QMAKEBIN="qmake"
+
+ if test "x$QMAKEQT4" != "xnone"; then
+ QMAKEBIN=qmake-qt4
+ fi
+
+
+
cd src/qt-console
chmod 755 install_conf_file build-depkgs-qt-console
- echo "Creating bat Makefile"
- qmake
+ echo "Creating bat Makefile"
+ $QMAKEBIN
cd ${BUILD_DIR}
fi
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel