[Insight-users] about itkDICOMImageSeriesTest again...

Evelyne Balteau e . balteau at ulg . ac . be
Fri, 5 Sep 2003 16:12:22 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0066_01C373C8.7D188C00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all

As a lot of insight users during the last weeks, I'm trying to build a =
3D image from a series of DICOM files.
I can run the itkDICOMImageSeriesTest (included in the itkIOTests), but =
I would like to compile it as a "stand alone" project...
The only modification I made from the original itkDICOMImageSeriesTest =
file is that I don't use the itkFilterWatcher...
Here is the error message I get :

Compiling...
itkDICOMImageSeriesTest.cxx
Linking...
   Creating library =
C:\Toolkits\InsightToolkit\Tests\Dicom2\RelWithDebInfo/itkDICOMImageSerie=
sTest.lib and object =
C:\Toolkits\InsightToolkit\Tests\Dicom2\RelWithDebInfo/itkDICOMImageSerie=
sTest.exp
MSVCRT.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main
C:\Toolkits\InsightToolkit\Tests\Dicom2\RelWithDebInfo/itkDICOMImageSerie=
sTest.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Using CMake, I just have linked the itkIO library =
(TARGET_LINK_LIBRARIES(itkDICOMImageSeriesTest ITKIO) ) , but it is the =
same if I link all libraries =
(TARGET_LINK_LIBRARIES(itkDICOMImageSeriesTest ${ITK_LIBRARIES}) ).
I use the latest ITK tarball (but I still have ITK_1.2.0 compiled on my =
computer... Could it be a problem, even if the right binaries directory =
is provided to CMake ?)...

I'm new in using CMake (so please forgive my ignorance!!)...=20
Could it be that I make something wrong writing the CMakeLists.txt ?=20
My CMakeLists is just based on the "Hello World" example...

Hope all this above is enough to find what is wrong...

Thanks a lot !

Evelyne

------=_NextPart_000_0066_01C373C8.7D188C00
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1226" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>As a lot of insight users during the =
last weeks,=20
I'm trying to build a 3D image from a series of DICOM =
files.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I can run the itkDICOMImageSeriesTest =
(included in=20
the itkIOTests), but I would like to compile it as a "stand alone"=20
project...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The only modification I made from the =
original=20
itkDICOMImageSeriesTest file is that <FONT face=3DArial size=3D2>I don't =
use the=20
itkFilterWatcher...</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Here is the error message I get =
:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>Compiling...<BR>itkDICOMImageSeriesTest.cxx<BR>Linking...<BR>&nb=
sp;&nbsp;=20
Creating library=20
C:\Toolkits\InsightToolkit\Tests\Dicom2\RelWithDebInfo/itkDICOMImageSerie=
sTest.lib=20
and object=20
C:\Toolkits\InsightToolkit\Tests\Dicom2\RelWithDebInfo/itkDICOMImageSerie=
sTest.exp<BR>MSVCRT.lib(crtexe.obj)=20
: error LNK2001: unresolved external symbol=20
_main<BR>C:\Toolkits\InsightToolkit\Tests\Dicom2\RelWithDebInfo/itkDICOMI=
mageSeriesTest.exe=20
: fatal error LNK1120: 1 unresolved externals<BR>Error executing=20
link.exe.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Using CMake, I just have linked the =
itkIO library=20
(TARGET_LINK_LIBRARIES(itkDICOMImageSeriesTest ITKIO) ) , but it is the =
same if=20
I link all libraries (TARGET_LINK_LIBRARIES(itkDICOMImageSeriesTest=20
${ITK_LIBRARIES}) ).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I use the latest ITK tarball (but I =
still have=20
ITK_1.2.0 compiled on my computer... Could it be a problem, even if the =
right=20
binaries directory is provided to CMake ?)...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm new in using CMake (so please =
forgive my=20
ignorance!!)... </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Could it be that I make something wrong =
writing the=20
CMakeLists.txt ? </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>My CMakeLists is just based on the =
"Hello World"=20
example...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Hope all this above is enough to find =
what is=20
wrong...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks a lot !</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Evelyne</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0066_01C373C8.7D188C00--