macosx : problem with installation

Help
2004-12-09
2013-04-24
  • Hi !

    I would like to install xvidcap in macosX but it seems to not work...

    I made :
    ./configure
    make   -> 2 errors :
    xt_control.c: In function `CbPause':
    xt_control.c:521: error: invalid use of undefined type `struct timeval'
    xt_control.c:521: error: invalid use of undefined type `struct timeval'
    xt_control.c:558: error: invalid use of undefined type `struct timeval'
    xt_control.c:558: error: invalid use of undefined type `struct timeval'
    xt_control.c: In function `start_recording':
    xt_control.c:659: error: invalid use of undefined type `struct timeval'
    xt_control.c:659: error: invalid use of undefined type `struct timeval'
    /usr/include/ctype.h: At top level:
    xt_control.c:87: error: storage size of `curr_time' isn't known
    make[2]: *** [xvidcap-xt_control.o] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2

    What I make false ?

    Thank you very much

    Barth

     
    • Hi,
      sorry ... have no MacOSX machine to find  out where it stores its timeval definition. If you care trying to find it, I could try making xvidcap use it from where Macs define it.

      On Linux you have timeval defined in /usr/include/sys/time.h

      @ono-sendai(566)> grep timeval /usr/include/sys/time.h
      #define __need_timeval
      /* Macros for converting between `struct timeval' and `struct timespec'.  */
      extern int gettimeofday (struct timeval *__restrict __tv,
      extern int settimeofday (__const struct timeval *__tv,
      extern int adjtime (__const struct timeval *__delta,
                          struct timeval *__olddelta) __THROW;
          struct timeval it_interval;
          struct timeval it_value;
      extern int utimes (__const char *__file, __const struct timeval __tvp[2])
      extern int lutimes (__const char *__file, __const struct timeval __tvp[2])
      extern int futimes (int __fd, __const struct timeval __tvp[2]) __THROW;
      /* Convenience macros for operations on timevals.

      Maybe Macs don't have that struct at all, though.

      Good luck,

      Karl.