<div class="gmail_quote">On Thu, Sep 23, 2010 at 10:07 PM, Valentin Pavlyuchenko <span dir="ltr"><<a href="mailto:thevalik@gmail.com">thevalik@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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>
<font color="#888888"><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>
</font><div><div></div><div class="h5">> 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 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>
> 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>
><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>Hey,</div><div>I just tracked down the issue. It's a FindZLIB.cmake problem, the regex they use to match the version is wrong. If you want a quick fix, you can replace the line 41 with:</div>
<div><br></div><div>STRING(REGEX REPLACE ".*#define ZLIB_VERSION \"([0-9]+)\\.([0-9]+)\\.([0-9]+).*" "\\1.\\2.\\3" ZLIB_VERSION_STRING "${ZLIB_H}")</div><div><br></div><div>(note the change is that it doesn't expect to be >..._VERSION "n.n.n"< but >..._VERSION "n.n.n<, note the ending quote)</div>
<div>This made that the version was never matched and then it basically didn't match, it spent all that time looking for it in that huge file (I agree it shouldn't take that long maybe).</div><div><br></div><div>Does anyone know how to report that bug to cmake? (That's why I'm CC'ing kde-buildsystem, they might know who to talk to).</div>
<div><br></div><div>Cheers!</div><div>Aleix</div><meta http-equiv="content-type" content="text/html; charset=utf-8">