[vtkusers] Re: ccmake error / no executable (Compiling VTK)

Anders Christensen hejmand at gmail.com
Wed Mar 15 16:25:39 EST 2006


Hi,

Thanks for the answer! No, I didn't turn on tcl wrapping. when I did,
I could run ccmake from "tclsh" and it was able to correctly determine
the variables
     TCL_INCLUDE_PATH
     TCL_LIBRARY
     TK_INCLUDE_PATH
     TK_LIBRARY

When generating from ccmake I still get the same error several times:
    Errors occurred during the last pass" several times and presenting
this error
    It is impossible to order the linker search path in such a way that
    libraries specified as full paths will be picked by the linker.
    Directories and libraries involved are: Directory: /usr/lib contains:
    Library: /usr/openwin/lib/libX11.so
    Library: /usr/openwin/lib/libXext.so

    Directory: /usr/openwin/lib contains:
    Library: /usr/lib/libGL.so

I tried to compile with "make" - this time unsuccessfully. Any
suggestions to what the problem might be?

./Anders.

The last part of the output from "make" :

Linking C static library ../../bin/libvtkNetCDF.a
/space/anders/ccmake/bin/cmake -E remove -f ../../bin/libvtkNetCDF.a
../../bin/libvtkNetCDF.so.5.0.0 ../../bin/libvtkNetCDF.so.5.0
../../bin/libvtkNetCDF.so
cd /srv/home3/space/anders/builddir/Utilities/vtknetcdf &&
/usr/xpg4/bin/ar cr ../../bin/libvtkNetCDF.a 
"CMakeFiles/vtkNetCDF.dir/attr.o"  "CMakeFiles/vtkNetCDF.dir/dim.o" 
"CMakeFiles/vtkNetCDF.dir/error.o" 
"CMakeFiles/vtkNetCDF.dir/libvers.o"  "CMakeFiles/vtkNetCDF.dir/nc.o" 
"CMakeFiles/vtkNetCDF.dir/ncio.o"  "CMakeFiles/vtkNetCDF.dir/ncx.o" 
"CMakeFiles/vtkNetCDF.dir/putget.o" 
"CMakeFiles/vtkNetCDF.dir/string.o" 
"CMakeFiles/vtkNetCDF.dir/v1hpg.o"  "CMakeFiles/vtkNetCDF.dir/v2i.o" 
"CMakeFiles/vtkNetCDF.dir/var.o"
cd /srv/home3/space/anders/builddir/Utilities/vtknetcdf &&
/usr/ccs/bin/ranlib ../../bin/libvtkNetCDF.a
make -f Wrapping/Tcl/CMakeFiles/vtk.dir/build.make
Wrapping/Tcl/CMakeFiles/vtk.dir/depend
Scanning dependencies of target vtk
/space/anders/ccmake/bin/cmake -E cmake_depends  "Unix Makefiles"
/srv/home3/space/anders/builddir
/srv/home3/space/anders/builddir/Wrapping/Tcl
/srv/home3/space/anders/builddir/Wrapping/Tcl/CMakeFiles/vtk.dir/DependInfo.cmake
make -f Wrapping/Tcl/CMakeFiles/vtk.dir/build.make
Wrapping/Tcl/CMakeFiles/vtk.dir/build
Building CXX object Wrapping/Tcl/CMakeFiles/vtk.dir/vtkTkAppInit.o
/opt/SS10/SUNWspro/bin/CC  -I/srv/home3/space/anders/builddir
-I/srv/home3/space/anders/builddir/Utilities
-I/srv/home3/space/anders/builddir/VolumeRendering
-I/srv/home3/space/anders/builddir/Rendering
-I/space/anders/VTK/VolumeRendering -I/space/anders/VTK/Hybrid
-I/space/anders/VTK/Widgets -I/space/anders/VTK/Rendering
-I/space/anders/VTK/Rendering/Testing/Cxx -I/space/anders/VTK/IO
-I/space/anders/VTK/Imaging -I/space/anders/VTK/Graphics
-I/space/anders/VTK/GenericFiltering -I/space/anders/VTK/Filtering
-I/space/anders/VTK/Common -I/space/anders/VTK/Utilities
-I/space/anders/VTK/Common/Testing/Cxx
-I/srv/home3/space/anders/builddir/Utilities/DICOMParser
-I/space/anders/VTK/Utilities/DICOMParser
-I/srv/home3/space/anders/builddir/Utilities/vtkfreetype/include
-I/space/anders/VTK/Utilities/vtkfreetype/include
-I/srv/home3/space/anders/builddir/Utilities/vtknetcdf
-I/space/anders/VTK/Utilities/vtknetcdf
-I/srv/home3/space/anders/builddir/Utilities/vtkexodus2/include
-I/space/anders/VTK/Utilities/vtkexodus2/include
-I/srv/home3/space/anders/builddir/Utilities/vtkfreetype
-I/space/anders/VTK/Utilities/ftgl/src
-I/srv/home3/space/anders/builddir/Utilities/ftgl
-I/usr/openwin/include -I/opt/csw/include   -DVTK_IN_VTK -o
Wrapping/Tcl/CMakeFiles/vtk.dir/vtkTkAppInit.o -c
/space/anders/VTK/Wrapping/Tcl/vtkTkAppInit.cxx
Linking CXX executable ../../bin/vtk
/space/anders/ccmake/bin/cmake -E remove -f ../../bin/vtk
cd /srv/home3/space/anders/builddir/Wrapping/Tcl &&
/opt/SS10/SUNWspro/bin/CC     -KPIC  
"CMakeFiles/vtk.dir/vtkTkAppInit.o"   -o ../../bin/vtk 
-L/srv/home3/space/anders/builddir/bin -L/opt/csw/lib
-L/usr/openwin/lib -lCrun -lvtkCommonTCL -lvtkFilteringTCL
-lvtkGraphicsTCL -lvtkImagingTCL -lvtkIOTCL -lvtkRenderingTCL
-lvtkVolumeRenderingTCL -lvtkHybridTCL -lvtkWidgetsTCL
-lvtkVolumeRendering -lvtkWidgets -lvtkHybridTCL -lvtkHybrid
-lvtkexoIIc -lvtkNetCDF -lvtkRenderingTCL -lvtkRendering -lvtkftgl
-lvtkfreetype -lGL -lXt -lSM -lICE -lSM -lICE -lSM -lICE -lX11 -lXext
-lsocket -lnsl -lX11 -lXext -lsocket -lnsl -lX11 -lXext -lsocket -lnsl
-lvtkGraphicsTCL -lvtkGraphics -lvtkImagingTCL -lvtkImaging -ltk8.4
-lvtkIOTCL -lvtkIO -lvtkDICOMParser -lvtkpng -lvtktiff -lvtkzlib
-lvtkjpeg -lvtkexpat -lvtkMPEG2Encode -lvtkFilteringTCL -lvtkFiltering
-lvtkCommonTCL -lvtkCommon -lvtksys -lCrun -lthread -ldl -lm -ltcl8.4
-lm
Undefined                       first referenced
 symbol                             in file
