<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
Hi Andy, <br>
<br>
Here are the answers to your questions.<br>
<br>
1. CMake: 1.2, Pre-compiled binary from <a class="moz-txt-link-abbreviated" href="http://www.cmake.org">www.cmake.org</a><br>
2. Sun WorkShop 6 update 2 C/C++ 5.3<br>
3. /opt/SUNWspro/bin/CC -o vtkpython \<br>
Modules/vtkpython.o libpython2.2.a -lsocket -lnsl -ldl -lpthread
-lthread -lm <br>
<br>
vtkpython.cc:<br>
/* Minimal main program -- everything is loaded from the library */<br>
<br>
#include "Python.h"<br>
#include <iostream><br>
<br>
extern "C"<br>
DL_EXPORT(int) Py_Main( int argc, char *argv[] );<br>
<br>
int main( int argc, char *argv[] )<br>
{<br>
return Py_Main(argc, argv);<br>
}<br>
<br>
Hua <br>
<br>
<br>
Andy Cedilnik wrote:<br>
<blockquote type="cite"
cite="mid1026477849.27894.63.camel@xanth.kitwarein.com">
<pre wrap="">Sorry, I did not read the whole e-mail...
So, the first part:
ImportError: ld.so.1: ./python: fatal: relocation error:
file /net/chaos/chaos/data/hqian/VTK-sun/bin/libvtkCommonPython.so:
symbol __1cG__CrunKpure_error6F_v_: referenced symbol not found
bla__CrunKpure__bla is from "standard" C++ library on Sun. I had the
same problem until I compiled the whole thing using C++.
ImportError: ld.so.1: ./vtkpython: fatal: relocation error:
file /net/chaos/chaos/data/hqian/VTK-sun/bin/libvtkCommonPython.so:
symbol __1cDstdEcerr_: referenced symbol not found
bla__1cDstdEcerr__bla is as you can guess cerr. This means it does not
get initialized properly. So, I guess to go from here, let us try to
answer couple of simple questions:
1. What version of CMake?
2. What version of Sun C++?
3. What exactly does compile line for vtkpython look like?
                                Andy
On Fri, 2002-07-12 at 07:39, Prabhu Ramachandran wrote:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">"AC" == Andy Cedilnik <a class="moz-txt-link-rfc2396E" href="mailto:andy.cedilnik@kitware.com"><andy.cedilnik@kitware.com></a> writes:
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">I think Hua has already tried this out and linked the vtkpython
executable to libpython.a. However, this approached failed again.
Any ideas why this happens even with the vtkpython binary? I dont
have much experience with Solaris to really answer.
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: <a class="moz-txt-link-rfc2396E" href="http://public.kitware.com/cgi-bin/vtkfaq"><http://public.kitware.com/cgi-bin/vtkfaq></a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="$mailwrapcol">--
Hua Qian, Ph.D.
Programmer/Analyst
Imaging Research Laboratories
Robarts Research Institute
</pre>
<br>
</body>
</html>