libtheora под FreeBSD - ошибка при сборке: In file included from dump_video.c
создано 20.07.2011 20:54:55Если при сборке libtheora из исходников вы встретите сообщение:
In file included from dump_video.c:40:
/usr/include/sys/timeb.h:43: error: expected specifier-qualifier-list before 'time_t'
dump_video.c: In function 'main':
dump_video.c:446: error: 'struct timeb' has no member named 'time'
dump_video.c:446: error: 'struct timeb' has no member named 'millitm'
dump_video.c:447: error: 'struct timeb' has no member named 'time'
dump_video.c:447: error: 'struct timeb' has no member named 'millitm'
dump_video.c:454: error: 'struct timeb' has no member named 'time'
dump_video.c:454: error: 'struct timeb' has no member named 'millitm'
dump_video.c:455: error: 'struct timeb' has no member named 'time'
dump_video.c:455: error: 'struct timeb' has no member named 'millitm'
*** Error code 1
то решение проблемы не настолько сложно, как вы можете подумать.
В каталоге исходников libtheora зайдите в каталог /examples и в файле
dump_video.c найдите строку
#include <sys/timeb.h>
и перед ней добавьте строку
#include <sys/time.h>
И проблема будет решена
«Важнейшей задачей для нас является сейчас: учиться и учиться» В.И. Ленин