Hello, I'm a bit reluctant to implement this patch since it is really a fix very specific to Debian (and derivatives) all the other distributions I've seen have either qt3 or qt4 loaded for development, but not both.
In addition, the problem will go away in approximately 6 months when everyone switches to Qt4, and probably more importantly, you have a workaround using the update-alternatives. You just need to switch qmake, uic, and moc (though it is probably better to switch all the other qt4 binaries as well), and that is something that is quite easy to setup on a shell script if you plan to bounce back and forth between qt3 and qt4. Note, this change only effects the development tools, so there is no problem developing and running bat under qt4 while the system is running qt3. I just switched my Kubuntu laptop development tools to qt4 using update-alternatives and it works fin. If you *really* think this is important (your patch looks OK to me), then please fill out two copies of the FLA (www.bacula.org -> FSFE License), sign it, mail it off, and notify me at which point I'll add your patch. Regards, Kern On Thursday 18 October 2007 02:34, Chris Howells wrote: > 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 :) ------------------------------------------------------------------------- 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
