Ah yes, The configure step of python has to be run from a script. See External_NUMPY.cmake for example where each of the steps (configure,make,install) are run as separate scripts that are configured with configure_file. The files for the most part just set environment variables for the build.<br>
<br><div class="gmail_quote">On Tue, Aug 30, 2011 at 11:25 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi David,<br>
<br>
The error message reported by the Python build itself reports that it<br>
didn't find the necessary bits to build zlib:<br>
<br>
Python build finished, but the necessary bits to build these modules<br>
were not found:<br>
_bsddb _sqlite3 bsddb185<br>
bz2 dbm dl<br>
gdbm imageop readline<br>
sunaudiodev zlib<br>
To find the necessary bits, look in setup.py in detect_modules() for<br>
the module's name.<br>
<br>
After digging through detect_modules and the CMake files I think the<br>
issue is that detect_modules looks at CPPFLAGS. I've tried modifying<br>
External_Python.cmake with<br>
<br>
set(ENV(CPPFLAGS) -I@ZLIB_INCLUDE_DIR@)<br>
<br>
but this did not seem to be propagated to the environment configure<br>
read from, as config.log indicated that CPPFLAGS was set to the empty<br>
string.<br>
<br>
Any suggestions how to correctly thread this through?<br>
<br>
Thanks,<br>
<br>
Matt<br>
<div><div></div><div><br>
On Tue, Aug 30, 2011 at 10:01 AM, David Partyka<br>
<<a href="mailto:david.partyka@kitware.com" target="_blank">david.partyka@kitware.com</a>> wrote:<br>
> I have but of course I wrote it ;-). What platform/compiler are you using?<br>
> Can you send the error messages?<br>
><br>
> On Tue, Aug 16, 2011 at 6:17 PM, Matthew Turk <<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>> wrote:<br>
>><br>
>> Hi there,<br>
>><br>
>> Has anyone successfully gotten the zlib module in the paraview<br>
>> superbuild to build and install? On my machine, it is failing on<br>
>> finding zlib.h; I am not sure how to interface with the Python<br>
>> setup.py patch to suggest additional directories (like ZLIB_INSTALL)<br>
>> to search for the necessary components.<br>
>><br>
>> Thanks for any ideas,<br>
>><br>
>> Matt<br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the ParaView Wiki at:<br>
>> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
</div></div></blockquote></div><br>