It seems to me that you are complicating things. The build procedure is: rm -rf bacula svn checkout https://bacula.svn.sourceforge.net/svnroot/bacula/trunk/bacula cd bacula ./configure (all the normal parameters) --enable-bat make
There is nothing more than that to it. Regards, Kern On Tuesday 03 July 2007 21:24, Marc Schiffbauer wrote: > * Kern Sibbald schrieb am 03.07.07 um 16:18 Uhr: > > On Tuesday 03 July 2007 15:07, Marc Schiffbauer wrote: > > > Hi all, > > > > > > since bat was born I compiled it now and then to see how it looks > > > like and to test it a bit. > > > > > > I wanted to do this today again (from svn) but it seems much mor > > > complicated like it used to be in the beginning. > > > > > > First I did a "./configure --enable-client-only" to the complete > > > source tree. > > > > > > Now I did the "build-depkgs-qt-console" which seemed to work. > > > > > > then "qmake-qt4" and "make". But things like "bacula.h" are not > > > found this way... > > > > > > So I added "-I.." to the Makefile. > > > > > > But now it was complaining other things that were not found and I > > > ended up in some qt3 things not being found?! > > > > > > Are ther really parts of bat that need qt3? > > > > > > Any hints on how to build it? > > > > > Hi Kern, > > > > > I think the tip is to not use --enable-client-only. Simply do a > > full ./configure as if you were normally building, then in the top level > > directory, do make, > > so far so good. I did now with --with-sqlite3. But it seems this was not > the problem. > > > > and it should build providing you have the Qt4 libraries > > loaded on your system. Qt4 >= 4.2 is required. > > I have 4.3.0beta1 > > > > > In any case, bat will only work with a 2.1.x director, so you will need to do > > a full build anyway. > > > > OK, thx but it should build... > > > At some point, we will take a look at making enable client only work but there > > are other more pressing issues at the moment. > > > > Thanks for working on testing it :-) > > > I dont know why it is not working here: > > [EMAIL PROTECTED]:~/src/bacula/svn/bacula/src$ rm -rf qt-console > [EMAIL PROTECTED]:~/src/bacula/svn/bacula/src$ svn up > A qt-console > A qt-console/label > A qt-console/label/label.cpp > A qt-console/label/label.h > A qt-console/label/label.ui > A qt-console/install_conf_file.in > A qt-console/PREFS > [...] > A qt-console/bat.pro.in > A qt-console/obj > Updated to revision 5120. > [EMAIL PROTECTED]:~/src/bacula/svn/bacula/src$ > [EMAIL PROTECTED]:~/src/bacula/svn/bacula/src/qt-console$ > ./build-depkgs-qt-console > in get_source URL is http://www.bacula.org/depkgs/qwt-5.0.2.tar.bz2 > SRC_DIR is qwt-5.0.2 MAKE_DIR is 1 ARCHIVE is qwt-5.0.2.tar.bz2 > Downloading http://www.bacula.org/depkgs/qwt-5.0.2.tar.bz2 > --21:13:54-- http://www.bacula.org/depkgs/qwt-5.0.2.tar.bz2 > => `qwt-5.0.2.tar.bz2' > Resolving www.bacula.org... 217.69.160.69 > Connecting to www.bacula.org|217.69.160.69|:80... connected. > HTTP request sent, awaiting response... 200 OK > Length: 1,666,468 (1.6M) [application/x-tar] > > 100%[============================================================================================================================================>] > 1,666,468 1015.56K/s > > 21:13:56 (1011.73 KB/s) - `qwt-5.0.2.tar.bz2' saved > [1666468/1666468] > > Extracting qwt-5.0.2.tar.bz2 > Building qwt graphics library. This takes some time ... > In case of problems see: /home/mschiff/src/bacula/svn/bacula/src/qt-console/depkgs/qwt-5.0.2/make.log > [EMAIL PROTECTED]:~/src/bacula/svn/bacula/src/qt-console$ > [EMAIL PROTECTED]:~/src/bacula/svn/bacula/src/qt-console$ qmake -project > [EMAIL PROTECTED]:~/src/bacula/svn/bacula/src/qt-console$ qmake > [EMAIL PROTECTED]:~/src/bacula/svn/bacula/src/qt-console$ make > Makefile:870: warning: overriding commands for target `moc_qwt_dyngrid_layout.cpp' > Makefile:721: warning: ignoring old commands for target `moc_qwt_dyngrid_layout.cpp' > Makefile:881: warning: overriding commands for target `moc_qwt_legend.cpp' > Makefile:725: warning: ignoring old commands for target `moc_qwt_legend.cpp' > Makefile:888: warning: overriding commands for target `moc_qwt_legend_item.cpp' > Makefile:732: warning: ignoring old commands for target `moc_qwt_legend_item.cpp' > Makefile:892: warning: overriding commands for target `moc_qwt_panner.cpp' > Makefile:736: warning: ignoring old commands for target `moc_qwt_panner.cpp' > Makefile:900: warning: overriding commands for target `moc_qwt_picker.cpp' > Makefile:744: warning: ignoring old commands for target `moc_qwt_picker.cpp' > Makefile:912: warning: overriding commands for target `moc_qwt_plot.cpp' > Makefile:756: warning: ignoring old commands for target `moc_qwt_plot.cpp' > Makefile:916: warning: overriding commands for target `moc_qwt_plot_canvas.cpp' > Makefile:760: warning: ignoring old commands for target `moc_qwt_plot_canvas.cpp' > Makefile:920: warning: overriding commands for target `moc_qwt_plot_magnifier.cpp' > Makefile:764: warning: ignoring old commands for target `moc_qwt_plot_magnifier.cpp' > Makefile:925: warning: overriding commands for target `moc_qwt_plot_panner.cpp' > Makefile:769: warning: ignoring old commands for target `moc_qwt_plot_panner.cpp' > Makefile:936: warning: overriding commands for target `moc_qwt_plot_picker.cpp' > Makefile:780: warning: ignoring old commands for target `moc_qwt_plot_picker.cpp' > Makefile:948: warning: overriding commands for target `moc_qwt_plot_zoomer.cpp' > Makefile:792: warning: ignoring old commands for target `moc_qwt_plot_zoomer.cpp' > Makefile:957: warning: overriding commands for target `moc_qwt_scale_widget.cpp' > Makefile:801: warning: ignoring old commands for target `moc_qwt_scale_widget.cpp' > Makefile:969: warning: overriding commands for target `moc_qwt_text_label.cpp' > Makefile:806: warning: ignoring old commands for target `moc_qwt_text_label.cpp' > Makefile:1085: warning: overriding commands for target `moc_mainwindow.cpp' > Makefile:809: warning: ignoring old commands for target `moc_mainwindow.cpp' > Makefile:1141: warning: overriding commands for target `moc_plot.cpp' > Makefile:1060: warning: ignoring old commands for target `moc_plot.cpp' > Makefile:1154: warning: overriding commands for target `moc_plot.cpp' > Makefile:1141: warning: ignoring old commands for target `moc_plot.cpp' > Makefile:1812: warning: overriding commands for target `main.o' > Makefile:1325: warning: ignoring old commands for target `main.o' > Makefile:1819: warning: overriding commands for target `main.o' > Makefile:1812: warning: ignoring old commands for target `main.o' > Makefile:2847: warning: overriding commands for target `main.o' > Makefile:1819: warning: ignoring old commands for target `main.o' > Makefile:3032: warning: overriding commands for target `main.o' > Makefile:2847: warning: ignoring old commands for target `main.o' > Makefile:3100: warning: overriding commands for target `mainwindow.o' > Makefile:1815: warning: ignoring old commands for target `mainwindow.o' > Makefile:3212: warning: overriding commands for target `main.o' > Makefile:3032: warning: ignoring old commands for target `main.o' > Makefile:3244: warning: overriding commands for target `plot.o' > Makefile:2977: warning: ignoring old commands for target `plot.o' > Makefile:3257: warning: overriding commands for target `main.o' > Makefile:3212: warning: ignoring old commands for target `main.o' > Makefile:3284: warning: overriding commands for target `plot.o' > Makefile:3244: warning: ignoring old commands for target `plot.o' > /usr/bin/uic-qt4 main.ui -o ui_main.h > /usr/bin/uic-qt4 prefs.ui -o ui_prefs.h > /usr/bin/uic-qt4 clients/clients.ui -o ui_clients.h > /usr/bin/uic-qt4 console/console.ui -o ui_console.h > /usr/bin/uic-qt4 fileset/fileset.ui -o ui_fileset.h > /usr/bin/uic-qt4 help/help.ui -o ui_help.h > /usr/bin/uic-qt4 jobgraphs/jobplotcontrols.ui -o ui_jobplotcontrols.h > /usr/bin/uic-qt4 joblist/joblist.ui -o ui_joblist.h > /usr/bin/uic-qt4 joblog/joblog.ui -o ui_joblog.h > /usr/bin/uic-qt4 jobs/jobs.ui -o ui_jobs.h > /usr/bin/uic-qt4 label/label.ui -o ui_label.h > /usr/bin/uic-qt4 mediaedit/mediaedit.ui -o ui_mediaedit.h > /usr/bin/uic-qt4 medialist/medialist.ui -o ui_medialist.h > /usr/bin/uic-qt4 mount/mount.ui -o ui_mount.h > /usr/bin/uic-qt4 relabel/relabel.ui -o ui_relabel.h > /usr/bin/uic-qt4 restore/brestore.ui -o ui_brestore.h > /usr/bin/uic-qt4 restore/prerestore.ui -o ui_prerestore.h > /usr/bin/uic-qt4 restore/restore.ui -o ui_restore.h > /usr/bin/uic-qt4 restore/restoretree.ui -o ui_restoretree.h > /usr/bin/uic-qt4 run/estimate.ui -o ui_estimate.h > /usr/bin/uic-qt4 run/prune.ui -o ui_prune.h > /usr/bin/uic-qt4 run/run.ui -o ui_run.h > /usr/bin/uic-qt4 run/runcmd.ui -o ui_runcmd.h > /usr/bin/uic-qt4 select/select.ui -o ui_select.h > /usr/bin/uic-qt4 storage/storage.ui -o ui_storage.h > /usr/bin/uic-qt4 testprogs/putz/putz.ui -o ui_putz.h > g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Iconsole -Ijoblist -Istorage -Ifileset -Ilabel -Irun -Irestore -Imedialist -Iclients -Ihelp -Ijobs -Ijobgraphs -Iqwt/include -Iselect -Ijoblog -Imediaedit -Irelabel -Imount -Itestprogs/examp -Itestprogs/putz -Idepkgs/qwt-5.0.2/designer -Idepkgs/qwt-5.0.2/src -Idepkgs/qwt-5.0.2/examples/bode -Idepkgs/qwt-5.0.2/examples/cpuplot -Idepkgs/qwt-5.0.2/examples/curvdemo2 -Idepkgs/qwt-5.0.2/examples/data_plot -Idepkgs/qwt-5.0.2/examples/dials -Idepkgs/qwt-5.0.2/examples/event_filter -Idepkgs/qwt-5.0.2/examples/histogram -Idepkgs/qwt-5.0.2/examples/radio -Idepkgs/qwt-5.0.2/examples/realtime_plot -Idepkgs/qwt-5.0.2/examples/sliders -Idepkgs/qwt-5.0.2/textengines/mathml -I. -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/q > t4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Iconsole -Ijoblist -Istorage -Ifileset -Ilabel -Irun -Irestore -Imedialist -Iclients -Ihelp -Ijobs -Ijobgraphs -Iqwt/include -Iselect -Ijoblog -Imediaedit -Irelabel -Imount -Itestprogs/examp -Itestprogs/putz -Idepkgs/qwt-5.0.2/designer -Idepkgs/qwt-5.0.2/src -Idepkgs/qwt-5.0.2/examples/bode -Idepkgs/qwt-5.0.2/examples/cpuplot -Idepkgs/qwt-5.0.2/examples/curvdemo2 -Idepkgs/qwt-5.0.2/examples/data_plot -Idepkgs/qwt-5.0.2/examples/dials -Idepkgs/qwt-5.0.2/examples/event_filter -Idepkgs/qwt-5.0.2/examples/histogram -Idepkgs/qwt-5.0.2/examples/radio -Idepkgs/qwt-5.0.2/examples/realtime_plot -Idepkgs/qwt-5.0.2/examples/sliders -Idepkgs/qwt-5.0.2/textengines/mathml -I. -I. -o bat_conf.o > bat_conf.cpp > bat_conf.cpp:52:20: error: bacula.h: No such file or directory > bat_conf.h:66: error: 'RES' does not name a type > bat_conf.h:76: error: 'utime_t' does not name a type > bat_conf.h:78: error: ISO C++ forbids declaration of 'TLS_CONTEXT' with no type > bat_conf.h:78: error: expected ';' before '*' token > bat_conf.h: In member function 'char* DIRRES::name() const': > bat_conf.h:84: error: 'hdr' was not declared in this scope > bat_conf.h: At global scope: > bat_conf.h:88: error: 'RES' does not name a type > bat_conf.h:94: error: 'RES' does not name a type > bat_conf.h:102: error: 'utime_t' does not name a type > bat_conf.h:104: error: ISO C++ forbids declaration of 'TLS_CONTEXT' with no type > bat_conf.h:104: error: expected ';' before '*' token > bat_conf.h: In member function 'char* CONRES::name() const': > bat_conf.h:110: error: 'hdr' was not declared in this scope > bat_conf.h: At global scope: > bat_conf.h:120: error: 'RES' does not name a type > bat_conf.cpp:61: error: expected initializer before '*' token > bat_conf.cpp:62: error: expected constructor, destructor, or type conversion before '*' token > bat_conf.cpp:79: error: 'RES_ITEM' does not name a type > bat_conf.cpp:95: error: 'RES_ITEM' does not name a type > bat_conf.cpp:109: error: 'RES_ITEM' does not name a type > bat_conf.cpp:121: error: 'RES_TABLE' does not name a type > bat_conf.cpp:130: error: 'RES' has not been declared > bat_conf.cpp: In function 'void dump_resource(int, int*, void (*)(void*, const char*, ...), void*)': > bat_conf.cpp:135: error: 'NULL' was not declared in this scope > bat_conf.cpp:136: error: '_' was not declared in this scope > bat_conf.cpp:136: error: 'res_to_str' was not declared in this scope > bat_conf.cpp:136: error: 'printf' was not declared in this scope > bat_conf.cpp:145: error: '_' was not declared in this scope > bat_conf.cpp:145: error: request for member 'name' in '* reshdr', which is of non-class type 'int' > bat_conf.cpp:146: error: 'printf' was not declared in this scope > bat_conf.cpp:149: error: request for member 'name' in '* reshdr', which is of non-class type 'int' > bat_conf.cpp:153: error: request for member 'name' in '* reshdr', which is of non-class type 'int' > bat_conf.cpp:153: error: 'NPRT' was not declared in this scope > bat_conf.cpp:158: error: 'class DIRRES' has no member named 'hdr' > bat_conf.cpp:159: error: 'class DIRRES' has no member named 'hdr' > bat_conf.cpp: At global scope: > bat_conf.cpp:170: error: variable or field 'free_resource' declared void > bat_conf.cpp:170: error: 'RES' was not declared in this scope > bat_conf.cpp:170: error: 'sres' was not declared in this scope > bat_conf.cpp:170: error: expected primary-expression before 'int' > bat_conf.cpp:170: error: initializer expression list treated as compound expression > bat_conf.cpp:171: error: expected ',' or ';' before '{' token > bat_conf.cpp:247: error: 'RES_ITEM' has not been declared > bat_conf.cpp: In function 'void save_resource(int, int*, int)': > bat_conf.cpp:257: error: request for member 'name' in '*(((int*)(((unsigned int)i) * 4u)) + items)', which is of non-class type 'int' > bat_conf.cpp:258: error: request for member 'flags' in '*(((int*)(((unsigned int)i) * 4u)) + items)', which is of non-class type 'int' > bat_conf.cpp:258: error: 'ITEM_REQUIRED' was not declared in this scope > bat_conf.cpp:259: error: 'class DIRRES' has no member named 'hdr' > bat_conf.cpp:259: error: 'bit_is_set' was not declared in this scope > bat_conf.cpp:260: error: 'M_ABORT' was not declared in this scope > bat_conf.cpp:260: error: '_' was not declared in this scope > bat_conf.cpp:261: error: request for member 'name' in '*(((int*)(((unsigned int)i) * 4u)) + items)', which is of non-class type 'int' > bat_conf.cpp:261: error: 'resources' was not declared in this scope > bat_conf.cpp:261: error: 'Emsg2' was not declared in this scope > bat_conf.cpp:282: error: 'M_ERROR' was not declared in this scope > bat_conf.cpp:282: error: '_' was not declared in this scope > bat_conf.cpp:282: error: 'Emsg1' was not declared in this scope > bat_conf.cpp:289: error: 'class DIRRES' has no member named 'hdr' > bat_conf.cpp:290: error: 'class DIRRES' has no member named 'hdr' > bat_conf.cpp:290: error: 'free' was not declared in this scope > bat_conf.cpp:291: error: 'class DIRRES' has no member named 'hdr' > bat_conf.cpp:291: error: 'NULL' was not declared in this scope > bat_conf.cpp:293: error: 'class DIRRES' has no member named 'hdr' > bat_conf.cpp:294: error: 'class DIRRES' has no member named 'hdr' > bat_conf.cpp:294: error: 'free' was not declared in this scope > bat_conf.cpp:295: error: 'class DIRRES' has no member named 'hdr' > bat_conf.cpp:295: error: 'NULL' was not declared in this scope > bat_conf.cpp:312: error: '_' was not declared in this scope > bat_conf.cpp:312: error: 'printf' was not declared in this scope > bat_conf.cpp:318: error: 'malloc' was not declared in this scope > bat_conf.cpp:319: error: 'memcpy' was not declared in this scope > bat_conf.cpp:320: error: 'res_head' was not declared in this scope > bat_conf.cpp:321: error: 'RES' was not declared in this scope > bat_conf.cpp:321: error: expected primary-expression before ')' token > bat_conf.cpp:321: error: expected `;' before 'res' > bat_conf.cpp:323: error: 'RES' was not declared in this scope > bat_conf.cpp:323: error: 'next' was not declared in this scope > bat_conf.cpp:323: error: 'last' was not declared in this scope > bat_conf.cpp:327: error: 'class DIRRES' has no member named 'hdr' > bat_conf.cpp:327: error: 'strcmp' was not declared in this scope > bat_conf.cpp:328: error: 'M_ERROR_TERM' was not declared in this scope > bat_conf.cpp:329: error: '_' was not declared in this scope > bat_conf.cpp:330: error: 'resources' was not declared in this scope > bat_conf.cpp:330: error: 'class DIRRES' has no member named 'hdr' > bat_conf.cpp:330: error: 'Emsg2' was not declared in this scope > bat_conf.cpp:333: error: expected primary-expression before ')' token > bat_conf.cpp:333: error: expected `;' before 'res' > bat_conf.cpp:334: error: 'res_to_str' was not declared in this scope > bat_conf.cpp:335: error: 'class DIRRES' has no member named 'hdr' > bat_conf.cpp:335: error: 'Dmsg2' was not declared in this scope > make: *** [bat_conf.o] Error 1 > [EMAIL PROTECTED]:~/src/bacula/svn/bacula/src/qt-console$ > > > Now I add "-I.." to the Makefile's INCPATH, and now it builds some > time, then stops at: > > g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Iconsole -Ijoblist -Istorage -Ifileset -Ilabel -Irun -Irestore -Imedialist -Iclients -Ihelp -Ijobs -Ijobgraphs -Iqwt/include -Iselect -Ijoblog -Imediaedit -Irelabel -Imount -Itestprogs/examp -Itestprogs/putz -Idepkgs/qwt-5.0.2/designer -Idepkgs/qwt-5.0.2/src -Idepkgs/qwt-5.0.2/examples/bode -Idepkgs/qwt-5.0.2/examples/cpuplot -Idepkgs/qwt-5.0.2/examples/curvdemo2 -Idepkgs/qwt-5.0.2/examples/data_plot -Idepkgs/qwt-5.0.2/examples/dials -Idepkgs/qwt-5.0.2/examples/event_filter -Idepkgs/qwt-5.0.2/examples/histogram -Idepkgs/qwt-5.0.2/examples/radio -Idepkgs/qwt-5.0.2/examples/realtime_plot -Idepkgs/qwt-5.0.2/examples/sliders -Idepkgs/qwt-5.0.2/textengines/mathml -I. -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/q > t4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Iconsole -Ijoblist -Istorage -Ifileset -Ilabel -Irun -Irestore -Imedialist -Iclients -Ihelp -Ijobs -Ijobgraphs -Iqwt/include -Iselect -Ijoblog -Imediaedit -Irelabel -Imount -Itestprogs/examp -Itestprogs/putz -Idepkgs/qwt-5.0.2/designer -Idepkgs/qwt-5.0.2/src -Idepkgs/qwt-5.0.2/examples/bode -Idepkgs/qwt-5.0.2/examples/cpuplot -Idepkgs/qwt-5.0.2/examples/curvdemo2 -Idepkgs/qwt-5.0.2/examples/data_plot -Idepkgs/qwt-5.0.2/examples/dials -Idepkgs/qwt-5.0.2/examples/event_filter -Idepkgs/qwt-5.0.2/examples/histogram -Idepkgs/qwt-5.0.2/examples/radio -Idepkgs/qwt-5.0.2/examples/realtime_plot -Idepkgs/qwt-5.0.2/examples/sliders -Idepkgs/qwt-5.0.2/textengines/mathml -I. -I. -I.. -o qwt_designer_plugin.o depkgs/qwt-5.0.2/designer/qwt_designer_plugin.cpp > depkgs/qwt-5.0.2/designer/qwt_designer_plugin.cpp:17:40: error: QDesignerFormEditorInterface: No such file or directory > > > [EMAIL PROTECTED]:~/src/bacula/svn/bacula/src/qt-console$ ls -l /usr/include/qt4/QtDesigner/QDesignerFormEditorInterface > -rw-r--r-- 1 root root 32 Mar 19 21:18 /usr/include/qt4/QtDesigner/QDesignerFormEditorInterface > [EMAIL PROTECTED]:~/src/bacula/svn/bacula/src/qt-console$ > > ... hm, but its there.. > > What might be wrong here? > > TIA > -Marc > > > -- > 8AAC 5F46 83B4 DB70 8317 3723 296C 6CCA 35A6 4134 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Bacula-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/bacula-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bacula-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-devel
