[IGSTK-Users] error

Patrick Cheng cheng at isis.georgetown.edu
Mon Jun 14 12:57:50 EDT 2010


Hi Luís,

Thanks for sending the CMakeCache.txt file. It looks like you have all 
the configuration done correctly.

The link problem is probably due to mixing compilation modes between 
your build process for the ITK library and the build process for the
IGSTK. For instance, you build ITK in release only, and now building 
IGSTK in debug.

Patrick

On 6/14/2010 2:33 AM, Luís Fernandes wrote:
> The CMakeCache.txt in annex.
>
> Luís Fernandes
>
>  > Date: Mon, 7 Jun 2010 15:38:53 -0700
>  > From: cheng at isis.georgetown.edu
>  > To: igstk-users at public.kitware.com
>  > Subject: Re: [IGSTK-Users] error
>  >
>  > Hi Luís,
>  >
>  > Can you send us the CMakeCache.txt file in this directory:
>  > c:\Documents and Settings\TES\Desktop\IGSTK\IGSTK-4-2\igstk_bin
>  >
>  > Patrick
>  >
>  > On 6/7/2010 3:14 AM, Luís Fernandes wrote:
>  > > I was trying to build "VideoFrameGrabberAndViewerWebcamWin" and ocurred
>  > > an error, can you help me please?
>  > >
>  > > Thank you.
>  > >
>  > > Luís Fernandes
>  > >
>  > > The error:
>  > >
>  > > 1>------ Build started: Project: VideoFrameGrabberAndViewerWebcamWin,
>  > > Configuration: Debug Win32 ------
>  > > 1>Linking...
>  > > 1>ITKCommon.lib(ITKCommon.dll) : error LNK2005: "public: __thiscall
>  > > itk::EventObject::EventObject(void)" (??0EventObject at itk@@QAE at XZ)
>  > > already defined in VideoFrameGrabberAndViewerWebcamWin.obj
>  > > 1>ITKCommon.lib(ITKCommon.dll) : error LNK2005: "public: virtual
>  > > __thiscall itk::EventObject::~EventObject(void)"
>  > > (??1EventObject at itk@@UAE at XZ) already defined in
>  > > VideoFrameGrabberAndViewerWebcamWin.obj
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2019: unresolved
>  > > external symbol "public: void __thiscall
>  > > igstk::VideoImager::RequestStartImaging(void)"
>  > > (?RequestStartImaging at VideoImager@igstk@@QAEXXZ) referenced in function
>  > > "public: void __thiscall
>  > > igstk::VideoFrameGrabberAndViewerWebcamWin::RequestInitialize(void)"
>  > > (?RequestInitialize at VideoFrameGrabberAndViewerWebcamWin@igstk@@QAEXXZ)
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2019: unresolved
>  > > external symbol "public: void __thiscall
>  > > igstk::WebcamWinVideoImagerTool::RequestSetVideoImagerToolName(class
>  > > std::basic_string<char,struct std::char_traits<char>,class
>  > > std::allocator<char> > const &)"
>  > >
> (?RequestSetVideoImagerToolName at WebcamWinVideoImagerTool@igstk@@QAEXABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z)
>  > > referenced in function "public: void __thiscall
>  > > igstk::VideoFrameGrabberAndViewerWebcamWin::RequestInitialize(void)"
>  > > (?RequestInitialize at VideoFrameGrabberAndViewerWebcamWin@igstk@@QAEXXZ)
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2019: unresolved
>  > > external symbol "public: void __thiscall
>  > > igstk::VideoImagerTool::SetFrameDimensions(unsigned int *)"
>  > > (?SetFrameDimensions at VideoImagerTool@igstk@@QAEXPAI at Z) referenced in
>  > > function "public: void __thiscall
>  > > igstk::VideoFrameGrabberAndViewerWebcamWin::RequestInitialize(void)"
>  > > (?RequestInitialize at VideoFrameGrabberAndViewerWebcamWin@igstk@@QAEXXZ)
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2019: unresolved
>  > > external symbol "public: void __thiscall
>  > > igstk::VideoImager::RequestOpen(void)"
>  > > (?RequestOpen at VideoImager@igstk@@QAEXXZ) referenced in function
> "public:
>  > > void __thiscall
>  > > igstk::VideoFrameGrabberAndViewerWebcamWin::RequestInitialize(void)"
>  > > (?RequestInitialize at VideoFrameGrabberAndViewerWebcamWin@igstk@@QAEXXZ)
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2019: unresolved
>  > > external symbol "public: void __thiscall
>  > > igstk::VideoImager::RequestSetFrequency(double)"
>  > > (?RequestSetFrequency at VideoImager@igstk@@QAEXN at Z) referenced in
> function
>  > > "public: void __thiscall
>  > > igstk::VideoFrameGrabberAndViewerWebcamWin::RequestInitialize(void)"
>  > > (?RequestInitialize at VideoFrameGrabberAndViewerWebcamWin@igstk@@QAEXXZ)
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2019: unresolved
>  > > external symbol "protected: __thiscall
>  > > igstk::WebcamWinVideoImagerTool::WebcamWinVideoImagerTool(void)"
>  > > (??0WebcamWinVideoImagerTool at igstk@@IAE at XZ) referenced in function
>  > > "public: static class itk::SmartPointer<class
>  > > igstk::WebcamWinVideoImagerTool> __cdecl
>  > > igstk::WebcamWinVideoImagerTool::New(void)"
>  > >
> (?New at WebcamWinVideoImagerTool@igstk@@SA?AV?$SmartPointer at VWebcamWinVideoImagerTool@igstk@@@itk@@XZ)
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2019: unresolved
>  > > external symbol "protected: __thiscall
>  > > igstk::WebcamWinVideoImager::WebcamWinVideoImager(void)"
>  > > (??0WebcamWinVideoImager at igstk@@IAE at XZ) referenced in function "public:
>  > > static class itk::SmartPointer<class igstk::WebcamWinVideoImager>
>  > > __cdecl igstk::WebcamWinVideoImager::New(void)"
>  > >
> (?New at WebcamWinVideoImager@igstk@@SA?AV?$SmartPointer at VWebcamWinVideoImager@igstk@@@itk@@XZ)
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2019: unresolved
>  > > external symbol "public: void __thiscall
>  > > igstk::VideoImager::RequestClose(void)"
>  > > (?RequestClose at VideoImager@igstk@@QAEXXZ) referenced in function
>  > > "public: void __thiscall
>  > > igstk::VideoFrameGrabberAndViewerWebcamWin::RequestShutdown(void)"
>  > > (?RequestShutdown at VideoFrameGrabberAndViewerWebcamWin@igstk@@QAEXXZ)
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2019: unresolved
>  > > external symbol "public: void __thiscall
>  > > igstk::VideoImager::RequestStopImaging(void)"
>  > > (?RequestStopImaging at VideoImager@igstk@@QAEXXZ) referenced in function
>  > > "public: void __thiscall
>  > > igstk::VideoFrameGrabberAndViewerWebcamWin::RequestShutdown(void)"
>  > > (?RequestShutdown at VideoFrameGrabberAndViewerWebcamWin@igstk@@QAEXXZ)
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2019: unresolved
>  > > external symbol "public: virtual __thiscall igstk::Frame::~Frame(void)"
>  > > (??1Frame at igstk@@UAE at XZ) referenced in function
>  > > __unwindfunclet$??0?$VideoFrameSpatialObject at E$02 at igstk@@IAE at XZ$0
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2019: unresolved
>  > > external symbol "public: __thiscall igstk::Frame::Frame(void)"
>  > > (??0Frame at igstk@@QAE at XZ) referenced in function "protected: __thiscall
>  > > igstk::VideoFrameSpatialObject<unsigned
>  > > char,3>::VideoFrameSpatialObject<unsigned char,3>(void)"
>  > > (??0?$VideoFrameSpatialObject at E$02 at igstk@@IAE at XZ)
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2001: unresolved
>  > > external symbol "public: static double const
>  > > itk::NumericTraits<double>::Zero" (?Zero@?$NumericTraits at N@itk@@2NB)
>  > > 1>IGSTK.lib(igstkTransform.obj) : error LNK2001: unresolved external
>  > > symbol "public: static double const itk::NumericTraits<double>::Zero"
>  > > (?Zero@?$NumericTraits at N@itk@@2NB)
>  > > 1>IGSTK.lib(igstkTimeStamp.obj) : error LNK2001: unresolved external
>  > > symbol "public: static double const itk::NumericTraits<double>::Zero"
>  > > (?Zero@?$NumericTraits at N@itk@@2NB)
>  > > 1>IGSTK.lib(igstkAxesObject.obj) : error LNK2001: unresolved external
>  > > symbol "public: static double const itk::NumericTraits<double>::Zero"
>  > > (?Zero@?$NumericTraits at N@itk@@2NB)
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2019: unresolved
>  > > external symbol "public: double __thiscall
>  > > igstk::Frame::GetExpirationTime(void)const "
>  > > (?GetExpirationTime at Frame@igstk@@QBENXZ) referenced in function
> "public:
>  > > double __thiscall igstk::VideoFrameSpatialObject<unsigned
>  > > char,3>::GetFrameExpirationTime(void)const "
>  > > (?GetFrameExpirationTime@?$VideoFrameSpatialObject at E$02 at igstk@@QBENXZ)
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2019: unresolved
>  > > external symbol "public: class igstk::Frame * __thiscall
>  > > igstk::VideoImagerTool::GetInternalFrame(void)"
>  > > (?GetInternalFrame at VideoImagerTool@igstk@@QAEPAVFrame at 2@XZ) referenced
>  > > in function "public: double __thiscall
>  > > igstk::VideoFrameSpatialObject<unsigned
>  > > char,3>::GetFrameExpirationTime(void)const "
>  > > (?GetFrameExpirationTime@?$VideoFrameSpatialObject at E$02 at igstk@@QBENXZ)
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2019: unresolved
>  > > external symbol "public: double __thiscall
>  > > igstk::Frame::GetStartTime(void)const "
>  > > (?GetStartTime at Frame@igstk@@QBENXZ) referenced in function "public:
>  > > double __thiscall igstk::VideoFrameSpatialObject<unsigned
>  > > char,3>::GetFrameStartTime(void)const "
>  > > (?GetFrameStartTime@?$VideoFrameSpatialObject at E$02 at igstk@@QBENXZ)
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2019: unresolved
>  > > external symbol "public: void * __thiscall
>  > > igstk::Frame::GetImagePtr(void)" (?GetImagePtr at Frame@igstk@@QAEPAXXZ)
>  > > referenced in function "public: void __thiscall
>  > > igstk::VideoFrameSpatialObject<unsigned char,3>::UpdateImages(void)"
>  > > (?UpdateImages@?$VideoFrameSpatialObject at E$02 at igstk@@QAEXXZ)
>  > > 1>VideoFrameGrabberAndViewerWebcamWin.obj : error LNK2019: unresolved
>  > > external symbol "public: class igstk::Frame * __thiscall
>  > > igstk::VideoImagerTool::GetTemporalCalibratedFrame(void)"
>  > > (?GetTemporalCalibratedFrame at VideoImagerTool@igstk@@QAEPAVFrame at 2@XZ)
>  > > referenced in function "public: void __thiscall
>  > > igstk::VideoFrameSpatialObject<unsigned char,3>::UpdateImages(void)"
>  > > (?UpdateImages@?$VideoFrameSpatialObject at E$02 at igstk@@QAEXXZ)
>  > > 1>IGSTK.lib(igstkTransform.obj) : error LNK2001: unresolved external
>  > > symbol "public: static double const itk::NumericTraits<double>::One"
>  > > (?One@?$NumericTraits at N@itk@@2NB)
>  > > 1>C:\Documents and
>  > >
> Settings\TES\Desktop\IGSTK\IGSTK-4-2\igstk_bin\bin\Debug\VideoFrameGrabberAndViewerWebcamWin.exe
>  > > : fatal error LNK1120: 18 unresolved externals
>  > > 1>Build log was saved at "file://c:\Documents and
>  > >
> Settings\TES\Desktop\IGSTK\IGSTK-4-2\igstk_bin\Examples\VideoFrameGrabberAndViewerWebcam\VideoFrameGrabberAndViewerWebcamWin.dir\Debug\BuildLog.htm"
>  > > 1>VideoFrameGrabberAndViewerWebcamWin - 24 error(s), 0 warning(s)
>  > > ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
> ==========
>  > >
>  > >
> ------------------------------------------------------------------------
>  > > O SEU NAVEGADOR PODE TE PROTEGER DE FRAUDES NA WEB. VEJA DICAS DE
>  > > INTERNET EXPLORER 8
>  > >
> <http://www.microsoft.com/brasil/windows/internet-explorer/features/stay-safer-online.aspx?tabid=1&catid=1&WT.mc_id=1588>
>  > >
>  > >
>  > >
>  > > _______________________________________________
>  > > Powered by www.kitware.com
>  > >
>  > > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>  > >
>  > > Follow this link to subscribe/unsubscribe:
>  > > http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
>  > _______________________________________________
>  > Powered by www.kitware.com
>  >
>  > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>  >
>  > Follow this link to subscribe/unsubscribe:
>  > http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
>
> ------------------------------------------------------------------------
> O SEU NAVEGADOR PODE TE PROTEGER DE FRAUDES NA WEB. VEJA DICAS DE
> INTERNET EXPLORER 8
> <http://www.microsoft.com/brasil/windows/internet-explorer/features/stay-safer-online.aspx?tabid=1&catid=1&WT.mc_id=1588>



More information about the IGSTK-Users mailing list