[Paraview] problem connecting to external c library

RAVINDRANATH LANKA rlanka at hotmail.com
Fri Nov 19 17:09:56 EST 2004


Hi all,

I am writing a custom reader, vtkMyReader.cxx, that is referring to 
functions from an external C library.
I copied the  .cxx and .h files to VTK/IO directory.

I added the following to the CMakeLists.txt

INCLUDE_DIRECTORIES(/usr/local/myIncludes/)
ADD_DEFINITIONS(-DMY_DEFINITIONS)
TARGET_LINK_LIBRARIES( vtk${KIT} ${KIT_LIBS} /usr/local/myLibs/libLocal.a)

I also had to add the "INCLUDE_DIRECTORIES" and "ADD_DEFINITIONS" to 
paraview*/CMakeLists.txt as paraview*/Utilities/VTKClientServer/IO/Makefile 
required these values.

When I try to build paraview, I am getting the following error.
--------------------------------------------------------------------------------------------------
Building executable /root/paraview-1.6.3-linux/bin/paraview...
/root/paraview-1.6.3-linux/bin/libvtkIO.a(vtkMyReader.o)(.text+0x9cd): In 
function `vtkMyReader::ReadGeometry()':
: undefined reference to `mtxNewInvMap(int*, int)'
collect2: ld returned 1 exit status
make[5]: *** [/root/paraview-1.6.3-linux/bin/paraview] Error 1
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_Client] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_GUI] Error 2
-------------------------------------------------------------------------------------------------

I don't have much experience with CMake.

Any help is appreciated.

Ravi

_________________________________________________________________
NRIs - Free money transfer to India. Fly to India for free!  
http://acm.bridgeovertw.com/hdfc/qr/landingpage/sep04/index.htm?sitecode=610|394 
Apply Now.



More information about the ParaView mailing list