Cool, thank you! I will take a look.<br><br><div class="gmail_quote">On Tue, Aug 30, 2011 at 11:58 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com">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>
Sorry, I should have mentioned, setting the environment variables in<br>
<a href="http://python_configure_step.cmake.in" target="_blank">python_configure_step.cmake.in</a> also had no effect -- but the pointer<br>
helped me figure out why! The External_Python.cmake file that I<br>
started from has the set(python_CONFIGURE_COMMAND ...) call commented<br>
out and specifies a configure command in ExternalProject_Add.<br>
<br>
I was able to get it to compile by making the following changes:<br>
<br>
* Uncomment out the various python_*_COMMAND settings<br>
* Set the ExternalProject_Add call to use those commands<br>
* Move the include(External_zlib) to just above if(NOT APPLE) in<br>
CMakeLists.txt in the SuperBuild<br>
* add these lines to <a href="http://python_configure_step.cmake.in" target="_blank">python_configure_step.cmake.in</a><br>
<br>
set(ENV{LD_LIBRARY_PATH} "@CMAKE_CURRENT_BINARY_DIR@/python-build/lib")<br>
set(ENV{CXX} "@CMAKE_CXX_COMPILER@")<br>
<div class="im"> set(ENV{CPPFLAGS} "-I@ZLIB_INCLUDE_DIR@")<br>
</div> set(ENV{LDFLAGS} "-L@ZLIB_LIBRARY_DIR@")<br>
<br>
Now I have a nice zlib module. :)<br>
<br>
I've committed these changes to my gitorious repo, if you're<br>
interested -- it's a fork of the jpocom-paraview repo under Jorge's<br>
account (jpocom). It probably has a few mistakes or CMake idioms I<br>
have done incorrectly, but I've also added several other modules<br>
(including yt) to it. I'm testing a full build at the moment, but it<br>
will take a little while to see the results.<br>
<br>
Thanks for all your help!<br>
<br>
-Matt<br>
<br>
On Tue, Aug 30, 2011 at 11:37 AM, David Partyka<br>
<div><div></div><div class="h5"><<a href="mailto:david.partyka@kitware.com">david.partyka@kitware.com</a>> wrote:<br>
> Ah yes, The configure step of python has to be run from a script. See<br>
> External_NUMPY.cmake for example where each of the steps<br>
> (configure,make,install) are run as separate scripts that are configured<br>
> with configure_file. The files for the most part just set environment<br>
> variables for the build.<br>
><br>
> On Tue, Aug 30, 2011 at 11:25 AM, Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>><br>
> wrote:<br>
>><br>
>> 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>
>><br>
>> On Tue, Aug 30, 2011 at 10:01 AM, David Partyka<br>
>> <<a href="mailto:david.partyka@kitware.com">david.partyka@kitware.com</a>> wrote:<br>
>> > I have but of course I wrote it ;-). What platform/compiler are you<br>
>> > 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">matthewturk@gmail.com</a>><br>
>> > 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>
><br>
><br>
</div></div></blockquote></div><br>