Re: [Bacula-users] [Bacula-devel] finding qt for Bat on FreeBSD

2007-08-16 Thread Kern Sibbald

The SVN has a corrected version of configure (and autoconf/configure.in) that 
should correct some (maybe all) of the problems that you are seeing.  The 
corrected configure creates the bat Makefile before doing the dependencies.

Regards,

Kern

On Tuesday 14 August 2007 19:09, Dan Langille wrote:
 On 14 Aug 2007 at 17:43, Allan Black wrote:
   On 14 Aug 2007 at 9:35, Kern Sibbald wrote:
   On Monday 13 August 2007 23:50, Dan Langille wrote:
   Does this error mean anything to anyone?
  
   ==Entering directory /usr/home/dan/src/bacula-bat/work/bacula-
   2.2.0/src/qt-console
   make: don't know how to make depend. Stop
   *** Error code 1
  
   You apparently don't have qmake on your path or some similar problem.
 
  This happens because there's no Makefile in src/qt-console at the time
  make depend is run. Here's the output I get - notice that the Makefile
  for bat is created after the make depends are run. If you run the
  configure command a second time, it'll work.

 Yep, I had noticed that src/qt-console/Makefile did not yet exist.  I
 think that's a fault in the build system.  The qmake needs to be run
 before the make depends.  I'll look into that later.

 For now, I have managed to get the Makefile create.  I'm now using
 these FreeBSD ports tree directives:

 USE_QT_VER=4
 QT_COMPONENTS=qmake
 QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++

 My results from building are below.  I'm making progress

  Allan
 
  Doing make of dependencies
  ==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src
  ==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/scripts
  ==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src/lib
  ==Entering directory
  /export/home/allan/src/Bacula/bacula-2.2.0/src/findlib ==Entering
  directory /export/home/allan/src/Bacula/bacula-2.2.0/src/filed
  ==Entering directory
  /export/home/allan/src/Bacula/bacula-2.2.0/src/qt-console make: Fatal
  error: Don't know how to make target `depend'
  Current working directory
  /export/home/allan/src/Bacula/bacula-2.2.0/src/qt-console *** Error code
  1
  The following command caused the error:
  for I in src scripts src/lib src/findlib src/filed  src/qt-console
  src/gnome2-console src/tray-monitor   src/console src/cats src/dird
  src/stored src/tools manpages; \ do (cd $I; echo ==Entering directory
  `pwd`; make DESTDIR= depend || exit 1); done make: Fatal error: Command
  failed for target `depend'
  Creating bat Makefile

 Full text of my build is here:

http://www.langille.org/tmp/bacula-bat-compile1.txt

 Notable errors are:

 ==Entering directory
 /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/findlib
 ==Entering directory
 /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-console
 make: don't know how to make depend. Stop
 *** Error code 1

 Stop in /usr/home/dan/src/bacula-bat/work/bacula-2.2.0.
 Creating bat Makefile
 WARNING: Found potential symbol conflict of main.cpp (main.cpp) in
 SOURCES
 WARNING: Found potential symbol conflict of label.cpp
 (label/label.cpp) in
 SOURCES
 WARNING: Found potential symbol conflict of label.h (label/label.h)
 in
 HEADERS
 WARNING: Found potential symbol conflict of relabel.cpp
 (relabel/relabel.cpp) in SOURCES

 ... etc...

 ranlib libfind.a
  Make of findlib is good 

 ==Entering directory
 /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-console
 /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-
 console/Makefile,
 /line 826: warning: duplicate script for target obj/main.o ignored

 ... etc...

 Error processing project file:
 /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-
 console/obj/bat.pro
 *** Error code 2

 Stop in /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-
 console.

-
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-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] finding qt for Bat on FreeBSD

2007-08-16 Thread Dan Langille
On 16 Aug 2007 at 8:57, Silver Salonen wrote:

 On Tuesday 14 August 2007 20:09, Dan Langille wrote:
  On 14 Aug 2007 at 17:43, Allan Black wrote:
  
On 14 Aug 2007 at 9:35, Kern Sibbald wrote:
On Monday 13 August 2007 23:50, Dan Langille wrote:
Does this error mean anything to anyone?
   
==Entering directory /usr/home/dan/src/bacula-bat/work/bacula-
2.2.0/src/qt-console
make: don't know how to make depend. Stop
*** Error code 1
You apparently don't have qmake on your path or some similar problem. 
   
   This happens because there's no Makefile in src/qt-console at the time
   make depend is run. Here's the output I get - notice that the Makefile
   for bat is created after the make depends are run. If you run the
   configure command a second time, it'll work.
  
  Yep, I had noticed that src/qt-console/Makefile did not yet exist.  I 
  think that's a fault in the build system.  The qmake needs to be run 
  before the make depends.  I'll look into that later.
  
  For now, I have managed to get the Makefile create.  I'm now using 
  these FreeBSD ports tree directives:
  
  USE_QT_VER=4
  QT_COMPONENTS=qmake
  QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
  
  My results from building are below.  I'm making progress
   
   Allan
   
   Doing make of dependencies
   ==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src
   ==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/scripts
   ==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src/lib
   ==Entering 
 directory /export/home/allan/src/Bacula/bacula-2.2.0/src/findlib
   ==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src/filed
   ==Entering 
 directory /export/home/allan/src/Bacula/bacula-2.2.0/src/qt-console
   make: Fatal error: Don't know how to make target `depend'
   Current working 
 directory /export/home/allan/src/Bacula/bacula-2.2.0/src/qt-console
   *** Error code 1
   The following command caused the error:
   for I in src scripts src/lib src/findlib src/filed  src/qt-console 
 src/gnome2-console src/tray-monitor   src/console src/cats src/dird 
 src/stored src/tools manpages; \
 do (cd $I; echo ==Entering directory `pwd`; make DESTDIR= depend || 
 exit 1); done
   make: Fatal error: Command failed for target `depend'
   Creating bat Makefile
  
  Full text of my build is here:
  
 http://www.langille.org/tmp/bacula-bat-compile1.txt
  
  Notable errors are:
  
  ==Entering directory
  /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/findlib
  ==Entering directory
  /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-console
  make: don't know how to make depend. Stop
  *** Error code 1
  
  Stop in /usr/home/dan/src/bacula-bat/work/bacula-2.2.0.
  Creating bat Makefile
  WARNING: Found potential symbol conflict of main.cpp (main.cpp) in 
  SOURCES
  WARNING: Found potential symbol conflict of label.cpp 
  (label/label.cpp) in
  SOURCES
  WARNING: Found potential symbol conflict of label.h (label/label.h) 
  in
  HEADERS
  WARNING: Found potential symbol conflict of relabel.cpp
  (relabel/relabel.cpp) in SOURCES
  
  ... etc...
  
  ranlib libfind.a
   Make of findlib is good 
  
  ==Entering directory
  /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-console
  /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-
  console/Makefile,
  /line 826: warning: duplicate script for target obj/main.o ignored
  
  ... etc...
  
  Error processing project file:
  /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-
  console/obj/bat.pro
  *** Error code 2
  
  Stop in /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-
  console.
 
 Hi Dan!
 
 Did you get Bat compiling?

No.

 I see that today bacula-server port on FreeBSD was updated to 2.2.0,
 but there's no option for enabling Bat. Will it be there at some point
 in the future or what's the deal with it? 

I'm working on sysutils/bacula-bat, but still can't get bat to 
compile.

-- 
Dan Langille - http://www.langille.org/
Available for hire: http://www.freebsddiary.org/dan_langille.php



-
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-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] finding qt for Bat on FreeBSD

2007-08-16 Thread Dan Langille
On 16 Aug 2007 at 11:35, Kern Sibbald wrote:

 
 The SVN has a corrected version of configure (and autoconf/configure.in) that 
 should correct some (maybe all) of the problems that you are seeing.  The 
 corrected configure creates the bat Makefile before doing the dependencies.

The latest results of the build are here:

   http://www.langille.org/tmp/bat-build.5363.txt
   http://www.langille.org/tmp/bat-build-Makefile.5363.txt

I've got to think that the WARNINGS need to be repaird, but don't 
know how to do that.

-- 
Dan Langille - http://www.langille.org/
Available for hire: http://www.freebsddiary.org/dan_langille.php



-
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-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] finding qt for Bat on FreeBSD

2007-08-16 Thread Kern Sibbald
On Thursday 16 August 2007 22:56, Dan Langille wrote:
 On 16 Aug 2007 at 11:35, Kern Sibbald wrote:
  The SVN has a corrected version of configure (and autoconf/configure.in)
  that should correct some (maybe all) of the problems that you are seeing.
   The corrected configure creates the bat Makefile before doing the
  dependencies.

 The latest results of the build are here:

http://www.langille.org/tmp/bat-build.5363.txt
http://www.langille.org/tmp/bat-build-Makefile.5363.txt

 I've got to think that the WARNINGS need to be repaird, but don't
 know how to do that.

You definitely have a problem.  

Since your ./configure command is not shown, I cannot be 100% sure, but from 
looking at the Makefile (a real mess for the INCDIR), I would guess that you 
specified some path on the ./configure as a relative path, which doesn't 
stand a chance of working.  All paths specified on the ./configure should be 
absolute paths.  If you are lucky, some *might* work, but they definitely 
will not work for the --with-qwt= option.

If that is not the problem, about the only other thing I can think of is that 
your path does not include all the Qt4 tools, or less likely the mkspec file 
or directory is not where Qt expects it to be.  Life will certainly be *much* 
simpler once KDE 4 is released (shortly) and available in distros (awhile I 
imagine).

Regards,

Kern

-
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-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] finding qt for Bat on FreeBSD

2007-08-16 Thread Dan Langille
On 16 Aug 2007 at 23:20, Kern Sibbald wrote:

 On Thursday 16 August 2007 22:56, Dan Langille wrote:
  On 16 Aug 2007 at 11:35, Kern Sibbald wrote:
   The SVN has a corrected version of configure (and autoconf/configure.in)
   that should correct some (maybe all) of the problems that you are seeing.
The corrected configure creates the bat Makefile before doing the
   dependencies.
 
  The latest results of the build are here:
 
 http://www.langille.org/tmp/bat-build.5363.txt
 http://www.langille.org/tmp/bat-build-Makefile.5363.txt
 
  I've got to think that the WARNINGS need to be repaird, but don't
  know how to do that.
 
 You definitely have a problem.  
 
 Since your ./configure command is not shown, I cannot be 100% sure, but from 
 looking at the Makefile (a real mess for the INCDIR), I would guess that you 
 specified some path on the ./configure as a relative path, which doesn't 
 stand a chance of working.  All paths specified on the ./configure should be 
 absolute paths.  If you are lucky, some *might* work, but they definitely 
 will not work for the --with-qwt= option.
 
 If that is not the problem, about the only other thing I can think of is that 
 your path does not include all the Qt4 tools, or less likely the mkspec file 
 or directory is not where Qt expects it to be.  Life will certainly be *much* 
 simpler once KDE 4 is released (shortly) and available in distros (awhile I 
 imagine).

Does this help?

[EMAIL PROTECTED]:/home/dan/src/bacula-bat] # make -V CONFIGURE_ARGS
--with-tcp-wrappers=/usr/lib  --enable-smartalloc  --with-working-
dir=/var/db/bacula  --with-scriptdir=/usr/local/share/bacula  --with-
readline=yes  --disable-conio  --enable-batch-insert --with-dir-
user=bacula  --with-dir-group=bacula  --with-sd-user=bacula  --with-
sd-group=operator --with-qt-includes=/usr/local/include  --with-qt-
libraries=/usr/local/lib  --with-extra-libs=/usr/local/lib  --with-
extra-includes=/usr/local/include --enable-nls --with-sqlite3=yes --
with-openssl --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} i386-portbld-
freebsd6.2 --enable-bat  --with-qwt=/usr/local/lib  --disable-build-
dird  --disable-build-stored
[EMAIL PROTECTED]:/home/dan/src/bacula-bat] #

-- 
Dan Langille - http://www.langille.org/
Available for hire: http://www.freebsddiary.org/dan_langille.php



-
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-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] finding qt for Bat on FreeBSD

2007-08-15 Thread Silver Salonen
On Tuesday 14 August 2007 20:09, Dan Langille wrote:
 On 14 Aug 2007 at 17:43, Allan Black wrote:
 
   On 14 Aug 2007 at 9:35, Kern Sibbald wrote:
   On Monday 13 August 2007 23:50, Dan Langille wrote:
   Does this error mean anything to anyone?
  
   ==Entering directory /usr/home/dan/src/bacula-bat/work/bacula-
   2.2.0/src/qt-console
   make: don't know how to make depend. Stop
   *** Error code 1
   You apparently don't have qmake on your path or some similar problem. 
  
  This happens because there's no Makefile in src/qt-console at the time
  make depend is run. Here's the output I get - notice that the Makefile
  for bat is created after the make depends are run. If you run the
  configure command a second time, it'll work.
 
 Yep, I had noticed that src/qt-console/Makefile did not yet exist.  I 
 think that's a fault in the build system.  The qmake needs to be run 
 before the make depends.  I'll look into that later.
 
 For now, I have managed to get the Makefile create.  I'm now using 
 these FreeBSD ports tree directives:
 
 USE_QT_VER=4
 QT_COMPONENTS=qmake
 QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
 
 My results from building are below.  I'm making progress
  
  Allan
  
  Doing make of dependencies
  ==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src
  ==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/scripts
  ==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src/lib
  ==Entering 
directory /export/home/allan/src/Bacula/bacula-2.2.0/src/findlib
  ==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src/filed
  ==Entering 
directory /export/home/allan/src/Bacula/bacula-2.2.0/src/qt-console
  make: Fatal error: Don't know how to make target `depend'
  Current working 
