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

Renato Elias rnelias at gmail.com
Tue Sep 1 10:08:18 EDT 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090901/34c396d0/attachment.htm>


More information about the ParaView mailing list