Ok, I solved the problem.
To make pkgconfig to see QT was installed, I just had to copy the .pc
files from the qt installation directory to pkgconfig directory : 

cp /usr/local/Trolltech/Qt-4.3.0/lib/pkgconfig/*.pc /usr/lib/pkgconfig/

Now bacula accepts to configure...

Hope that can help someone

I am now facing another problem with bat, but i'm confident i will solve
it ^^

Thank you for your help

Le jeudi 26 juillet 2007 à 09:43 +0200, Jerome Massano a écrit :
> Le jeudi 26 juillet 2007 à 09:35 +0200, massano jerome a écrit :
> > Hello Dirk
> > 
> > Le mercredi 25 juillet 2007 à 10:48 -0400, Dirk Bartley a écrit :
> > > Hello Jerome
> > > 
> > > I'm developing on gentoo and my qt4 include files are located
> > > in /usr/include/qt4.  Is that where your compiles qt includes were
> > > installed??
> > 
> > No, my include files are in /usr/local/Trolltech/Qt-4.3.0/include, but I
> > just made a symbolic link : 
> > ln -s /usr/include/qt4 /usr/local/Trolltech/Qt-4.3.0/include/
> > In /usr/local/Trolltech/Qt-4.3.0/include/, i have many sub-folders, like
> > Qt, QtGui, QtCore, etc...
> > 
> > > On Wed, 2007-07-25 at 14:01 +0200, Jerome Massano wrote:
> > > > Hello
> > > > 
> > > > I am trying to build my own bacula rpms (to include some home-made
> > > > changes). In this RPM, I have to include BAT (what a nice tool, great
> > > > work Kern and devs ^^), so I need to install Qt 4.2 or better. My
> > > > distribution has no package for this RPM, so I installed it with the
> > > > sources. My problem is that the configure tool does not find Qt.
> > > 
> > > Can you copy and paste the configure output of where it is failing.
> > > 
> > > I have
> > >         --enable-bat \
> > >         --enable-qwt=/usr \
> > > in my configure script.  There is no qt option but there is a
> > > requirement of qwt which is an additional requirement of a relatively
> > > small graphing library.  Is ./configure failing to find qwt?? or qt??
> > > 
> > 
> > Here is the output from configure : 
> > ./configure --enable-smartalloc --enable-bat --with-mysql --with-openssl
> > (...)
> > configure: error: Unable to find Qt4 installation needed by bat
> > with no other line about qt, or with errors/warnings.
> > This is the output when I try to configure by hand. 
> > 
> > When I try to build the RPM (which should do configure then make & make
> > install), it crashes in the very beginning. Here is a complete output :
> > 
> > 
> > pkgtool:  Warning:  Pre-processing spec
> > file /root/bacula/build.mezz/SPECS/bacula.spec failed; using internal
> > parser.
> > pkgtool:  Warning:  Build dependency installation failed:  Unable to
> > install gcc gcc-c++ make autoconf ncurses-devel perl libstdc++-devel
> > libxml2-devel zlib-devel openssl-devel python python-devel pkgconfig
> > pango-devel atk-devel qt-devel libtermcap-devel glibc-devel termcap
> > glibc-devel libgnome gtk2-devel libgnomeui-devel ORBit2-devel
> > libart_lgpl-devel libbonobo-devel libbonoboui-devel
> > bonobo-activation-devel gconf2-devel linc-devel freetype2-devel termcap
> > glibc-devel libgnome gtk2-devel libgnomeui-devel ORBit2-devel
> > libart_lgpl-devel libbonobo-devel libbonoboui-devel
> > bonobo-activation-devel gconf2-devel freetype2-devel cairo-devel
> > fontconfig-devel gnome-vfs2-devel libpng-devel termcap glibc-devel
> > libgnome gtk2-devel libgnomeui-devel ORBit2-devel libart_lgpl-devel
> > libbonobo-devel libbonoboui-devel bonobo-activation-devel gconf2-devel
> > freetype2-devel cairo-devel fontconfig-devel gnome-vfs2-devel
> > libpng-devel libtermcap-devel libstdc++-static-devel glibc-static-devel
> > glibc-devel gtk2-devel libgnomeui2-devel libORBit2-devel
> > libart_lgpl-devel libbonobo2_0-devel libbonoboui2_0-devel
> > libbonobo-activation-devel libGConf2-devel freetype2-devel gtk2-devel
> > libgnomeui2-devel libORBit2-devel libart_lgpl-devel libbonobo2_0-devel
> > libbonoboui2_0-devel libbonobo-activation-devel libGConf2-devel
> > freetype2-devel libtermcap-devel glibc-devel gtk2-devel libgnomeui-devel
> > ORBit2-devel libart_lgpl-devel libbonobo-devel libbonoboui-devel
> > bonobo-activation-devel GConf2-devel freetype-devel libtermcap-devel
> > glibc-devel gtk2-devel libgnomeui-devel ORBit2-devel libart_lgpl-devel
> > libbonobo-devel libbonoboui-devel bonobo-activation-devel GConf2-devel
> > freetype-devel libtermcap-devel glibc-devel gtk2-devel libgnomeui-devel
> > ORBit2-devel libart_lgpl-devel libbonobo-devel libbonoboui-devel
> > GConf2-devel freetype-devel libtermcap-devel glibc-devel gtk2-devel
> > libgnomeui-devel ORBit2-devel libart_lgpl-devel libbonobo-devel
> > libbonoboui-devel GConf2-devel freetype-devel libtermcap-devel
> > glibc-devel gtk2-devel libgnomeui-devel ORBit2-devel libart_lgpl-devel
> > libbonobo-devel libbonoboui-devel GConf2-devel freetype-devel
> > libtermcap-devel glibc-devel gtk2-devel libgnomeui-devel ORBit2-devel
> > libart_lgpl-devel libbonobo-devel libbonoboui-devel
> > bonobo-activation-devel GConf2-devel linc-devel freetype-devel
> > mysql-devel mysql-devel mysql-devel rh-postgresql-devel postgresql-devel
> > wxGTK-devel (1)
> > erreur: D�pendances de construction manquantes:
> >         qt-devel >= 4.2 est n�cessaire pour bacula-2.1.26-ASP_1.i386
> 
> This line just says : error : dependancy unavailable : qt-devel >=4.2 is
> necessary for bacula
> 
> > pkgtool:  Error:  Package build failed:  Unhandled package build error
> > I think the warning about dependencies (unable to install gcc, gcc-c
> > ++ ...) can be ignored : i am _sure_ gcc IS installed ^^.
> > I think this problem comes from pkgtool. Maybe should I ask on the
> > pkgtool or qt4 mailing lists how to make pkgtool able to see Qt IS
> > installed ?
> > 
> > 
> > 
> > > 
> > > >  I read
> > > > the configure script, it seems to use pkg-config. What can I do to make
> > > > configure to find Qt where it is installed. There does not seem to be a
> > > > --with-qt=$QT_DIRECTORY option in configure.
> > > 
> > > Kern is responsible for the ./configure script.  I know there is someone
> > > already creating rpm spec files.  Are you using that spec file
> > > modified??  Are you aware that bat and the most recent bacula that it
> > > will work with has not yet be
> > > en released officially for production use??
> > > 
> > 
> > Yes, I am using the official spec file, slightly modified to suit to my
> > distribution (Actually, you HAVE to modify this spec file, to tell it
> > which distribution you are using, whether you want mysql or else, and if
> > you want to use bat).
> > 
> > And yes, I know the version I am using is still beta version, but i
> > would like to start packaging it so that i will be able to make the
> > stable package when the 2.2 version of bacula will be released.
> > 
> > Thank you for your answer !
> > 
> > > Dirk
> > > > 
> > > > Thank you in advance.
> > > > 
> > > > PS : I know my english is really bad. If you do not understand my
> > > > question, please tell me, I will try to explain better.
> > > > 
> > > > 
> > > > -------------------------------------------------------------------------
> > > > 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
> > > 
> > 
> > 
> > -------------------------------------------------------------------------
> > 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
> 
> 
> -------------------------------------------------------------------------
> 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


-------------------------------------------------------------------------
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

Reply via email to