directory /export/home/allan/src/Bacula/bacula-2.2.0/src/qt-console
  *** Error code 1
  The following command caused the error:
  for I in src scripts src/lib src/findlib src/filed  src/qt-console 
src/gnome2-console src/tray-monitor   src/console src/cats src/dird 
src/stored src/tools manpages; \
do (cd $I; echo ==Entering directory `pwd`; make DESTDIR= depend || 
exit 1); done
  make: Fatal error: Command failed for target `depend'
  Creating bat Makefile
 
 Full text of my build is here:
 
http://www.langille.org/tmp/bacula-bat-compile1.txt
 
 Notable errors are:
 
 ==Entering directory
 /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/findlib
 ==Entering directory
 /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-console
 make: don't know how to make depend. Stop
 *** Error code 1
 
 Stop in /usr/home/dan/src/bacula-bat/work/bacula-2.2.0.
 Creating bat Makefile
 WARNING: Found potential symbol conflict of main.cpp (main.cpp) in 
 SOURCES
 WARNING: Found potential symbol conflict of label.cpp 
 (label/label.cpp) in
 SOURCES
 WARNING: Found potential symbol conflict of label.h (label/label.h) 
 in
 HEADERS
 WARNING: Found potential symbol conflict of relabel.cpp
 (relabel/relabel.cpp) in SOURCES
 
 ... etc...
 
 ranlib libfind.a
  Make of findlib is good 
 
 ==Entering directory
 /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-console
 /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-
 console/Makefile,
 /line 826: warning: duplicate script for target obj/main.o ignored
 
 ... etc...
 
 Error processing project file:
 /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-
 console/obj/bat.pro
 *** Error code 2
 
 Stop in /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-
 console.

Hi Dan!

Did you get Bat compiling? I see that today bacula-server port on FreeBSD was 
updated to 2.2.0, but there's no option for enabling Bat. Will it be there at 
some point in the future or what's the deal with it?

-- 
Silver

-
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-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] finding qt for Bat on FreeBSD

2007-08-14 Thread Kern Sibbald
On Monday 13 August 2007 23:50, Dan Langille wrote:
 On 13 Aug 2007 at 20:06, Martin Simmons wrote:
   On Mon, 13 Aug 2007 13:37:28 -0400, Dan Langille said:
  
   I'm trying to build Bat on FreeBSD.  What configure options did you
   use?  I have:
  
   --enable-bat
   --with-qwt=/usr/lib

 Offlist, and I discovered myself, that this needs to be
 /usr/local/lib

   I have qt4-4.3.0 installed.
 
  Note:  (equal qt qwt)  =  nil

 Thanks.  Fixed. I'm now using qwt, not qt.  cheers.


 Does this error mean anything to anyone?

 ==Entering directory /usr/home/dan/src/bacula-bat/work/bacula-
 2.2.0/src/qt-console
 make: don't know how to make depend. Stop
 *** Error code 1

You apparently don't have qmake on your path or some similar problem.  On my 
system, it does the following during the ./configure process:

make[1]: Entering directory `/home/kern/bacula/k/src/qt-console'
/usr/lib/qt4/bin/qmake -unix -o Makefile bat.pro

