From: Peter Biechele (Peter.Biechele_at_bextec.de)
Date: Thu Aug 14 2003 - 16:26:04 CEST
From: Peter Biechele <Peter.Biechele@bextec.de> Date: Thu, 14 Aug 2003 16:26:04 +0200 Message-Id: <200308141626.04772.Peter.Biechele@bextec.de> Subject: Re: [taskjuggler] taskjuggler 1.9.0 compile on Debian woody (KDE 3.0.5a)
Danke für die Hilfe, leider kommt jetzt:
--------------------
make all-recursive
make[1]: Entering directory `/mount/morpheus/home/pebi/taskjuggler-1.9.0'
Making all in taskjuggler
make[2]: Entering directory
`/mount/morpheus/home/pebi/taskjuggler-1.9.0/taskjuggler'
source='RealFormat.cpp' object='RealFormat.lo' libtool=yes \
depfile='.deps/RealFormat.Plo' tmpdepfile='.deps/RealFormat.TPlo' \
depmode=gcc /bin/sh ../admin/depcomp \
/bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I.
-I. -I.. -I/usr/include/kde -I/usr/include/qt -I/usr/X11R6/include
-DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef
-Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2
-fno-exceptions -fno-check-new -c -o RealFormat.lo `test -f 'RealFormat.cpp'
|| echo './'`RealFormat.cpp
RealFormat.cpp: In method `class QString RealFormat::format(double, bool =
TRUE) const':
/usr/include/qt/qstring.h:607: `class QString & QString::replace(const QString
&, const QString &)' is private
RealFormat.cpp:49: within this context
make[2]: *** [RealFormat.lo] Fehler 1
make[2]: Leaving directory
`/mount/morpheus/home/pebi/taskjuggler-1.9.0/taskjuggler'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/mount/morpheus/home/pebi/taskjuggler-1.9.0'
make: *** [all] Fehler 2
Am Mittwoch, 13. August 2003 20:02 schrieb Chris Schlaeger:
> On Wednesday 13 August 2003 19:06, Peter Biechele wrote:
> > RealFormat.cpp: In method `class QString RealFormat::format(double, bool
> > = TRUE) const':
> > RealFormat.cpp:49: no matching function for call to `QString::replace
> > (char, char)'
> > /usr/include/qt/qstring.h:501: candidates are: class QString &
> > QString::replace(unsigned int, unsigned int, const QString &)
> > /usr/include/qt/qstring.h:502: class QString &
> > QString::replace(unsigned int, unsigned int, const QChar *, unsigned int)
> > /usr/include/qt/qstring.h:504: class QString &
> > QString::replace(const QRegExp &, const QString &)
> > /usr/include/qt/qstring.h:607: class QString &
> > QString::replace(const QString &, const QString &)
> > make[2]: *** [RealFormat.lo] Fehler 1
> > make[2]: Leaving directory
> > `/mount/raid/home/pebi/taskjuggler-1.9.0/taskjuggler'
> > make[1]: *** [all-recursive] Fehler 1
> > make[1]: Leaving directory `/mount/raid/home/pebi/taskjuggler-1.9.0'
> > make: *** [all] Fehler 2
> > ---------------------------
> >
> > Do i need at least qt 3.1.x ???
>
> No, at least not because of this problem. I haven't tried Qt3.0.x for a
> long time, but in principle it should work. Maybe some other users can say
> more about this.
>
> Your problem looks like one of the implicit type conversion bugs that gcc
> 2.95 had. Try the following patch:
>
> diff -b -u -p -r1.1 RealFormat.cpp
> --- RealFormat.cpp 24 May 2003 17:35:34 -0000 1.1
> +++ RealFormat.cpp 13 Aug 2003 18:00:12 -0000
> @@ -46,7 +46,7 @@ RealFormat::format(double val, bool show
> }
> if (text.isEmpty())
> text = "0";
> - text.replace(' ', '0');
> + text.replace(QChar(' '), QChar('0'));
> if (!fractionSep.isEmpty() && fracDigits > 0)
> {
> double v = fabs(val) - abs((int) val);
>
> Chris
-------------------------------------------------------------------
MfG
Peter Biechele
#####################################################
Dr. Peter Biechele, E-Mail: Peter.Biechele@beXtec.de
beXtec GmbH, Gründerzentrum im "Tabakschopf Ringwald",
Kaiserstuhlstr. 3, D-79312 Emmendingen, Germany
URL: http://www.beXtec.com
Tel.: +49 7641 93339 61, Fax: +49 7641 93339 69
-- To unsubscribe, email the address listed in the List-Unsubscribe header For additional commands, email: taskjuggler-help@suse.com
This archive was generated by hypermail 2.1.7 : Thu Aug 14 2003 - 16:26:23 CEST