[Paraview] Custom Python build for Mac

Ken Mankoff mankoff at gmail.com
Fri May 2 15:40:29 EDT 2014


 
On 2014-05-02 at 15:35, Scott, W Alan wrote: 
> I have a user that wants to build his own version of ParaView on 
> his Mac with a nonstandard version of Python (EnThought Python). 
> The superbuild wiki says this is not a good idea.  Has anyone 
> done this?  Is it possible? 
 
I'd like this too, and have tried but failed.   Someone got it 
working here: 
http://www.cmake.org/pipermail/paraview/2013-September/029364.html 
When I build Paraview it crashes at 97% built with an error about QSQLITE. This has nothing to do with python.

> [ 97%] Compiling Qt help project AnalyzeNIfTIIO.qhp
> Building up file structure...
> QSqlDatabase: QSQLITE driver not loaded
> QSqlDatabase: available drivers:
> Cannot open data base file 
> /Users/mankoff/local/src/ParaView/build/Plugins/AnalyzeNIfTIReaderWriter/doc/AnalyzeNIfTIIO.qch!
> make[2]: *** 
> [Plugins/AnalyzeNIfTIReaderWriter/doc/AnalyzeNIfTIIO.qch] Error 
> 255
> make[1]: *** 
> [Plugins/AnalyzeNIfTIReaderWriter/CMakeFiles/AnalyzeNIfTIIO.dir/all] 
> Error 2
> make: *** [all] Error 2 
 
But I think I know how to solve the DYLD_LIBRARY problem mentioned 
in the thread linked above. I can't test it since I haven't gotten 
a build working yet, but 

sudo install_name_tool -change "@rpath/Python"
"/User/<username>/Library/Enthought/Canopy_64bit/User/" 

and it might work.

The blog posts that helped me get this working (in other apps, 
since I
can't build paraview) are:

 + 
 https://blogs.oracle.com/dipol/entry/dynamic_libraries_rpath_and_mac[2]
 + 
 http://thecourtsofchaos.com/2013/09/16/how-to-copy-and-relink-binaries-on-osx/[3]
 + 
 https://stackoverflow.com/questions/1937232/linking-to-a-dynamic-library-on-a-mac-with-full-path[4]

Good luck,

  -k.


More information about the ParaView mailing list