Note, I did have problems building initially when I first hadn't loaded qt4, 
because have qt3 loaded on my system so that KDE works.  The shell found 
qmake (version 3) in /usr/bin/qmake, and of course the build failed.  Worse, 
once I corrected the problem (loaded the Qt4 libaries), the silly shell had 
cached the location of qmake, and not remembering off the top of my head how 
to rehash, I simply symbolically linked the /usr/bin/qmake (or what ever the 
path was) to the qt4 version.

I think I added notes to the document on this, probably not as explicitly as 
above, but at least the steps I had to take.


 Stop in /usr/home/dan/src/bacula-bat/work/bacula-2.2.0.
 Creating bat Makefile
 QMAKESPEC has not been set, so configuration cannot be deduced.
 Error processing project file: /usr/home/dan/src/bacula-
 bat/work/bacula-2.2.0/src/qt-console/bat.pro

One slightly frustrating aspect of this project is that when I started it in 
January, Qt4 was released, but KDE was still on Qt3, which means that most 
machines with Qt loaded will have Qt3 rather than Qt4.  In looking at the 
time lines, I read that KDE 4.x would be released by June 2007, which fit 
quite well with the bat schedule.

The problem is that we are now in August, bat is released, and no major 
distribution is yet running KDE 4.  Some distros like OpenSUSE have Qt4 
installed by default, but I believe that is the exception.  It *is* possible 
to build bat on OpenSUSE, Fedora 7, CentOS, and Ubuntu -- I have tried them 
all.  Some take more or less work to get things straight as they have not all 
worked out the subtle details of switching from Qt3 to Qt4, and in a few such 
as CentOS, the qwt libraries are not available as a distro package.