sunOglCurPrimTablePtr              
/srv/home3/space/anders/builddir/bin/libvtkVolumeRendering.a(vtkOpenGLRayCastImageDisplayHelper.o)
sunOglCurrentContext               
/srv/home3/space/anders/builddir/bin/libvtkVolumeRendering.a(vtkOpenGLRayCastImageDisplayHelper.o)
ld: fatal: Symbol referencing errors. No output written to ../../bin/vtk
*** Error code 1
make: Fatal error: Command failed for target `bin/vtk'
Current working directory /srv/home3/space/anders/builddir
*** Error code 1
make: Fatal error: Command failed for target
`Wrapping/Tcl/CMakeFiles/vtk.dir/all'
Current working directory /srv/home3/space/anders/builddir
*** Error code 1
The following command caused the error:
make -f CMakeFiles/Makefile2 all
make: Fatal error: Command failed for target `all'


On 3/15/06, Amy Squillacote <amy.squillacote at kitware.com> wrote:
> Hi Anders,
>
> When you configured VTK with ccmake, did you turn on tcl
> wrapping?  If you did not, then you will not get a VTK executable,
> only the library files.
>
> - Amy
>
> At 10:37 AM 3/15/2006, Anders Christensen wrote:
> >Hi,
> >
> >I'm trying to install The Visualization ToolKit
> >(<http://public.kitware.com/VTK/>public.kitware.com/VTK/)
> >on a Solaris 10 machine. I'm using Sun's C/C++ compilers for the purpose.
> >
> >The Makefile generation with ccmake had some kind of problem saying
> >"Errors occurred during the last pass" several times and presenting this
> error
> >    It is impossible to order the linker search path in such a way that
> >    libraries specified as full paths will be picked by the linker.
> >    Directories and libraries involved are: Directory: /usr/lib contains:
> >    Library: /usr/openwin/lib/libX11.so
> >    Library: /usr/openwin/lib/libXext.so
> >
> >    Directory: /usr/openwin/lib contains:
> >    Library: /usr/lib/libGL.so
> >
> >Nevertheless I tried to compile the project (using the Makefiles generated
> >by ccmake)
> >    make
> >    make install
> >
> >No compilation errors, and some stuff was copied to my install-dir. But
> >I'm unable to locate the executable "vtk".
> >
> >I hope that someone has an idea what the problem could be...
> >(And please let me know if you need more info about the process).
> >
> >./Anders.
> >
> >_______________________________________________
> >This is the private VTK discussion list.
> >Please keep messages on-topic. Check the FAQ at:
> >http://www.vtk.org/Wiki/VTK_FAQ
> >Follow this link to subscribe/unsubscribe:
> >http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list