[IGSTK-Users] compiling IGSTK with MicronTracker support
Andinet Enquobahrie
andinet.enqu at kitware.com
Tue Apr 29 11:35:26 EDT 2008
Chris Heath wrote:
> Andinet,
>
> I used version 2.8 and it seemed to build correctly. Thanks for the
> help.
Great to hear that!
Let us know if you encounter any other problems.
-Andinet
>
> On Apr 28, 2008, at 12:32 PM, Andinet Enquobahrie wrote:
>
>> Dear all,
>>
>> I have committed a cmake script to IGSTK CVS that parses the version
>> of the MTC
>> library. Plus, I made changes to the cmake configuration to enforce
>> MTC version 2.6 or later.
>>
>> During cmake configuration, if an older version is specified, an
>> error message will be
>> displayed.
>>
>> Let me know if you encounter any problems.
>>
>> -Andinet
>>
>>> Hi Christopher,
>>>
>>> I also tried to compile IGSTK with MicronTracker support last week,
>>> and
>>> I had the same problem.
>>> Actually, it seems that your version is out of date.
>>> 'Markers_ExtrapolatedFramesGet/Set' and 'Markers_SmallerXPFootprint'
>>> functions are not declared in version 2.1 not 2.5.
>>> I finally succeed in compiling IGSTK with MicronTracker support by
>>> using
>>> the 2.7 version of the MTC API.
>>>
>>> I hope that this helps you...
>>>
>>> Vincent
>>>
>>> Andinet Enquobahrie a écrit :
>>>
>>>> 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
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
>
--
==========================================================
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