To resolve all these problems, I've provided a depkgs-qt package that has both 
Qt4 and qwt.  The instructions (see the package README) show you how to use 
either just qwt or both qt4 and qwt.  Bottom line, if you have too many 
problems, just use the code in depkgs-qt.  

I don't regret our decision to use Qt4 for bat in the least because for a 
program like bat, it would be a major effort to upgrade from qt3 to qt4, but 
there are these early adopter problems.

Best regards,

Kern

-
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-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] finding qt for Bat on FreeBSD

2007-08-14 Thread Dan Langille
On 14 Aug 2007 at 9:35, Kern Sibbald wrote:

 On Monday 13 August 2007 23:50, Dan Langille wrote:
  On 13 Aug 2007 at 20:06, Martin Simmons wrote:
On Mon, 13 Aug 2007 13:37:28 -0400, Dan Langille said:
   
I'm trying to build Bat on FreeBSD.  What configure options did you
use?  I have:
   
--enable-bat
--with-qwt=/usr/lib
 
  Offlist, and I discovered myself, that this needs to be
  /usr/local/lib
 
I have qt4-4.3.0 installed.
  
   Note:  (equal qt qwt)  =  nil
 
  Thanks.  Fixed. I'm now using qwt, not qt.  cheers.
 
 
  Does this error mean anything to anyone?
 
  ==Entering directory /usr/home/dan/src/bacula-bat/work/bacula-
  2.2.0/src/qt-console
  make: don't know how to make depend. Stop
  *** Error code 1
 
 You apparently don't have qmake on your path or some similar problem. 

