[vtkusers] Dicom reader CmakeLists.txt
Mathieu Malaterre
Mathieu.Malaterre at creatis.insa-lyon.fr
Tue Oct 28 04:10:28 EST 2003
Yasser,
Lets do it again. Could you please try compiling this sample: foo.cxx
(it comes with the right CMakeLists.txt). As usual run CMake, start
VC++, compile.
Then make sure:
- You are compiling in 'xyz' mode and you have a directory:
'VTKBin/bin/xyz' (where xyz = Debug/ RelWithDebInfo/ Release ...)
- you have both vtkIO.dll *and* vtkDICOMParser.dll in dir VTKBin/bin/xyz
(vtkDICOMImageReader symbol is defined in vtkIO)
- Don't change anything is VC++ settings for this project
Then send me the complete log:
----- configuration: BrainVol -Win32 **** ...
Thanks
mathieu
Ps: could you please specify which version of VTK *CVS* you are using,
open the file Common/vtkVersion.h and send me this line:
Version: $Revision: 1.xyz $
^^^
yasser salman wrote:
> Hi Mathieu..,
>
> here is my Cmake.. every thing was ok untill i add the vtkDICOMParser Note that in my file i include "vtkDICOMImageReader.h"
> the following error occured..
> "
> Linking...
> BrainVolView.obj : error LNK2001: unresolved external symbol "public: static class vtkDICOMImageReader * __cdecl vtkDICOMImageReader::New(void)" (?New at vtkDICOMImageReader@@SAPAV1 at XZ)
> Debug/BrainVol.exe : fatal error LNK1120: 1 unresolved externals
> Error executing link.exe"
>
>
> #find vtk
>
> INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake)
> IF (USE_VTK_FILE)
> INCLUDE(${USE_VTK_FILE})
> ENDIF (USE_VTK_FILE)
>
> SET( BrainVol_SRCS
> MainFrm
> StdAfx
> BrainVol
> BrainVol.rc
> BrainVolDoc
> BrainVolView
> res/BrainVol.ico
> res/BrainVol.rc2
> res/BrainVolDoc.ico
> res/Toolbar.bmp
> )
>
> LINK_LIBRARIES(
> vtkRendering
> vtkGraphics
> vtkImaging
> vtkIO
> vtkFiltering
> vtkCommon
> vtkHybrid
> vtkPatented
> vtkParallel
> vtkDICOMParser
> )
>
>
> # add stuff to use MFC in this executable
> ADD_DEFINITIONS(-D_AFXDLL)
> SET(CMAKE_MFC_FLAG 6)
>
> ADD_EXECUTABLE(BrainVol WIN32 ${BrainVol_SRCS})
>
>
> thanx for ur help..
> yasser..
>
>
>
>
>
>
> _____________________________________________________________
> Get free email, free website, free software and free products at
>
> http://www.uscomputer.net/portal.htm
>
> - U.S. Computer Corporation -
>
> - Why shop anywhere else?
>
> -
>
> -
>
> -
> _______________________________________________
> 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://www.vtk.org/mailman/listinfo/vtkusers
>
--
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: foo.cxx
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20031028/023fffdf/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20031028/023fffdf/attachment-0001.txt>
More information about the vtkusers
mailing list