[vtkusers] Problem with VTK on Linux
Ian Remmler
irr5509 at cs.tamu.edu
Thu Jul 20 17:23:48 EDT 2000
Hi,
I am having an odd problem with a VTK application we are trying to port to
Linux. The application runs fine on Irix, but it doesn't like Linux.
Disclaimer: I have no experience with VTK or our application, and the
person who wrote the application is long gone, so please forgive any
ignorance on my part. I just want to get the thing to work.
As I said the app. works under Irix, using SGI's compiler. It compiles
fine on Linux, but when I try to run it, it won't load our helper c++
library. It says...
Error in startup script: couldn't load file "./VizmoLib.so":
./VizmoLib.so: undefined symbol: GetElt__Ct4List1Z14vizRobotObjectUl
while executing
"load ./VizmoLib.so VizmoLib"
("uplevel" body line 1)
invoked from within
"uplevel #0 $auto_index($name)"
(procedure "auto_load" line 13)
invoked from within
"auto_load $name [uplevel 1 {namespace current}]"
(autoloading "VizmoLib")
invoked from within
"VizmoLib"
(file "./vizmo" line 8)
The symbol GetElt__Ct4List1Z14vizRobotObjectUl translates to...
List<vizRobotObject>::GetElt(unsigned long) const
...if that helps. I thought perhaps a problem with templates?
Actually, it used to be an overloaded [] operator. I thought that might
be what it didn't like, so I changed it to a normal method GetElt(), but
it still barfs.
The script "vizmo" that we use to launch the app follows...
#!/usr/local/bin/vtk
set dir .
lappend auto_path $dir "/home/user/xxx/Vizmo"
package require VizmoLib
puts stdout "Please wait: Vizmo 3D initializing..."
VizmoLib
source /home/user/xxx/dsmft/Vizmo/VizmoView.tcl
set userProfile "~/vizmo.init"
if [catch { source $userProfile} initResult ] {
puts stdout "No User Profile specified..."
}
puts stdout "User Profile loaded..."
Here's what our Linux setup looks like:
System: Pentium III
OS: Redhat 6.1 with some upgrades
gcc: 2.95.1
binutils: 2.9.5.0.22
glibc: 2.1.2
vtk: CVS as of about a week ago
tcl/tk: 8.0 and 8.3
If any other info would be helpful, I'm sure I can dig it up.
Thanks,
- Ian.
More information about the vtkusers
mailing list