Hello all,
I am working on a new class that inherits from
vtkKWEImageAlgorithmDriver. Basically i have copied the
vtkKWEImageGradient class, and modified a few things. I got problem on
compilation phase, because the library to be generated cannot find an
external symbol.
error LNK2019: external symbol "public: class vtkKWEDataTransferHelper *
__thiscall vtkKWEImageAlgorithmDriver::vtkBuses::GetBuses(unsigned int,
unsigned int)" ....
I have tried to add the required vtkEdge libraries, checking out that
they exists at the specified VTKEdge_DIR, but still got no success.
Here is an extract of the CMakelists.txt file
SET (Imaging_SRCS
vtkGPUImageDataTransformFilter.cxx
)
#
-----------------------------------------------------------------------------
# Set of GLSL source files
#
-----------------------------------------------------------------------------
set(KIT_GLSL_SRCS
vtkGPUImageDataTransformFilter_2D_fs
vtkGPUImageDataTransformFilter_3D_fs
)
#
-----------------------------------------------------------------------------
# Create custom commands to encode each glsl file into a C string literal
# in a header file
#
-----------------------------------------------------------------------------
foreach(file ${KIT_GLSL_SRCS})
message(${file}ls)
set(src ${CMAKE_CURRENT_SOURCE_DIR}/${file}.glsl)
set(res ${CMAKE_CURRENT_BINARY_DIR}/${file}.cxx)
add_custom_command(
OUTPUT ${res}
DEPENDS ${src}
COMMAND ${VTK_ENCODESTRING_EXE}
ARGS ${res} ${src} ${file}
)
set(KIT_EXTRA_SRCS ${KIT_EXTRA_SRCS} ${res})
endforeach(file)
# --------------------------------------------------------------------------
# You probably do not need to modify anything below this line
# Create the vtkivrdImaging C++ library
ADD_LIBRARY (vtkivrdImaging ${Imaging_SRCS} ${KIT_EXTRA_SRCS})
TARGET_LINK_LIBRARIES(vtkivrdImaging vtkivrdCommon vtkImaging
vtkKWEHybrid vtkKWERendering)
Thanks in advance,
Jorge
_______________________________________________
VtkEdge mailing list
[email protected]
http://public.kitware.com/cgi-bin/mailman/listinfo/vtkedge