It's there:

[EMAIL PROTECTED]:~] $ which qmake
/usr/local/bin/qmake
[EMAIL PROTECTED]:~] $ qmake -v
Qmake version: 1.07a (Qt 3.3.8)
Qmake is free software from Trolltech ASA.
[EMAIL PROTECTED]:~] $

As well as:


[EMAIL PROTECTED]:~] $ qmake-qt4 -v
QMake version 2.01a
Using Qt version 4.3.0 in /usr/local/lib
[EMAIL PROTECTED]:~] 

I think I now need to know how to specify the use of qmake-qt4 
instead of qmake.   This needs to be done within the confines of the 
FreeBSD ports build system.


  On my system, it does the following during the ./configure process: 
 
 make[1]: Entering directory `/home/kern/bacula/k/src/qt-console'
 /usr/lib/qt4/bin/qmake -unix -o Makefile bat.pro

That's good.  Especially when reading this:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-
handbook/using-kde.html#QT-ADDITIONAL

 Note, I did have problems building initially when I first hadn't loaded qt4, 
 because have qt3 loaded on my system so that KDE works.  The shell found 
 qmake (version 3) in /usr/bin/qmake, and of course the build failed.  Worse, 
 once I corrected the problem (loaded the Qt4 libaries), the silly shell had 
 cached the location of qmake, and not remembering off the top of my head how 
 to rehash, I simply symbolically linked the /usr/bin/qmake (or what ever the 
 path was) to the qt4 version.

 I think I added notes to the document on this, probably not as explicitly as 
 above, but at least the steps I had to take.
 
 
  Stop in /usr/home/dan/src/bacula-bat/work/bacula-2.2.0.
  Creating bat Makefile
  QMAKESPEC has not been set, so configuration cannot be deduced.
  Error processing project file: /usr/home/dan/src/bacula-
  bat/work/bacula-2.2.0/src/qt-console/bat.pro
 
 One slightly frustrating aspect of this project is that when I started it in 
 January, Qt4 was released, but KDE was still on Qt3, which means that most 
 machines with Qt loaded will have Qt3 rather than Qt4.  In looking at the 
 time lines, I read that KDE 4.x would be released by June 2007, which fit 
 quite well with the bat schedule.

KDE4 is It's still in BETA.  I'm on KDE 3.5.7

-- 
Dan Langille - http://www.langille.org/
Available for hire: http://www.freebsddiary.org/dan_langille.php



-
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-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] finding qt for Bat on FreeBSD

2007-08-14 Thread Dan Langille
On 14 Aug 2007 at 10:58, Dan Langille wrote:

 On 14 Aug 2007 at 9:35, Kern Sibbald wrote:
 
  On Monday 13 August 2007 23:50, Dan Langille wrote:
   On 13 Aug 2007 at 20:06, Martin Simmons wrote:
 On Mon, 13 Aug 2007 13:37:28 -0400, Dan Langille said:

 I'm trying to build Bat on FreeBSD.  What configure options did you
 use?  I have:

 --enable-bat
 --with-qwt=/usr/lib
  
   Offlist, and I discovered myself, that this needs to be
   /usr/local/lib
  
 I have qt4-4.3.0 installed.
   
Note:  (equal qt qwt)  =  nil
  
   Thanks.  Fixed. I'm now using qwt, not qt.  cheers.
  
  
   Does this error mean anything to anyone?
  
   ==Entering directory /usr/home/dan/src/bacula-bat/work/bacula-
   2.2.0/src/qt-console
   make: don't know how to make depend. Stop
   *** Error code 1
  
  You apparently don't have qmake on your path or some similar problem. 
 
 It's there:
 
 [EMAIL PROTECTED]:~] $ which qmake
 /usr/local/bin/qmake
 [EMAIL PROTECTED]:~] $ qmake -v
 Qmake version: 1.07a (Qt 3.3.8)
 Qmake is free software from Trolltech ASA.
 [EMAIL PROTECTED]:~] $
 
 As well as:
 
 
 [EMAIL PROTECTED]:~] $ qmake-qt4 -v
 QMake version 2.01a
 Using Qt version 4.3.0 in /usr/local/lib
 [EMAIL PROTECTED]:~] 
 
 I think I now need to know how to specify the use of qmake-qt4 
 instead of qmake.   This needs to be done within the confines of the 
 FreeBSD ports build system.
 
 
   On my system, it does the following during the ./configure process: 
  
  make[1]: Entering directory `/home/kern/bacula/k/src/qt-console'
  /usr/lib/qt4/bin/qmake -unix -o Makefile bat.pro

