[IGSTK-Users] Ascension3DGTracker
Cheng, Patrick
PCheng at childrensnational.org
Tue Jan 24 17:29:12 EST 2012
Hi Sean,
Looking at the CMakeCache.txt file, it looks like you are using a
library stored at a different location:
//Directory where the ATC3DG.h file is located
ATC_INCLUDE_DIRECTORY:PATH=C:/Users/sli/Desktop/trakSTAR/Samples/Sample
//Full path to the ATC3DG.dll file
ATC_LIBRARY:FILEPATH=C:/Users/sli/Desktop/trakSTAR/Samples/Sample/ATC3DG
.lib
Can you try to set it to:
C:\Program Files\Ascension\3D Guidance (Rev D)\3D Guidance
API\ATC3DG.lib
It might be a version issue.
Patrick
From: Sean Lee [mailto:kevinseanlee at live.com]
Sent: Tuesday, January 24, 2012 5:23 PM
To: Cheng, Patrick
Subject: RE: [IGSTK-Users] Ascension3DGTracker
Here you are. Thanks.
________________________________
Subject: RE: [IGSTK-Users] Ascension3DGTracker
Date: Tue, 24 Jan 2012 17:11:14 -0500
From: PCheng at childrensnational.org
To: kevinseanlee at live.com
Hi Sean,
Can you send me your CMakeCache.txt file in your IGSTK binary directory?
Thanks,
Patrick
From: Sean Lee [mailto:kevinseanlee at live.com]
Sent: Tuesday, January 24, 2012 5:06 PM
To: Cheng, Patrick
Subject: RE: [IGSTK-Users] Ascension3DGTracker
Hi, Patrick,
Thank you very much for your prompt reply.
I have not found answers from your reply yet.
I can run the sample code from ATC very well, in which I set "C:\Program
Files\Ascension\3D Guidance (Rev D)\3D Guidance API\ATC3DG.lib" in
Additional Dependencies. I did same thing to Navigator, it brought out
those link errors with titled IGSTK.lib(igstkAscension3DGTracker.obj) :
error LNK2019: unresolved external symbol ...
No compiling error from IGSTK project. So I think it is something
regarding the link configuration. dll library?
I look forward to hearing from you soon. Thanks.
Sean
________________________________
Subject: RE: [IGSTK-Users] Ascension3DGTracker
Date: Tue, 24 Jan 2012 15:30:38 -0500
From: PCheng at childrensnational.org
To: kevinseanlee at live.com; igstk-users at public.kitware.com
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/68544c5b/attachment.html>
More information about the IGSTK-Users
mailing list