[Paraview] [PV-3.6.1] Problem compiling with Python in linux x86_64

pat marion pat.marion at kitware.com
Tue Sep 1 10:14:44 EDT 2009


Hi Renato,

You can type 'make VERBOSE=1'.

You need to build python shared so that the PYTHON_LIBRARY points to
libpython2.6.so.

Pat

On Tue, Sep 1, 2009 at 10:08 AM, Renato Elias<rnelias at gmail.com> wrote:
> Hi Alan,
>
> it seems that CMake is correctly picking up my compiled version of Python
> and bypassing the system version.
>
> The following lines were copied from CMakeCache.txt file:
>
> //Path to a program.
> PYTHON_EXECUTABLE:FILEPATH=/sw/shared/x86_64/Python/2.6.2/bin/python2.6
>
> //Path to a file.
> PYTHON_INCLUDE_PATH:PATH=/sw/shared/x86_64/Python/2.6.2/include/python2.6
>
> //Path to a library.
> PYTHON_LIBRARY:FILEPATH=/sw/shared/x86_64/Python/2.6.2/lib/libpython2.6.a
>
> but I still get the same error message :-(
>
> any clue?
>
> Moreover, how can I force the make process to be more verbose?
>
> Renato.
>
>
> On Tue, Aug 11, 2009 at 2:29 PM, Scott, W Alan <wascott at sandia.gov> wrote:
>>
>> Make sure you aren't picking up Python from your Linux OS, and are only
>> using the version that you just compiled?
>>
>> Alan
>>
>> ________________________________
>> From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org]
>> On Behalf Of Renato Elias
>> Sent: Thursday, August 06, 2009 10:40 AM
>> To: paraview at paraview.org
>> Subject: [Paraview] [PV-3.6.1] Problem compiling with Python in linux
>> x86_64
>>
>> Folks,
>>
>> I'm trouble in compiling PV-3.6.1 in a linux x86_64 environment. The error
>> is:
>>
>> Linking CXX shared library ../../../bin/libvtkPVPythonInterpretor.so
>>
>> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
>> /sw/shared/x86_64/Python/2.6.2/lib/libpython2.6.a(abstract.o): relocation
>> R_X86_64_32 against `a local symbol' can not be used when making a shared
>> object; recompile with -fPIC
>> /sw/shared/x86_64/Python/2.6.2/lib/libpython2.6.a: could not read symbols:
>> Bad value
>>
>> Ok, I already followed what the error message suggests and recompiled
>> Python 2.6.2 as well as PV-3.6.1 with the -fPIC option with no luck. Thus,
>> what's the secret?
>>
>> Thanks for any help
>>
>> --
>> Renato N. Elias
>> ===================================
>> High Performance Computing Center (NACAD)
>> Federal University of Rio de Janeiro (UFRJ)
>> Rio de Janeiro, Brazil
>>
>> Sent from Rio de Janeiro, Brasil
>
>
> --
> Renato N. Elias
> ===================================
> High Performance Computing Center (NACAD)
> Federal University of Rio de Janeiro (UFRJ)
> Rio de Janeiro, Brazil
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>


More information about the ParaView mailing list