[IGSTK-Users] compiling IGSTK with MicronTracker support

Andinet Enquobahrie andinet.enqu at kitware.com
Fri Apr 25 16:35:54 EDT 2008


Hi Christopher,

If you turn on MicronTracker support, you have to specify the following 
two CMake variables

MTC_INCLUDE_DIRECTORY  : Directory containing the MTC header files
MTC_LIBRARY  : MTC library

The library comes with MicronTracker. You need to install it first if 
you haven't done that..

For example, in my Windows IGSTK build, CMakeCache file contains

//Directory where the MTC.h file is located
MTC_INCLUDE_DIRECTORY:PATH=C:/Program Files/Claron 
Technology/MicronTracker/Dist

//Full path to the MTC.dll file
MTC_LIBRARY:FILEPATH=C:/Program Files/Claron 
Technology/MicronTracker/Dist/MTC.lib

Check if these two variables are correctly set in your CMakeCache.txt 
file in your build directory.

HTH,
-Andinet

>
> I am having trouble compiling IGSTK with MicronTracker support set to 
> "ON".  I have no trouble compiling IGSTK and the Sandbox with this 
> option turned off.  However, when I try compiling with support on, I 
> get the following errors when igstkMTCu is building:
>
> Compiling...
> Xform3D.cpp
> Vector.cpp
> Persistence.cpp
> Markers.cpp
> ..\..\..\..\IGSTK-3.0\Utilities\MicronTracker\src\Markers.cpp(249) : 
> error C3861: 'Markers_ExtrapolatedFramesGet': identifier not found
> ..\..\..\..\IGSTK-3.0\Utilities\MicronTracker\src\Markers.cpp(265) : 
> error C3861: 'Markers_ExtrapolatedFramesSet': identifier not found
> ..\..\..\..\IGSTK-3.0\Utilities\MicronTracker\src\Markers.cpp(281) : 
> error C3861: 'Markers_SmallerXPFootprint': identifier not found
> ..\..\..\..\IGSTK-3.0\Utilities\MicronTracker\src\Markers.cpp(297) : 
> error C3861: 'Markers_SmallerXPFootprintSet': identifier not found
> Marker.cpp
> MCamera.cpp
> Facet.cpp
> ..\..\..\..\IGSTK-3.0\Utilities\MicronTracker\src\Facet.cpp(157) : 
> warning C4018: '<' : signed/unsigned mismatch
> ..\..\..\..\IGSTK-3.0\Utilities\MicronTracker\src\Facet.cpp(221) : 
> warning C4018: '<' : signed/unsigned mismatch
> Collection.cpp
> Cameras.cpp
> Generating Code...
>
> To try and get rid of these errors, I added the following definitions 
> to mtc.h:
> EXT mtCompletionCode CCONV Markers_ExtrapolatedFramesGet(int *p_out);
> EXT mtCompletionCode CCONV Markers_ExtrapolatedFramesSet(int newval);
> EXT bool CCONV Markers_SmallerXPFootprint();
> EXT mtCompletionCode CCONV Markers_SmallerXPFootprintSet(bool newval);
>
> This lets igstkMTCu build, but I get the following type of error when 
> I try and build a project that uses igstkMTCu (such as 
> OneViewAndTrackingUsingMicronTracker):
>
> igstkMTCu.lib(Markers.obj) : error LNK2019: unresolved external symbol 
> _Markers_ExtrapolatedFramesGet at 4 referenced in function "public: int 
> __thiscall Markers::getExtrapolatedFrames(void)" 
> (?getExtrapolatedFrames at Markers@@QAEHXZ)
>
> Has anyone seen anything like this?  Am I using an outdated version of 
> the MTC API (R2.1)?  If so, what version do I need to be using and 
> does anyone know where to find it?  Also, if anyone knows of a 
> word-around, I would be thrilled to hear of it.
>
> Thanks for all your help,
> Christopher
>
>
>
>
> Christopher Heath
> Vanderbilt University School of Engineering
> christopher.c.heath at vanderbilt.edu 
> <mailto:christopher.c.heath at vanderbilt.edu>
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>IGSTK-Users mailing list
>IGSTK-Users at public.kitware.com
>http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
>


-- 
==========================================================
Andinet A. Enquobahrie, PhD
R&D Engineer
Kitware Inc.

28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x124
www.kitware.com





More information about the IGSTK-Users mailing list