Just an update.. Still working on this. I tried similar:

[EMAIL PROTECTED]:/usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-
console] # qmake-qt4 -unix -o Makefile bat.pro
QMAKESPEC has not been set, so configuration cannot be deduced.
Error processing project file: bat.pro



 
 That's good.  Especially when reading this:
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-
 handbook/using-kde.html#QT-ADDITIONAL
 
  Note, I did have problems building initially when I first hadn't loaded 
  qt4, 
  because have qt3 loaded on my system so that KDE works.  The shell found 
  qmake (version 3) in /usr/bin/qmake, and of course the build failed.  
  Worse, 
  once I corrected the problem (loaded the Qt4 libaries), the silly shell had 
  cached the location of qmake, and not remembering off the top of my head 
  how 
  to rehash, I simply symbolically linked the /usr/bin/qmake (or what ever 
  the 
  path was) to the qt4 version.
 
  I think I added notes to the document on this, probably not as explicitly 
  as 
  above, but at least the steps I had to take.
  
  
   Stop in /usr/home/dan/src/bacula-bat/work/bacula-2.2.0.
   Creating bat Makefile
   QMAKESPEC has not been set, so configuration cannot be deduced.
   Error processing project file: /usr/home/dan/src/bacula-
   bat/work/bacula-2.2.0/src/qt-console/bat.pro
  
  One slightly frustrating aspect of this project is that when I started it 
  in 
  January, Qt4 was released, but KDE was still on Qt3, which means that most 
  machines with Qt loaded will have Qt3 rather than Qt4.  In looking at the 
  time lines, I read that KDE 4.x would be released by June 2007, which fit 
  quite well with the bat schedule.
 
 KDE4 is It's still in BETA.  I'm on KDE 3.5.7
 
 -- 
 Dan Langille - http://www.langille.org/
 Available for hire: http://www.freebsddiary.org/dan_langille.php
 
 
 
 -
 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
 
 


