[vtkusers] Problem with complie Vtk3.1 for VolumePro500 v2.0 on Solaris 8
Pairash Saiviroonporn
pai at bwh.harvard.edu
Thu Oct 18 11:27:36 EDT 2001
Hi Bill
Thanks for your help. Even I add -lvli in, I still get the same error
messages. Please advise, Thanks, pai.
g++ -o vtk tkAppInit.o \
-L. -DVTK_USE_VLI -fPIC -DVTK_WORDS_BIGENDIAN -DVTK_USE_PTHREADS
-D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H -I. -I./../common
-I/export/laser/bay3_project/tcl_tk_8.3/tk8.3.2/generic
-I/export/laser/bay3_project/tcl8.3.2/generic -DVTK_USE_TKWIDGET
-DVTK_USE_OGLR -I/usr/openwin/share/include/ -I/usr/openwin/include
-I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING
-I./../patented -DVTK_USE_PATENTED -I./../contrib -DVTK_USE_CONTRIB
-I./../local -DVTK_USE_LOCAL -Wl,-R,/usr/local/lib
-L/export/laser/bay3_project/vtk_laser/local -lVTKLocalTcl -lVTKLocal
-L/export/laser/bay3_project/vtk_laser/contrib -lVTKContribTcl
-lVTKContrib -L/export/laser/bay3_project/vtk_laser/patented
-lVTKPatentedTcl -lVTKPatented
-L/export/laser/bay3_project/vtk_laser/imaging -lVTKImagingTcl
-lVTKImaging -L/export/laser/bay3_project/vtk_laser/graphics
-lVTKGraphicsTcl -lVTKGraphics -L../common -lVTKCommonTcl -lVTKCommon
-L/usr/openwin/lib -R/usr/openwin/lib -L/usr/openwin/lib -lGL
-L/local/lib -ltk8.3 -L/local/lib/ -ltcl8.3
/export/laser/bay3_project/tcl_tk_8.3/blt2.4u/src/libBLT.a -ldl -lpthread
\
-L/usr/openwin/lib -R/usr/openwin/lib -lXext -lXt -lSM -lICE -lX11
-lsocket -lnsl -lm -lvli
Undefined first referenced
symbol in file
VLIVolume::Create(unsigned long, void *, unsigned int, unsigned int,
unsigned int,
VLIVolume::Layout)/export/laser/bay3_project/vtk_laser/contrib/libVTKContrib.so
__1cDstd2l6Frn0ANbasic_ostream4Ccn0ALchar_traits4Cc____pkc_2_
/export/laser/bay3_project/vtk_laser/contrib/libvli.so
On Thu, 18 Oct 2001, William A. Hoffman wrote:
> The -lvli is missing from the link line for vtk. Add it to the KIT_LIBS
> for that Makefile.in.
>
> -Bill
>
>
> At 08:29 PM 10/17/2001 -0400, Pairash Saiviroonporn wrote:
> >Hi there
> > I have problem with complie Vtk 3.1 for the VolumePro500 board
> >(Solaris 8 v2.0). I wonder that may be you know what I did wrong:
> >I will really appriciate if you can give me some helps, Thanks, pai.
> >
> >I followed the instruction on vtkVolumeProVG500Mapper.h as:
> >
> >// 1. Make sure you are building with the contrib kit. On Unix add
> >// --with-contrib to your configure line, on Windows check the
> >// contrib box on PCMaker.
> >//
> >I did: /configure --with-tcl --with-tkwidget --with-patented --with-local
> >--with-share
> >d --with-contrib
> >
> >
> >// 2. Edit the Makefile.in in contrib. Add the following three classes to
> >// the CONCRETE list of classes: vtkVolumeProVG500Mapper,
> >// vtkOpenGLVolumeProVG500Mapper. Please be
> >// certain that there are no spaces after the "\" that separates
> >// lines.
> >
> >I did: vtkVolumeProVG500Mapper \
> >vtkOpenGLVolumeProVG500Mapper \
> > at ./contrib/Makefile.in
> >
> >
> >// 3. Specify the include path for vli.h to the vtk make process.
> >// For Windows, add the option -I "/path/to/vli/" to the Advanced
> >Options
> >// Extra Compiler flags of pcmaker. For example, the following works
> >here:
> >// -I "c:\Program Files/VolumePro/inc" -DVTK_USE_VLI
> >// For UNIX, add the path to USER_CXXFLAGS as a -I option to the
> >compiler.
> >// Or you can edit vtkVolumeProMapper.h and specify the include path
> >// for vli.h, or simply copy the vli.h file to your contrib directory.
> >
> >I added: #include vli.h at vtkVolumeMapper.h and have the vli.h file
> > at ./contrib
> >
> >
> >// 4. Add a -DVTK_USE_VLI to the compile options.
> >// For Windows, add the flag in the Advanced Options Extra Compiler
> >Flags
> >// of pcmaker.
> >// For Unix, add the flag to USER_CXXFLAGS in user.make.
> >
> >I changed: USER_CXXFLAGS = -DVTK_USE_VLI at user.make
> >
> >
> >// 5. On Windows - add the vli.lib file to the Extra Linker Flags under
> >// the Advanced Options. For example the following works here:
> >// "c:\program files\volumepro\lib\vli.lib"
> >// On Unix - add the vli shared object to the
> >// KIT_LIBS in the Makefile.in in contrib.
> >
> >I did: KIT_LIBS = libvli.so at ./contrib/Makefile.in
> >
> >// 6. On Windows - make sure vli.dll is somewhere in your path before you
> >// run vtk. You can put it in your vtkbin/lib or vtkbin/Debug/lib if
> >// you want. On Unix - make sure the vli shared object is in your
> >// shared library path before you run.
> >
> >libvli.so is at /usr/bin/
> >
> >But after I reconfiguration and rebuild vtk, I got these error messages:
> >
> >
> >gmake[1]: Entering directory `/export/laser/bay3_project/vtk_laser/tcl'
> >g++ -o vtk tkAppInit.o \
> >-L. -DVTK_USE_VLI -fPIC -DVTK_WORDS_BIGENDIAN -DVTK_USE_PTHREADS
> >-D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H -I. -I./../common
> >-I/export/laser/bay3_project/tcl_tk_8.3/tk8.3.2/generic
> >-I/export/laser/bay3_project/tcl8.3.2/generic -DVTK_USE_TKWIDGET
> >-DVTK_USE_OGLR -I/usr/openwin/share/include/ -I/usr/openwin/include
> >-I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING
> >-I./../patented -DVTK_USE_PATENTED -I./../contrib -DVTK_USE_CONTRIB
> >-I./../local -DVTK_USE_LOCAL -Wl,-R,/usr/local/lib
> >-L/export/laser/bay3_project/vtk_laser/local -lVTKLocalTcl -lVTKLocal
> >-L/export/laser/bay3_project/vtk_laser/contrib -lVTKContribTcl
> >-lVTKContrib -L/export/laser/bay3_project/vtk_laser/patented
> >-lVTKPatentedTcl -lVTKPatented
> >-L/export/laser/bay3_project/vtk_laser/imaging -lVTKImagingTcl
> >-lVTKImaging -L/export/laser/bay3_project/vtk_laser/graphics
> >-lVTKGraphicsTcl -lVTKGraphics -L../common -lVTKCommonTcl -lVTKCommon
> >-L/usr/openwin/lib -R/usr/openwin/lib -L/usr/openwin/lib -lGL
> >-L/local/lib -ltk8.3 -L/local/lib/ -ltcl8.3
> >/export/laser/bay3_project/tcl_tk_8.3/blt2.4u/src/libBLT.a -lposix4 -ldl
> >-lpthread \
> >-L/usr/openwin/lib -R/usr/openwin/lib -lXext -lXt -lSM -lICE -lX11
> >-lsocket -lnsl -lm
> >Undefined first referenced
> > symbol in file
> >VLIVolume::Create(unsigned long, void *, unsigned int, unsigned int,
> >unsigned int,
> >VLIVolume::Layout)/export/laser/bay3_project/vtk_laser/contrib/libVTKContrib.so
> >__1cDstd2l6Frn0ANbasic_ostream4Ccn0ALchar_traits4Cc____pkc_2_
> >/usr/lib/libvli.so.2.0
> >VLIVector3D::Normalize(double)
> >/export/laser/bay3_project/vtk_laser/contrib/libVTKContrib.so
> >__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___Hcompare6kMIIpkcI_i_
> >/usr/lib/libvli.so.2.0
> >__1cDstdZ__RTTI__1nDstdJbad_alloc__ /usr/lib/libvli.so.2.0
> >
> >
> >
> >
> >
> >
> >
> >_______________________________________________
> >This is the private VTK discussion list.
> >Please keep messages on-topic. Check the FAQ at:
> ><http://public.kitware.com/cgi-bin/vtkfaq>
> >Follow this link to subscribe/unsubscribe:
> >http://public.kitware.com/mailman/listinfo/vtkusers
>
>
More information about the vtkusers
mailing list