[vtkusers] VTK 4.2 upgrade fails on vtkScalarBarActor

John Davis jfd at lanl.gov
Tue Apr 29 15:04:26 EDT 2003


I have a working code that compiles, links, and runs flawlessly on a Linux 
PC with VTK 4.0 using either gcc or pgCC (Portland Group).  Essentially the 
same code works on Windows with VC++ 6 or with Intel 7, and on Irix with 
MIPS 7.

I am trying to upgrade to VTK 4.2 on Linux (Red Hat 7.4).

Both my copies of VTK, 4.0 and 4.2, came off their respective User's Guide 
CD.  Both versions of VTK seemed to build without error with either 
compiler on Linux.

The full application can be built with 4.2 only if I comment out the source 
code involving vtkScalarBarActor or vtkTextActor.

The problem is shown by a simple example code that fails to link with VTK 
4.2 libraries on Linux:
#include <iostream.h>
#include "vtkScalarBarActor.h"
int main( int argc, char *argv[] )
{
     cout << "Hello, world!\n";
     vtkScalarBarActor *scalarBar = vtkScalarBarActor::New();
}

Here is the resulting of compiling with gcc:
g++ -g test.o -L/apps/vtk4.2_gcc/bin -lvtkRendering  -lvtkGraphics 
-lvtkImaging -lvtkFiltering -lvtkCommon -lvtkIO -lvtkHybrid 
-L/apps/netcdf_gcc/src/cxx -lnetcdf_c++ -L/apps/netcdf_gcc/src/libsrc 
-lnetcdf -L/usr/X11R6/lib -lXext -lXt -lSM -lICE -lX11 -lm -lGL -o test
/apps/vtk4.2_gcc/bin/libvtkRendering.a(vtkOpenGLFreeTypeTextMapper.o): In 
function `vtkOpenGLFreeTypeTextMapper::GetSize(vtkViewport *, int *)':
vtkOpenGLFreeTypeTextMapper.o(.text+0x4a1): undefined reference to 
`FTFont::BBox(char const *, float &, float &, float &, float &, float &, 
float &)'
vtkOpenGLFreeTypeTextMapper.o(.text+0x4bc): undefined reference to 
`FTFont::Advance(char const *)'
/apps/vtk4.2_gcc/bin/libvtkRendering.a(vtkFreeTypeFontCache.o): In function 
`vtkFreeTypeFontCache::GetFont(vtkTextProperty *, int, unsigned char, 
unsigned char, unsigned char)':
vtkFreeTypeFontCache.o(.text+0x655): undefined reference to 
`FTGLPixmapFont::FTGLPixmapFont(void)'
vtkFreeTypeFontCache.o(.text+0x66c): undefined reference to 
`FTGLBitmapFont::FTGLBitmapFont(void)'
vtkFreeTypeFontCache.o(.text+0x6ac): undefined reference to 
`FTFont::Open(char const *, char)'
vtkFreeTypeFontCache.o(.text+0x90a): undefined reference to 
`FTFont::Attach(char const *)'
vtkFreeTypeFontCache.o(.text+0xcf4): undefined reference to 
`FTFont::FaceSize(unsigned int, unsigned int)'
/apps/vtk4.2_gcc/bin/libvtkRendering.a(vtkFreeTypeFontCache.o): In function 
`vtkFreeTypeFontCacheCleanup::vtkFreeTypeFontCacheCleanup(void)':
vtkFreeTypeFontCache.o(.text+0x23): undefined reference to 
`FTLibraryCleanup::AddDependency(void (*)(void))'
collect2: ld returned 1 exit status
gmake: *** [test] Error 1

I haven't seen anything about this in the FAQ or the mailing list.

John



John F. Davis, Ph.D.
Scientific Software Engineering
Los Alamos National Laboratory
MS B295
Los Alamos, New Mexico  87545
Tel. (505) 667-4793
Fax (505) 665-5402
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030429/ef44e570/attachment.htm>


More information about the vtkusers mailing list