[Ctk-developers] mac build error to do with clocks in plugin framework

Sascha Zelzer s.zelzer at dkfz-heidelberg.de
Mon Apr 29 15:59:06 EDT 2013


Hi Steve,

sorry for that, I have a working version locally, which I will commit 
soon. Although MacOS defines _POSIX_MONOTONIC_CLOCK it does not 
implement the related functions...

Thanks,
Sascha

On 04/29/2013 04:44 PM, Steve Pieper wrote:
> 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, &current);
>                 ^
> /Users/pieper/ctk/latest/CTK/Libs/Core/ctkHighPrecisionTimer.h:97:17:
> error:
>       use of undeclared identifier 'CLOCK_MONOTONIC'
>   clock_gettime(CLOCK_MONOTONIC, &current);
>                 ^
> 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
>




More information about the Ctk-developers mailing list