[vtk-developers] ppc-debug dashboard link error
David Cole
dlrdave at aol.com
Mon Feb 11 16:08:53 EST 2013
If I were going to analyze this problem (and I'm not, that's why I'm telling you how I would if I were going to.....) then I would:
- gather up all the matches of "[Pp]ython" from the CMakeCache.txt file
- compare/contrast that with your initial explicitly specified cache variables
- look in the FindPy* modules (VTK, built into CMake, custom?) to see what variables are actually used for VTK-wrapped python, and then...
- specify the set of variables needed by those find modules to come up with the right cache contents
Unfortunately, the python stuff is still a bit messy. There's no way to get a consistent set of stuff just by setting a single variable like you can with Qt and QT_QMAKE_EXECUTABLE.
-----Original Message-----
From: Sean McBride <sean at rogue-research.com>
To: David Gobbi <david.gobbi at gmail.com>
Cc: David Cole <dlrdave at aol.com>; vtk-developers <vtk-developers at vtk.org>
Sent: Mon, Feb 11, 2013 3:42 pm
Subject: Re: [vtk-developers] ppc-debug dashboard link error
On Mon, 11 Feb 2013 09:42:56 -0700, David Gobbi said:
>No need for a verbose build, the configure summary that it dumps to
>the dashboard is enough. It reports this:
>
> Found PythonLibs: /usr/lib/libpython2.5.dylib
>
>even though PYTHON_LIBRARY was set to this:
>
> /Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib
>
>Maybe your python install also created a libpython2.7.a that you can try
>instead? Or maybe it also put the libraries in /usr/local/lib?
So today I set:
SET (PYTHON_EXECUTABLE "/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python")
SET (PYTHON_LIBRARY "/System/Library/Frameworks/Python.framework/Versions/2.5/Python")
SET (PYTHON_INCLUDE_DIR "/System/Library/Frameworks/Python.framework/Versions/2.5/Headers")
and I'm sure they exist:
$ /System/Library/Frameworks/Python.framework/Versions/2.5/bin/python --version
Python 2.5.1
$ file /System/Library/Frameworks/Python.framework/Versions/2.5/Python
/System/Library/Frameworks/Python.framework/Versions/2.5/Python: Mach-O
universal binary with 4 architectures
$ ls /System/Library/Frameworks/Python.framework/Versions/2.5/Headers
Python-ast.h cStringIO.h complexobject.h floatobject.h intrcheck.h
etc...
oddly, it still shows:
-- Found PythonLibs: /usr/lib/libpython2.5.dylib
but at least that's a symlink to the file I specified... still, odd that it's
not using the exact path I specified. Looking in the CMakeCache.txt I see that
it's also not using the correct executable at all:
PYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python
That's a 2.6 version... probably explains the link error... but why is it
ignoring the explicit python choices???
Anyway, it's now building yet again after I deleted a bunch of old symlinks,
cleaned up $PATH, etc.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130211/7932e9db/attachment.html>
More information about the vtk-developers
mailing list