what works too is to change<div><b>-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE</b></div><div>to</div><div><b>-DZLIB_LARGEFILE_SOURCE -DZLIB_LARGEFILE64_SOURCE</b></div><div>in the toolchainfile.cmake</div><div>i really don't know whats the difference, but it works. i tried this according</div>
<div>to this mail</div><div><a href="http://mail.madler.net/pipermail/zlib-devel_madler.net/2010-April/001864.html">http://mail.madler.net/pipermail/zlib-devel_madler.net/2010-April/001864.html</a></div><div><br><div class="gmail_quote">
---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Bruno Niklaus</b> <span dir="ltr"><<a href="mailto:niklaus.bruno@gmail.com">niklaus.bruno@gmail.com</a>></span><br>Date: 2011/10/31<br>Subject: Building opencv for OMAP4430 / Armv7 / Cmake problem<br>
To: <a href="mailto:buildroot@busybox.net">buildroot@busybox.net</a><br><br><br>Hi @all<div><br></div><div>i tried to build opencv for armv7 / omap4430 processor, i'm using codesourcery toolchain with neon optimations enabled.</div>
<div>when cmake tries to build opencv i allways get strange error with</div>
<div><b><i>"z_offset64_t"</i></b></div><div>The generated "toolchainfile.cmake" file in the "buildroot/outpout" directory sets additional CMAKE_C_FLAGS and CMAKE_CXX_FLAGS at the end:</div><div>

<b><i>"-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"</i></b></div><div>I dont think these are the right flags, if i delete them and rebuild opencv i runs trough without any errors.</div><div>

but i dont know where the toolchainfile.cmake is generated? Where should i apply a patch?</div><div>And is it okay to just delete the flags or should there be other flags?</div><div><br></div><div>best regards</div><div>
Bruno</div><font color="#888888">
<div><br></div>
</font></div><br></div>