[Ctk-developers] mac build error to do with clocks in plugin	framework
    Steve Pieper 
    pieper at ibility.net
       
    Mon Apr 29 14:44:57 UTC 2013
    
    
  
Hi Folks -
It looks like the high precision timer changes [1] introduced a mac build
error (pasted at the end of this note.  This is from a fresh build enabling
everything.  It seems macs don't support some features, but there are
workarounds[2].
-Steve
[1]
https://github.com/commontk/CTK/commit/6fef28fc134c27e16a7c1998a8f74df53618f6d6
[2]
http://stackoverflow.com/questions/5167269/clock-gettime-alternative-in-mac-os-x
[ 15%] Building CXX object
Libs/PluginFramework/Testing/org.commontk.pluginfwtest.perf/CMakeFiles/org_commontk_pluginfwtest_perf.dir/ctkPluginFrameworkPerfRegistryTestSuite.cpp.o
In file included from
/Users/pieper/ctk/latest/CTK/Libs/PluginFramework/Testing/org.commontk.pluginfwtest.perf/ctkPluginFrameworkPerfRegistryTestSuite.cpp:26:
/Users/pieper/ctk/latest/CTK/Libs/Core/ctkHighPrecisionTimer.h:83:17:
error:
      use of undeclared identifier 'CLOCK_MONOTONIC'
  clock_gettime(CLOCK_MONOTONIC, &startTime);
                ^
/Users/pieper/ctk/latest/CTK/Libs/Core/ctkHighPrecisionTimer.h:89:17:
error:
      use of undeclared identifier 'CLOCK_MONOTONIC'
  clock_gettime(CLOCK_MONOTONIC, ¤t);
                ^
/Users/pieper/ctk/latest/CTK/Libs/Core/ctkHighPrecisionTimer.h:97:17:
error:
      use of undeclared identifier 'CLOCK_MONOTONIC'
  clock_gettime(CLOCK_MONOTONIC, ¤t);
                ^
3 errors generated.
make[5]: ***
[Libs/PluginFramework/Testing/org.commontk.pluginfwtest.perf/CMakeFiles/org_commontk_pluginfwtest_perf.dir/ctkPluginFrameworkPerfRegistryTestSuite.cpp.o]
Error 1
make[4]: ***
[Libs/PluginFramework/Testing/org.commontk.pluginfwtest.perf/CMakeFiles/org_commontk_pluginfwtest_perf.dir/all]
Error 2
make[3]: *** [all] Error 2
make[2]: *** [CMakeFiles/CTK-build] Error 2
make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2
make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20130429/86fb9fac/attachment.htm>
    
    
More information about the Ctk-developers
mailing list