<div class="gmail_quote">2010/9/24 Nicolás Alvarez <span dir="ltr"><<a href="mailto:nicolas.alvarez@gmail.com">nicolas.alvarez@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On 23/09/2010, Aleix Pol <<a href="mailto:aleixpol@kde.org">aleixpol@kde.org</a>> wrote:<br>
> On Thu, Sep 23, 2010 at 10:07 PM, Valentin Pavlyuchenko<br>
> <<a href="mailto:thevalik@gmail.com">thevalik@gmail.com</a>>wrote:<br>
><br>
>> Sorry, I don't know how to send you your cookies:)<br>
>> Yes, you're absolutely right - cmake 2.8.2, ZLIB_VERSION 1.2.3.4,<br>
>> find_package(ZLIB REQUIRED)<br>
>> So what it means?<br>
>><br>
>> P.S. Btw, these are Debian testing (future stable version - it's in<br>
>> freeze now) software versions.<br>
>><br>
>> --<br>
>> Best regards,<br>
>> Valentin Pavlyuchenko<br>
>><br>
>><br>
>><br>
>> 2010/9/23 Nicolás Alvarez <<a href="mailto:nicolas.alvarez@gmail.com">nicolas.alvarez@gmail.com</a>>:<br>
>> > On 22/09/2010, Valentin Pavlyuchenko <<a href="mailto:thevalik@gmail.com">thevalik@gmail.com</a>> wrote:<br>
>> >> Hi all,<br>
>> >><br>
>> >> I'm using KDevelop 4.1 from git and I've tried opening Amarok project<br>
>> with<br>
>> >> it.<br>
>> >> Currently project loading takes about 2 minutes to complete (just<br>
>> >> cmake project loading, without parsing). My PC is not old one (Core 2<br>
>> >> Duo, 3.2GHz).<br>
>> >> Can someone explain me why it is so slow?<br>
>> ><br>
>> > Do you happen to have CMake 2.8.2, a zlib.h with ZLIB_VERSION defined<br>
>> > to a four-component version number, and a find_package(ZLIB) call in<br>
>> > Amarok's CMake scripts?<br>
>> ><br>
>> > I want cookies if I guessed all that right.<br>
>> ><br>
>> > --<br>
>> > Nicolas<br>
>> ><br>
>><br>
>><br>
><br>
</div></div><div class="im">> Hey,<br>
> I just tracked down the issue. It's a FindZLIB.cmake problem, the regex they<br>
> use to match the version is wrong. If you want a quick fix, you can replace<br>
> the line 41 with:<br>
><br>
> STRING(REGEX REPLACE ".*#define ZLIB_VERSION<br>
> \"([0-9]+)\\.([0-9]+)\\.([0-9]+).*" "\\1.\\2.\\3" ZLIB_VERSION_STRING<br>
> "${ZLIB_H}")<br>
><br>
> (note the change is that it doesn't expect to be >..._VERSION "n.n.n"< but<br>
>>..._VERSION "n.n.n<, note the ending quote)<br>
> This made that the version was never matched and then it basically didn't<br>
> match, it spent all that time looking for it in that huge file (I agree it<br>
> shouldn't take that long maybe).<br>
><br>
> Does anyone know how to report that bug to cmake? (That's why I'm CC'ing<br>
> kde-buildsystem, they might know who to talk to).<br>
<br>
</div>The FindZLIB bug was already reported to CMake, and afaik already<br>
fixed in 2.8.3.<br>
<br>
<a href="http://www.vtk.org/Bug/view.php?id=11005" target="_blank">http://www.vtk.org/Bug/view.php?id=11005</a><br>
<a href="http://www.vtk.org/Bug/view.php?id=11049" target="_blank">http://www.vtk.org/Bug/view.php?id=11049</a><br>
<br>
The problem we have is that CMake takes 10 seconds to run that silly<br>
regex on a non-matching file, while QRegExp (used by the KDevelop<br>
CMake parser) takes 4-5 *minutes*.<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Nicolas<br>
<br>
--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
</div></div></blockquote></div><br><div>Well, this should be reported to Qt then I guess... -.-</div><div><br></div><div>There's not much we can do about that anyway.</div>