[vtk-developers] PYTHON_UTIL_LIBRARY
David Gobbi
dgobbi at atamai.com
Wed Feb 15 13:16:48 EST 2006
I really don't know what libutil is used for, but Mathieu is right.
It's a part of glibc.
Mathieu Malaterre wrote:
> I believe this is a Linux only thing. Maybe you can put it within a
> IF/ENDIF UNIX statement.
>
> The real fix is mention in bug #2257 in inspecting distuils var, like
> SHLIBS
> 'SHLIBS': '-lpthread -ldl -lutil',
>
> 2 cents,
> Mathieu
>
> Sebastien BARRE wrote:
>
>> Hi
>>
>> Can you guys eventually clarify what PYTHON_UTIL_LIBRARY is for ?
>> Here is the Wrapping/Python/CMakeLists.txt file:
>>
>> FIND_LIBRARY(PYTHON_UTIL_LIBRARY
>> NAMES util
>> PATHS /usr/lib
>> DOC "Utility library needed for vtkpython"
>> )
>> MARK_AS_ADVANCED(PYTHON_UTIL_LIBRARY)
>> IF(PYTHON_UTIL_LIBRARY)
>> SET(PYTHON_UTIL_LIBRARY_LIB ${PYTHON_UTIL_LIBRARY})
>> ENDIF(PYTHON_UTIL_LIBRARY)
>>
>> Apparently if the library is found, it is used to link vtkpython
>> against it. If it is not found, well, apparently it does not hurt.
>>
>> My problem is that using Visual C++ 6.0, the Python util library is
>> found in the wrong place... in the compiler libs themselves (with a
>> library name like that, that was bound to happen):
>> PYTHON_UTIL_LIBRARY:FILEPATH=c:/Program Files/Microsoft Visual
>> Studio/VC98/Lib/UTIL.LIB
>> Why is it found there, I have no clue.
>>
>> Then the whole Python framework fails to build:
>> Linking...
>> LINK : fatal error LNK1104: cannot open file "c:\Program
>> Files\Microsoft Visual Studio\VC98\Lib\UTIL.LIB.lib"
>> Error executing link.exe.
>> Ooops.
>>
>> I can set PYTHON_UTIL_LIBRARY manually, but still, I'm curious...
>>
>> A
>>
>> --
>> Sebastien Barre
>>
>> _______________________________________________
>> vtk-developers mailing list
>> vtk-developers at vtk.org
>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>
>
>
More information about the vtk-developers
mailing list