<p dir="ltr">Why not use cmake?</p>
<div class="gmail_quote">On May 22, 2015 3:49 PM, "viana" <<a href="mailto:vianamp@gmail.com">vianamp@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sorry, I am not using CMake. This is my make file. It compiles and runs fine<br>
if I comment the lines:<br>
<br>
  // ITK2VTK::Pointer Filter = ITK2VTK::New();<br>
  // Filter -> SetInput(conv->GetOutput());<br>
  // Filter -> Update();<br>
<br>
-m<br>
<br>
Makefile:<br>
----------<br>
<br>
CC = g++<br>
<br>
DFLAG = -DDEBUG<br>
<br>
CFLAGS = -O1 -O2 -O3 -Os<br>
<br>
VTK_LIBS_DIR = /usr/local/lib/<br>
<br>
VTK_INCLUDE_DIR = /usr/local/include/vtk-6.2/<br>
<br>
ITK_INCLUDE_DIR = /usr/local/include/ITK-4.7/<br>
<br>
VTK_DYN_LIBS = -lvtkImagingCore-6.2 -lvtkCommonMisc-6.2<br>
-lvtkFiltersSources-6.2 -lvtkFiltersCore-6.2 -lvtkImagingFourier-6.2<br>
-lvtkImagingGeneral-6.2 -lvtkCommonDataModel-6.2 -lvtkCommonCore-6.2<br>
-lvtkCommonTransforms-6.2 -lvtkIOLegacy-6.2 -lvtkCommonExecutionModel-6.2<br>
-lvtkIOCore-6.2 -lvtkIOImage-6.2 -lvtkRenderingFreeType-6.2<br>
-lvtkFiltersGeneral-6.2<br>
<br>
ITK_DYN_LIBS = -lITKIOVTK-4.7 -lITKIOStimulate-4.7 -lITKIOBioRad-4.7<br>
-lITKIOLSM-4.7 -lITKIOGDCM-4.7 -litkgdcmMSFF-4.7 -litkgdcmDSED-4.7<br>
-litkgdcmDICT-4.7 -litkgdcmIOD-4.7 -lITKIOHDF5-4.7 -lITKIOTransformHDF5-4.7<br>
-litkhdf5_cpp-4.7 -lITKIOMeta-4.7 -lITKIONIFTI-4.7 -lITKIOImageBase-4.7<br>
-lITKDICOMParser-4.7 -lITKIOGE-4.7 -lITKIOBMP-4.7 -lITKIOPNG-4.7<br>
-lITKIOGIPL-4.7 -litkgdcmjpeg12-4.7 -litkgdcmjpeg16-4.7 -litkgdcmjpeg8-4.7<br>
-lITKIOJPEG-4.7 -lITKIOTIFF-4.7 -lITKSpatialObjects-4.7 -lITKMetaIO-4.7<br>
-lITKEXPAT-4.7 -lITKniftiio-4.7 -lITKgiftiio-4.7 -lITKznz-4.7<br>
-litkgdcmCommon-4.7 -litkjpeg-4.7 -litkopenjpeg-4.7 -litkpng-4.7<br>
-litktiff-4.7 -litkhdf5-4.7 -litkzlib-4.7 -lITKIONRRD-4.7 -lITKCommon-4.7<br>
-lITKNrrdIO-4.7 -lITKVNLInstantiation-4.7 -litkvnl_algo-4.7<br>
-litkv3p_netlib-4.7 -litkv3p_lsqr-4.7 -litkvnl-4.7 -litkvcl-4.7 -litksys-4.7<br>
-lITKStatistics-4.7<br>
<br>
debug: test.cpp<br>
        @$(CC) $(DFLAG) $(CFLAGS) test.cpp -o test $(VTK_DYN_LIBS) $(ITK_DYN_LIBS)<br>
-I$(VTK_INCLUDE_DIR) -I$(ITK_INCLUDE_DIR)<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/Error-converting-ITK-to-VTK-tp7587392p7587396.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/Error-converting-ITK-to-VTK-tp7587392p7587396.html</a><br>
Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
</blockquote></div>