Hi Ozgur<div><br></div><div>I was wondering if there is something else you can do to help me solve my problem? </div><div><br></div><div>Thanks a lot for your help<br><br><div class="gmail_quote">On Sun, Jun 17, 2012 at 9:02 PM, Fabian Torres <span dir="ltr"><<a href="mailto:fabian.trobles@gmail.com" target="_blank">fabian.trobles@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi again. Thanks for your help<div><br></div><div>The thing is that Ascension MedSafe comes with a Setup.exe that installs some utilities and the Ascension API and library (ATCDGm.dll, ATCDGm.h and ATCDGm.cpp) so I really so not know which compiler was used. </div>

<div><br></div><div>In the CMakelists in IGSTK I think that the correct libraries and sources are linked correctly. Here is the code in the .txt when I check the Ascenstio3dgtracker and the medsafe flags. In CMake gui I´m able to see that the directories are correct</div>

<div><br></div><div><div>IF(Ascension3DG_MedSafe) # Use MedSafe version</div><div>    FIND_PATH(ATC_INCLUDE_DIRECTORY ATC3DGm.h</div><div>    "C:/Program Files/Ascension/3D Guidance medSAFE (Rev F)/3D Guidance API"</div>

<div>    DOC "Directory where the ATC3DGm.h file is located")</div><div>    INCLUDE_DIRECTORIES( ${ATC_INCLUDE_DIRECTORY} )</div><div><br></div><div>    FIND_LIBRARY( ATC_LIBRARY </div><div>      NAMES ATC3DGm ATC3DGm.dll</div>

<div>      PATHS "C:/Program Files/Ascension/3D Guidance medSAFE (Rev F)/3D Guidance API"</div><div>      DOC "Full path to the ATC3DG.dll file"</div><div>      )</div></div><div class="HOEnZb"><div class="h5">
<div><br></div><div><br><div class="gmail_quote">
On Sat, Jun 16, 2012 at 12:24 PM, Özgür Güler <span dir="ltr"><<a href="mailto:ozgur.guler.phd@gmail.com" target="_blank">ozgur.guler.phd@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<p>Hi Fabian, <br>
that was what I wanted to know. Thx.<br>
Next step is to look into the CMakelists.txt in the source directory of IGSTK and check if the appropriate libs are  linked correctly. I assume you compiled the Ascension SDK with the same compiler you are working with now. </p>



<p>Best,<br>
Ozgur<br><br></p><div><div>
<div class="gmail_quote">On Jun 16, 2012 1:06 PM, "Fabian Torres" <<a href="mailto:fabian.trobles@gmail.com" target="_blank">fabian.trobles@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">


Hi Ozgur,<div><br></div><div>I have checked the Ascension API function calls in InternalOpen() and it seems that the functions are the same. If I understand your advice, the InternalOpen() should call existing methods of the Ascension API that I'm using, if thats right, Yes the methods that are called in InternalOpen() exist in the API. If that was not the approach can you explain it a little bit more?</div>



<div><br></div><div>So if I´m right the tracker interface implementation in IGSTK is the same in my current API.</div><div><br></div><div>What would be the next step to debig the error?</div><div><br></div><div>Thanks a lot</div>



<div><br><div class="gmail_quote">On Sat, Jun 16, 2012 at 12:43 AM, Özgür Güler <span dir="ltr"><<a href="mailto:ozgur.guler.phd@gmail.com" target="_blank">ozgur.guler.phd@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<p>Hi Fabian,<br>
it seems that the current Ascension tracker interface implementation in IGSTK is different then your current API.  In order to check that, you can compare e.g. Ascension API function calls inside the IGSTK function InternalOpen() with functions corresponding to your new API. If lets say the initialization in the IGSTK tracker class is different then your initialization code, then  an appropriate new IGSTK tracker class has to be implemented. <br>





Please let me know if the APIs are different or not. If the APIs are the same then we have to look at CMake configurations, especially the linking configuration.</p>
<p>Best,<br>
Ozgur</p>
<div class="gmail_quote"><div><div>On Jun 15, 2012 1:47 PM, "Fabian Torres" <<a href="mailto:fabian.trobles@gmail.com" target="_blank">fabian.trobles@gmail.com</a>> wrote:<br type="attribution">
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
Hi <div><br></div><div>This is not the first time I post this on IGSTK Users. But I haven`t found Anyone who can help to solve my problem.</div><div>I`m trying to use IGSTK with medSafe Ascension tracker and I haven`t been able to make it work.</div>





<div>About 5 months Ago I was told that the problem I have  will need to work with Ascension to find the best way to resolve this issue.</div><div><br></div><div>I thought that with IGSTK 5.0 this issue was solved but it doesn't. I`m going to re post the problems I have. Please I need to work with the Ascencion medSafe tracker</div>





