[IGSTK-Users] Ascension3DGTracker

Cheng, Patrick PCheng at childrensnational.org
Tue Jan 24 15:30:38 EST 2012


Hi Sean,

 

To enable support for Ascesion3DGTracker, you need to specify the
location of Ascension tracker's library and header files before you can
compile the code.

 

You need to specify:

 

Ascension3DG_MedSafe   (weather you are using the Medsafe version of the
tracker, which uses different name for its library)

ATC_LIBRARY   (the path to ATC3DG.dll, or ATC3DGm.dll for MedSafe
version)

ATC_INCLUDE_DIRECTORY (the path includes ATC3DG.h, or ATC3DGm.h for
MedSafe version )

 

Below is the cmake scripts for setting up Ascension tracker build
support:

 

# Connect Ascension 3DG tracker

OPTION(IGSTK_USE_Ascension3DGTracker "Connect Ascension 3D Guidance
Tracker" OFF)

IF(IGSTK_USE_Ascension3DGTracker)

  OPTION(Ascension3DG_MedSafe "Use MedSafe version of the tracker" OFF)

  IF(Ascension3DG_MedSafe) # Use MedSafe version

    FIND_PATH(ATC_INCLUDE_DIRECTORY ATC3DGm.h

    "C:/Program Files/Ascension/3D Guidance medSAFE (Rev F)/3D Guidance
API"

    DOC "Directory where the ATC3DGm.h file is located")

    INCLUDE_DIRECTORIES( ${ATC_INCLUDE_DIRECTORY} )

 

    FIND_LIBRARY( ATC_LIBRARY 

      NAMES ATC3DGm ATC3DGm.dll

      PATHS "C:/Program Files/Ascension/3D Guidance medSAFE (Rev F)/3D
Guidance API"

      DOC "Full path to the ATC3DG.dll file"

      )

  ELSE(Ascension3DG_MedSafe) # Use non MedSafe version

    FIND_PATH(ATC_INCLUDE_DIRECTORY ATC3DG.h

    "C:/Program Files/Ascension/3D Guidance (Rev D)/3D Guidance API"

    DOC "Directory where the ATC3DG.h file is located")

    INCLUDE_DIRECTORIES( ${ATC_INCLUDE_DIRECTORY} )

 

    FIND_LIBRARY( ATC_LIBRARY 

      NAMES ATC3DG ATC3DG.dll

      PATHS "C:/Program Files/Ascension/3D Guidance (Rev D)/3D Guidance
API"

      DOC "Full path to the ATC3DG.dll file"

      )

  ENDIF(Ascension3DG_MedSafe)

  

  GET_FILENAME_COMPONENT( ATC_LIBRARY_DIRS ${ATC_LIBRARY} PATH )

  LINK_DIRECTORIES( ${ATC_LIBRARY_DIRS} )

ENDIF(IGSTK_USE_Ascension3DGTracker)

 

From: igstk-users-bounces at public.kitware.com
[mailto:igstk-users-bounces at public.kitware.com] On Behalf Of Sean Lee
Sent: Tuesday, January 24, 2012 2:43 PM
To: igstk-users at public.kitware.com
Subject: [IGSTK-Users] Ascension3DGTracker

 

I am trying to use this tracking tool in Navigator. Always got a link
error like the following

 

2>Link:

2>     Creating library C:/IGSTK-4.4/bin/bin/Debug/Navigator.lib and
object C:/IGSTK-4.4/bin/bin/Debug/Navigator.exp

2>IGSTK.lib(igstkAscension3DGTracker.obj) : error LNK2019: unresolved
external symbol __imp_GetSensorStatus referenced in function "protected:
virtual enum igstk::Tracker::ResultType __cdecl
igstk::Ascension3DGTracker::InternalOpen(void)"
(?InternalOpen at Ascension3DGTracker@igstk@@MEAA?AW4ResultType at Tracker@2 at X
Z)

2>IGSTK.lib(igstkAscension3DGTracker.obj) : error LNK2019: unresolved
external symbol __imp_SetSensorParameter referenced in function
"protected: virtual enum igstk::Tracker::ResultType __cdecl
igstk::Ascension3DGTracker::InternalOpen(void)"
(?InternalOpen at Ascension3DGTracker@igstk@@MEAA?AW4ResultType at Tracker@2 at X
Z)

2>IGSTK.lib(igstkAscension3DGTracker.obj) : error LNK2019: unresolved
external symbol __imp_SetSystemParameter referenced in function
"protected: virtual enum igstk::Tracker::ResultType __cdecl
igstk::Ascension3DGTracker::InternalOpen(void)"
(?InternalOpen at Ascension3DGTracker@igstk@@MEAA?AW4ResultType at Tracker@2 at X
Z)

2>IGSTK.lib(igstkAscension3DGTracker.obj) : error LNK2019: unresolved
external symbol __imp_GetBIRDSystemConfiguration referenced in function
"protected: virtual enum igstk::Tracker::ResultType __cdecl
igstk::Ascension3DGTracker::InternalOpen(void)"
(?InternalOpen at Ascension3DGTracker@igstk@@MEAA?AW4ResultType at Tracker@2 at X
Z)

2>IGSTK.lib(igstkAscension3DGTracker.obj) : error LNK2019: unresolved
external symbol __imp_InitializeBIRDSystem referenced in function
"protected: virtual enum igstk::Tracker::ResultType __cdecl
igstk::Ascension3DGTracker::InternalOpen(void)"
(?InternalOpen at Ascension3DGTracker@igstk@@MEAA?AW4ResultType at Tracker@2 at X
Z)

 

If I set off the use of Ascension3DGTracker in CMake, I would not get
this link error. What did I do wrong?

 

Thanks.

 

Kevin

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20120124/6aaf72ff/attachment.html>


More information about the IGSTK-Users mailing list