LinuxForum.Fans
Тема

Motion + Suse 11.4

Автор: xdenis 3 сообщений 2905 просмотров
#212589

Доброго времени суток, уважаемые. Не могу установить motion, Пробовал из исходников (motion-3.2.12), получаю следующее (последние несколько строчек):
[console]fmpeg.c:26:10: warning: #warning **************************************************
ffmpeg.c:27:10: warning: #warning Your version of FFmpeg is newer than version 0.4.8
ffmpeg.c:28:10: warning: #warning Newer versions of ffmpeg do not support MPEG1 with
ffmpeg.c:29:10: warning: #warning non-standard framerate. MPEG1 will be disabled for
ffmpeg.c:30:10: warning: #warning normal video output. You can still use mpeg4 and
ffmpeg.c:31:10: warning: #warning and mpeg4ms which are both better in terms of size
ffmpeg.c:32:10: warning: #warning and quality. MPEG1 is always used for timelapse.
ffmpeg.c:33:10: warning: #warning Please read the Motion Guide for more information.
ffmpeg.c:34:10: warning: #warning Note that this is not an error message!
ffmpeg.c:35:10: warning: #warning **************************************************
ffmpeg.c:183:5: warning: initialization from incompatible pointer type
ffmpeg.c: In function ‘mpeg1_write_trailer’:
ffmpeg.c:202:5: warning: ‘put_buffer’ is deprecated (declared at /usr/include/libavformat/avio.h:256)
ffmpeg.c:203:5: warning: ‘put_flush_packet’ is deprecated (declared at /usr/include/libavformat/avio.h:293)
ffmpeg.c: In function ‘ffmpeg_init’:
ffmpeg.c:232:5: warning: implicit declaration of function ‘av_register_protocol’
ffmpeg.c: In function ‘get_oformat’:
ffmpeg.c:261:9: warning: implicit declaration of function ‘guess_format’
ffmpeg.c:261:12: warning: assignment makes pointer from integer without a cast
ffmpeg.c:273:12: warning: assignment makes pointer from integer without a cast
ffmpeg.c:276:12: warning: assignment makes pointer from integer without a cast
ffmpeg.c:283:12: warning: assignment makes pointer from integer without a cast
ffmpeg.c:286:12: warning: assignment makes pointer from integer without a cast
ffmpeg.c:290:12: warning: assignment makes pointer from integer without a cast
ffmpeg.c:298:12: warning: assignment makes pointer from integer without a cast
ffmpeg.c: In function ‘ffmpeg_open’:
ffmpeg.c:380:21: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
ffmpeg.c:380:21: note: each undeclared identifier is reported only once for each function it appears in
ffmpeg.c:420:5: warning: ‘av_set_parameters’ is deprecated (declared at /usr/include/libavformat/avformat.h:1434)
ffmpeg.c:501:9: warning: ‘url_fopen’ is deprecated (declared at /usr/include/libavformat/avio.h:279)
ffmpeg.c:511:17: warning: ‘url_fopen’ is deprecated (declared at /usr/include/libavformat/avio.h:279)
ffmpeg.c:532:5: warning: ‘av_write_header’ is deprecated (declared at /usr/include/libavformat/avformat.h:1492)
ffmpeg.c: In function ‘ffmpeg_close’:
ffmpeg.c:599:9: warning: ‘url_fclose’ is deprecated (declared at /usr/include/libavformat/avio.h:280)
ffmpeg.c: In function ‘ffmpeg_put_frame’:
ffmpeg.c:649:22: error: ‘PKT_FLAG_KEY’ undeclared (first use in this function)
make: *** [ffmpeg.o] Ошибка 1
[/console]

Второй вариант:
[console]opensuse:/home/denis/downloads # rpm -Uvh motion-3.2.12-2.28.i586.rpm
предупреждение: motion-3.2.12-2.28.i586.rpm: Заголовок V3 DSA/SHA1 Signature, key ID 462b55bd: NOKEY
ошибка: Неудовлетворенные зависимости:
libjpeg.so.62(LIBJPEG_6.2) нужен для motion-3.2.12-2.28.i586
libmysqlclient.so.18 нужен для motion-3.2.12-2.28.i586
[/console]
libjpeg.so.62 установлен, второй компонент тоже присутствует:
[console]opensuse:/usr/lib # ls -l libmysqlclient*
lrwxrwxrwx 1 root root 33 Дек 9 17:57 libmysqlclient.so.15 -> /usr/lib/libmysqlclient.so.16.0.0
lrwxrwxrwx 1 root root 24 Дек 9 17:33 libmysqlclient.so.16 -> libmysqlclient.so.16.0.0
-rwxr-xr-x 1 root root 1529296 Июн 7 2011 libmysqlclient.so.16.0.0
lrwxrwxrwx 1 root root 33 Дек 9 18:02 libmysqlclient.so.18 -> /usr/lib/libmysqlclient.so.16.0.0
opensuse:/usr/lib # cd ../lib64; ls -l libmysqlclient*
lrwxrwxrwx 1 root root 26 Окт 4 21:03 libmysqlclient_r.so.16 -> libmysqlclient_r.so.16.0.0
-rwxr-xr-x 1 root root 1603168 Фев 21 2011 libmysqlclient_r.so.16.0.0
lrwxrwxrwx 1 root root 35 Дек 9 17:48 libmysqlclient.so.15 -> /usr/lib64/libmysqlclient.so.16.0.0
lrwxrwxrwx 1 root root 24 Окт 4 21:03 libmysqlclient.so.16 -> libmysqlclient.so.16.0.0
-rwxr-xr-x 1 root root 1590560 Фев 21 2011 libmysqlclient.so.16.0.0
lrwxrwxrwx 1 root root 35 Дек 9 17:51 libmysqlclient.so.18 -> /usr/lib64/libmysqlclient.so.16.0.0
opensuse:/usr/lib64 #

[/console]

Так как мне установить motion?

#212736

Разобрался. Поставил из исходников. Но предварительно добавил пакет libffmpeg-oldabi-devel, компиляция прошла на ура.

Войдите или зарегистрируйтесь, чтобы ответить.