<div>as soon as possible. If someone has managed to work with it I would be glad to hear how to do this.</div><div><br></div><div>I'm using VTK 5.8 IGSTK 5.0 VisualStudio2008 and 32 bit Windows7.</div><div><br></div>




<div>
Thanks</div><div><br></div><div>The  errors I get trying to compile IGSTK 5.0 or any other application made by myself using IGSTK 5.0 and medSafe are these:</div><div><br></div><div><pre>Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport)
unsigned long __cdecl atc::GetSensorStatus(unsigned short)"
(__imp_?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">GetSensorStatus at atc</a>@@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">YAKG at Z</a>) referenced in function "protected:
virtual enum igstk::Tracker::ResultType __thiscall
igstk::Ascension3DGTracker::InternalOpen(void)"
(?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">InternalOpen at Ascension3DGTracker</a>@igstk@@MAE?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">AW4ResultType at Tracker</a>@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">2 at XZ</a>)
IGSTK.lib

*Error 2 error LNK2019: unresolved external symbol "__declspec(dllimport)
int __cdecl atc::SetSensorParameter(unsigned short,enum
atc::SENSOR_PARAMETER_TYPE,void *,int)" (__imp_?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">SetSensorParameter at atc</a>
@@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">YAHGW4SENSOR_PARAMETER_TYPE at 1</a>@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">PAXH at Z</a>) referenced in function "protected:
virtual enum igstk::Tracker::ResultType __thiscall
igstk::Ascension3DGTracker::InternalOpen(void)"
(?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">InternalOpen at Ascension3DGTracker</a>@igstk@@MAE?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">AW4ResultType at Tracker</a>@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">2 at XZ</a>)
IGSTK.lib*

*Error 3 error LNK2019: unresolved external symbol "__declspec(dllimport)
int __cdecl atc::SetSystemParameter(enum atc::SYSTEM_PARAMETER_TYPE,void
*,int)" (__imp_?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">SetSystemParameter at atc</a>@@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">YAHW4SYSTEM_PARAMETER_TYPE at 1</a>@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">PAXH at Z</a>)
referenced in function "protected: virtual enum igstk::Tracker::ResultType
__thiscall igstk::Ascension3DGTracker::InternalOpen(void)"
(?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">InternalOpen at Ascension3DGTracker</a>@igstk@@MAE?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">AW4ResultType at Tracker</a>@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">2 at XZ</a>)
IGSTK.lib*

*Error 4 error LNK2019: unresolved external symbol "__declspec(dllimport)
int __cdecl atc::GetBIRDSystemConfiguration(struct
atc::tagSYSTEM_CONFIGURATION *)" (__imp_?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">GetBIRDSystemConfiguration at atc</a>
@@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">YAHPAUtagSYSTEM_CONFIGURATION at 1</a>@@Z) referenced in function "protected:
virtual enum igstk::Tracker::ResultType __thiscall
igstk::Ascension3DGTracker::InternalOpen(void)"
(?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">InternalOpen at Ascension3DGTracker</a>@igstk@@MAE?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">AW4ResultType at Tracker</a>@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">2 at XZ</a>)
IGSTK.lib*

*Error 5 error LNK2019: unresolved external symbol "__declspec(dllimport)
int __cdecl atc::InitializeBIRDSystem(void)"
(__imp_?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">InitializeBIRDSystem at atc</a>@@YAHXZ) referenced in function "protected:
virtual enum igstk::Tracker::ResultType __thiscall
igstk::Ascension3DGTracker::InternalOpen(void)"
(?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">InternalOpen at Ascension3DGTracker</a>@igstk@@MAE?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">AW4ResultType at Tracker</a>@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">2 at XZ</a>)
IGSTK.lib*

*Error 6 error LNK2019: unresolved external symbol "__declspec(dllimport)
int __cdecl atc::CloseBIRDSystem(void)" (__imp_?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">CloseBIRDSystem at atc</a>@@YAHXZ)
referenced in function "protected: virtual enum igstk::Tracker::ResultType
__thiscall igstk::Ascension3DGTracker::InternalClose(void)"
(?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">InternalClose at Ascension3DGTracker</a>@igstk@@MAE?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">AW4ResultType at Tracker</a>@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">2 at XZ</a>)
IGSTK.lib*

*Error 7 error LNK2019: unresolved external symbol "__declspec(dllimport)
int __cdecl atc::GetTransmitterConfiguration(unsigned short,struct
atc::tagTRANSMITTER_CONFIGURATION *)"
(__imp_?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">GetTransmitterConfiguration at atc</a>
@@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">YAHGPAUtagTRANSMITTER_CONFIGURATION at 1</a>@@Z) referenced in function
"protected: virtual enum igstk::Tracker::ResultType __thiscall
igstk::Ascension3DGTracker::InternalStartTracking(void)"
(?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">InternalStartTracking at Ascension3DGTracker</a>@igstk@@MAE?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">AW4ResultType at Tracker</a>
@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">2 at XZ</a>) IGSTK.lib*

*Error 8 error LNK2019: unresolved external symbol "__declspec(dllimport)
int __cdecl atc::GetBoardConfiguration(unsigned short,struct
atc::tagBOARD_CONFIGURATION *)" (__imp_?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">GetBoardConfiguration at atc</a>
@@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">YAHGPAUtagBOARD_CONFIGURATION at 1</a>@@Z) referenced in function "protected:
virtual enum igstk::Tracker::ResultType __thiscall
igstk::Ascension3DGTracker::InternalStartTracking(void)"
(?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">InternalStartTracking at Ascension3DGTracker</a>@igstk@@MAE?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">AW4ResultType at Tracker</a>
@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">2 at XZ</a>) IGSTK.lib*

*Error 9 error LNK2019: unresolved external symbol "__declspec(dllimport)
int __cdecl atc::GetSynchronousRecord(unsigned short,void *,int)"
(__imp_?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">GetSynchronousRecord at atc</a>@@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">YAHGPAXH at Z</a>) referenced in function
"protected: virtual enum igstk::Tracker::ResultType __thiscall
igstk::Ascension3DGTracker::InternalThreadedUpdateStatus(void)"
(?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">InternalThreadedUpdateStatus at Ascension3DGTracker</a>@igstk@
@MAE?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">AW4ResultType at Tracker</a>@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">2 at XZ</a>) IGSTK.lib*

*Error 10 error LNK2019: unresolved external symbol "__declspec(dllimport)
int __cdecl atc::GetErrorText(int,char *,int,enum atc::MESSAGE_TYPE)"
(__imp_?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">GetErrorText at atc</a>@@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">YAHHPADHW4MESSAGE_TYPE at 1</a>@@Z) referenced in
function "private: int __thiscall
igstk::Ascension3DGTracker::CheckAPIReturnStatus(int)"
(?<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">CheckAPIReturnStatus at Ascension3DGTracker</a>@igstk@@<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">AAEHH at Z</a>) IGSTK.lib*
</pre><br></div><div><div><br></div>-- <br>Fabián Torres Robles<br>Maestria en Ciencias en Ingeniería Electrónica<br>Ingeniería en Sistemas Electrónicos<br>tel. 58081280, 0445534661338<br>
e-mail <a href="mailto:fabian.trobles@gmail.com" target="_blank">fabian.trobles@gmail.com</a>, <a href="mailto:dae.wong@gmail.com" target="_blank">dae.wong@gmail.com</a>  <div style="line-height:130%;text-align:left;font-size:10px;overflow:hidden;margin-left:0px;word-wrap:break-word;margin-top:0px;padding:0px">





</div><div style="line-height:130%;text-align:left;font-size:10px;overflow:hidden;margin-left:0px;word-wrap:break-word;margin-top:0px;padding:0px"></div><br>
</div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users</a><br></blockquote></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Fabián Torres Robles<br>Maestria en Ciencias en Ingeniería Electrónica<br>Ingeniería en Sistemas Electrónicos<br>tel. 58081280, 0445534661338<br>e-mail <a href="mailto:fabian.trobles@gmail.com" target="_blank">fabian.trobles@gmail.com</a>, <a href="mailto:dae.wong@gmail.com" target="_blank">dae.wong@gmail.com</a>  <div style="line-height:130%;text-align:left;font-size:10px;overflow:hidden;margin-left:0px;word-wrap:break-word;margin-top:0px;padding:0px">



</div><div style="line-height:130%;text-align:left;font-size:10px;overflow:hidden;margin-left:0px;word-wrap:break-word;margin-top:0px;padding:0px"></div><br>
</div>
</blockquote></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Fabián Torres Robles<br>Maestria en Ciencias en Ingeniería Electrónica<br>Ingeniería en Sistemas Electrónicos<br>tel. 58081280, 0445534661338<br>e-mail <a href="mailto:fabian.trobles@gmail.com" target="_blank">fabian.trobles@gmail.com</a>, <a href="mailto:dae.wong@gmail.com" target="_blank">dae.wong@gmail.com</a>  <div style="line-height:130%;text-align:left;font-size:10px;overflow:hidden;margin-left:0px;word-wrap:break-word;margin-top:0px;padding:0px">

</div><div style="line-height:130%;text-align:left;font-size:10px;overflow:hidden;margin-left:0px;word-wrap:break-word;margin-top:0px;padding:0px"></div><br>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Fabián Torres Robles<br>Maestria en Ciencias en Ingeniería Electrónica<br>Ingeniería en Sistemas Electrónicos<br>tel. 58081280, 0445534661338<br>e-mail <a href="mailto:fabian.trobles@gmail.com" target="_blank">fabian.trobles@gmail.com</a>, <a href="mailto:dae.wong@gmail.com" target="_blank">dae.wong@gmail.com</a>  <div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><br>
</div>