-- 
Dan Langille - http://www.langille.org/
Available for hire: http://www.freebsddiary.org/dan_langille.php



-
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-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] finding qt for Bat on FreeBSD

2007-08-14 Thread Allan Black
 On 14 Aug 2007 at 9:35, Kern Sibbald wrote:
 On Monday 13 August 2007 23:50, Dan Langille wrote:
 Does this error mean anything to anyone?

 ==Entering directory /usr/home/dan/src/bacula-bat/work/bacula-
 2.2.0/src/qt-console
 make: don't know how to make depend. Stop
 *** Error code 1
 You apparently don't have qmake on your path or some similar problem. 

This happens because there's no Makefile in src/qt-console at the time
make depend is run. Here's the output I get - notice that the Makefile
for bat is created after the make depends are run. If you run the
configure command a second time, it'll work.

Allan

Doing make of dependencies
==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src
==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/scripts
==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src/lib
==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src/findlib
==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src/filed
==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src/qt-console
make: Fatal error: Don't know how to make target `depend'
Current working directory 
/export/home/allan/src/Bacula/bacula-2.2.0/src/qt-console
*** Error code 1
The following command caused the error:
for I in src scripts src/lib src/findlib src/filed  src/qt-console 
src/gnome2-console src/tray-monitor   src/console src/cats src/dird src/stored 
src/tools manpages; \
  do (cd $I; echo ==Entering directory `pwd`; make DESTDIR= depend || exit 
1); done
make: Fatal error: Command failed for target `depend'
Creating bat Makefile

-
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-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] finding qt for Bat on FreeBSD

2007-08-14 Thread Dan Langille
On 14 Aug 2007 at 17:43, Allan Black wrote:

  On 14 Aug 2007 at 9:35, Kern Sibbald wrote:
  On Monday 13 August 2007 23:50, Dan Langille wrote:
  Does this error mean anything to anyone?
 
  ==Entering directory /usr/home/dan/src/bacula-bat/work/bacula-
  2.2.0/src/qt-console
  make: don't know how to make depend. Stop
  *** Error code 1
  You apparently don't have qmake on your path or some similar problem. 
 
 This happens because there's no Makefile in src/qt-console at the time
 make depend is run. Here's the output I get - notice that the Makefile
 for bat is created after the make depends are run. If you run the
 configure command a second time, it'll work.

Yep, I had noticed that src/qt-console/Makefile did not yet exist.  I 
think that's a fault in the build system.  The qmake needs to be run 
before the make depends.  I'll look into that later.

For now, I have managed to get the Makefile create.  I'm now using 
these FreeBSD ports tree directives:

USE_QT_VER=4
QT_COMPONENTS=qmake
QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++

My results from building are below.  I'm making progress
 
 Allan
 
 Doing make of dependencies
 ==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src
 ==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/scripts
 ==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src/lib
 ==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src/findlib
 ==Entering directory /export/home/allan/src/Bacula/bacula-2.2.0/src/filed
 ==Entering directory 
 /export/home/allan/src/Bacula/bacula-2.2.0/src/qt-console
 make: Fatal error: Don't know how to make target `depend'
 Current working directory 
 /export/home/allan/src/Bacula/bacula-2.2.0/src/qt-console
 *** Error code 1
 The following command caused the error:
 for I in src scripts src/lib src/findlib src/filed  src/qt-console 
 src/gnome2-console src/tray-monitor   src/console src/cats src/dird 
 src/stored src/tools manpages; \
   do (cd $I; echo ==Entering directory `pwd`; make DESTDIR= depend || exit 
 1); done
 make: Fatal error: Command failed for target `depend'
 Creating bat Makefile

Full text of my build is here:

   http://www.langille.org/tmp/bacula-bat-compile1.txt

Notable errors are:

==Entering directory
/usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/findlib
==Entering directory
/usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-console
make: don't know how to make depend. Stop
*** Error code 1

Stop in /usr/home/dan/src/bacula-bat/work/bacula-2.2.0.
Creating bat Makefile
WARNING: Found potential symbol conflict of main.cpp (main.cpp) in 
SOURCES
WARNING: Found potential symbol conflict of label.cpp 
(label/label.cpp) in
SOURCES
WARNING: Found potential symbol conflict of label.h (label/label.h) 
in
HEADERS
WARNING: Found potential symbol conflict of relabel.cpp
(relabel/relabel.cpp) in SOURCES

... etc...

ranlib libfind.a
 Make of findlib is good 

==Entering directory
/usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-console
/usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-
console/Makefile,
/line 826: warning: duplicate script for target obj/main.o ignored

... etc...

Error processing project file:
/usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-
console/obj/bat.pro
*** Error code 2

Stop in /usr/home/dan/src/bacula-bat/work/bacula-2.2.0/src/qt-
console.



-- 
Dan Langille - http://www.langille.org/
Available for hire: http://www.freebsddiary.org/dan_langille.php



-
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-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] finding qt for Bat on FreeBSD

2007-08-14 Thread Michael Nelson
Michael Brennen wrote:
 I finally worked out compiling bat on my Centos4 system with a couple of 
 exports to the depkgs-qt compiled locally.  Perhaps this will be of use to 
 someone.

   


It certainly was to me on my CentOS 4.5 system.  Until I changed the 
PATH and PKG_CONFIG_PATH as you showed, I had previously spent a whole 
lot of hours trying to get bacula's configure to find the depkgs 
installed qt4.

Thanks much!

Michael

-- 
Do you think that when someone asked George Washington for ID he just
whipped out a quarter? - Steven Wright


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-
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-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] finding qt for Bat on FreeBSD

2007-08-13 Thread Martin Simmons
 On Mon, 13 Aug 2007 13:37:28 -0400, Dan Langille said:
 
 I'm trying to build Bat on FreeBSD.  What configure options did you 
 use?  I have:
 
 --enable-bat
 --with-qwt=/usr/lib
 
 
 I have qt4-4.3.0 installed.

Note:  (equal qt qwt)  =  nil

__Martin

-
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-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] finding qt for Bat on FreeBSD

2007-08-13 Thread Kern Sibbald
On Monday 13 August 2007 21:06, Martin Simmons wrote:
  On Mon, 13 Aug 2007 13:37:28 -0400, Dan Langille said:
 
  I'm trying to build Bat on FreeBSD.  What configure options did you
  use?  I have:
 
  --enable-bat
  --with-qwt=/usr/lib
 
 
  I have qt4-4.3.0 installed.

 Note:  (equal qt qwt)  =  nil

Which translated Lispian to Computerese means that the qwt package is 
different from the qt libraries.  You most likely do not have qwt loaded on 
your system.  See the --with-qwt section of the Install chapter of the manual 
for more details (possibly the README of the src/qt-console file has 
something too).




 __Martin

 -
 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

-
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-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] finding qt for Bat on FreeBSD

2007-08-13 Thread Dan Langille
On 13 Aug 2007 at 20:06, Martin Simmons wrote:

  On Mon, 13 Aug 2007 13:37:28 -0400, Dan Langille said:
  
  I'm trying to build Bat on FreeBSD.  What configure options did you 
  use?  I have:
  
  --enable-bat
  --with-qwt=/usr/lib

Offlist, and I discovered myself, that this needs to be 
/usr/local/lib
  
  
  I have qt4-4.3.0 installed.
 
 Note:  (equal qt qwt)  =  nil

Thanks.  Fixed. I'm now using qwt, not qt.  cheers.


Does this error mean anything to anyone?

==Entering directory /usr/home/dan/src/bacula-bat/work/bacula-
2.2.0/src/qt-console
make: don't know how to make depend. Stop
*** Error code 1
 
Stop in /usr/home/dan/src/bacula-bat/work/bacula-2.2.0.
Creating bat Makefile
QMAKESPEC has not been set, so configuration cannot be deduced.
Error processing project file: /usr/home/dan/src/bacula-
bat/work/bacula-2.2.0/src/qt-console/bat.pro


-- 
Dan Langille - http://www.langille.org/
Available for hire: http://www.freebsddiary.org/dan_langille.php



-
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-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users