Boudewijn Rempt boud at
Sun Jul 25 13:45:44 CEST 2004

I'm really back -- I've compiled Krita again, and am trying to merge my 
holiday work on histograms -- the little I managed to do in between walking 
an lush green forests, visiting quaint old Thuringian towns and speaking 
German with very friendly Germans.

Anyway, I notice we have a nice new set of iterators. Still line-oriented, 
though, not rect, which I think is a pity. Cool matrix class, lots of changes 
to tablet support. Something happened to colour spaces that I haven't got the 
depth of yet -- but it looks a lot more dynamic than it was.

I've got one or two problems, though: the way iterators are used in 
KisHistogram since the latest change means computing histograms crashes:

		KisIteratorLinePixel lineIt = m_layer -> iteratorPixelSelectionBegin(0);
		KisIteratorLinePixel lastLine = m_layer -> iteratorPixelSelectionEnd(0);
		Q_INT32 depth = m_layer -> depth();
		while( lineIt <= lastLine )
			KisIteratorPixel pixelIt = *lineIt;
			KisIteratorPixel lastPixel = lineIt.end();
			while( pixelIt <= lastPixel )
				for( int i = 0; i < depth; i++)
 					// Do computing
 					if (i == channel.pos()) {
 						KisQuantum datum = pixelIt[channel.pos()];
// 						m_values[datum] = m_values[datum]++;
// 						if (datum > m_max) m_max = datum;
// 						if (datum < m_min) m_min = datum;
// 						total += datum;

I take it we have to use another way of accessing the relevant channel, but 
since this API is brand new, I don't know how.

The second thing is that I notice some compilation warnings to do with 
templates that rather worry me. (gcc 3.3.3).

Thirdly, even though I can compile Krita without problems, Brad Hards mailed 
me with a possible dependency problem in designerplugin, which is new to me, 


Making all in designerplugin
make[2]: Entering directory 
if /bin/sh ../../../libtool --silent --mode=compile --tag=CXX g++ 
-DHAVE_CONFIG_H -I. -I. -I../../.. -I./.. -I./../../core 
-I./../../core/compositeop -I./../../core/color_strategy -I./../../core/tiles 
-I../../../lib/kofficeui -I../../../lib/kofficeui -I../../../lib/kofficecore 
-I../../../lib/kofficecore -I../../../lib/store -I../../../lib/store 
-I../../../lib/kwmf -I../../../lib/kwmf -I../../../lib/kopainter 
-I../../../lib/kopainter -I/usr/lib/qt-3.3/include -I/usr/X11R6/include   
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 
-Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new 
-DQT_NO_COMPAT -DQT_NO_TRANSLATION  -MT kis_widgets_plugin.lo -MD -MP -MF 
".deps/kis_widgets_plugin.Tpo" \
  -c -o kis_widgets_plugin.lo `test -f '' || echo 
'./'`; \
then mv -f ".deps/kis_widgets_plugin.Tpo" ".deps/kis_widgets_plugin.Plo"; \
else rm -f ".deps/kis_widgets_plugin.Tpo"; exit 1; \
make[2]: *** No rule to make target `../../', needed by 
`'.  Stop.
make[2]: Leaving directory 
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bradh/coding/cvs-vers/kde/koffice/krita/ui'
make: *** [all-recursive] Error 1

It looks like some kind of dependency problem - depends on core/ ui/ 
tools/, so 
krita/core, krita/ui and kritatools need to be before krita/., but 
ui/designerplugin/ depends on

Maybe we need to move krita/ui/designerplugin to krita/designerplugin? Can you
take a look?


For the rest, I feel my absence has moved Krita a lot in the direction of a 
first alpha -- shall I take another holiday?

Boudewijn Rempt |

More information about the kimageshop mailing list