1 (19.08.2010 15:46:42 отредактировано Aleksandr85)

Скачав пакет, разархивировал, откомпилировал ... а с постройкой не выходит:

# make
Welcome to the setup procedure for Motion, the motion detection daemon! If you get
error messages during this procedure, please report them to the mailing list. The
Motion Guide contains all information you should need to get Motion up and running.
Run "make updateguide" to download the latest version of the Motion Guide.

Version: 3.2.12
Platform: Linux (if this is incorrect, please read README.FreeBSD)

Compiling Motion object files...
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Motion object files compiled.

Linking Motion...
--------------------------------------------------------------------------------
gcc -L/usr/local/lib -o motion motion.o conf.o draw.o jpegutils.o video.o video2.o video_common.o netcam.o netcam_ftp.o netcam_jpeg.o netcam_wget.o track.o alg.o event.o picture.o rotate.o webhttpd.o webcam.o ffmpeg.o -lm  -lpthread -ljpeg -L/usr/local/lib -lavformat -lavcodec -lavutil -lm -lz -L/usr/lib -lmysqlclient -lz -L/usr/local/pgsql/lib -lpq
/usr/local/lib/libavformat.a(file.o):(.data+0x0): multiple definition of `file_protocol'
ffmpeg.o:(.data+0x40): first defined here
/usr/local/lib/libavformat.a(matroskadec.o): In function `matroska_decode_buffer':
/mnt/ftp/Upload/ffmpeg-0.6/libavformat/matroskadec.c:927: undefined reference to `BZ2_bzDecompressInit'
/mnt/ftp/Upload/ffmpeg-0.6/libavformat/matroskadec.c:936: undefined reference to `BZ2_bzDecompress'
/mnt/ftp/Upload/ffmpeg-0.6/libavformat/matroskadec.c:939: undefined reference to `BZ2_bzDecompressEnd'
/mnt/ftp/Upload/ffmpeg-0.6/libavformat/matroskadec.c:939: undefined reference to `BZ2_bzDecompressEnd'
collect2: ld returned 1 exit status
make: *** [motion] Error 1

1. компилировал без опций
2. ffmpeg-0.6 устанавливал в директории /mnt/ftp/Upload/ffmpeg-0.6/ (Почему motion на неё ссылается не пойму).

В инете нашёл решение подобной проблемы но не могу разобраться как это сделать самому
http://www.fexclub.su/t189364.html

Help!

2

Aleksandr85 пишет:

В инете нашёл решение подобной проблемы но не могу разобраться как это сделать самому
http://www.fexclub.su/t189364.html

Ну все правильно там пишут, нет или не находится библиотека bzip2. Скорее всего ее нет, установи ее.

Если она установлена, то там написано как ее подключить. Вот цитата с твоей ссылки:

4) Делаем вывод о том, что в ld при сборке как минимум надо передать подключение библиотеки libbz2.so. Наверняка это можно сделать ключом «-lbz2» (возможно потребуется так же указать путь к библиотеке, если она лежит в экзотическом месте «-L/path/to/library/»).

3

Если я правильно понимаю, то команда будет выглядить так:

 make -lbz2

Но почему то результат не меняется. И как указать путь?

4

И ещё такой вопрос ...
Мне кажется я не совсем корректно установил ffmpeg (возможно там нужно было указывать какие нить префиксы)... Его как то можно удалить?

5 (19.08.2010 23:08:28 отредактировано Serg79)

Aleksandr85 пишет:

Если я правильно понимаю, то команда будет выглядить так:

 make -lbz2

Но почему то результат не меняется. И как указать путь?

Нет, не правильно. Вообще то там должно быть configure который должен подготовить Makefile, после чего достаточно будет вызвать make.

А лучше всего прочитать READMY или INSTALL которые входят в устанавливаемое вами приложение. Там будет описано как правильно надо устанавливать данное приложение.

6 (19.08.2010 23:28:38 отредактировано Aleksandr85)

Подсказали сайтик с пакетиками slackfind.net
Собрал и motion и ffmpeg ... А сорсы на ffmpeg удалил.

Пока остановился на то что не хватает библиотеки libavcodec.so.51 при запуске motion:

# motion
motion: error while loading shared libraries: libavcodec.so.51: cannot open shared object file: No such file or directory

Как на зло именно этой библиотеки и нет:

# ls /usr/lib/ | grep libav
libavcodec.so@
libavcodec.so.52@
libavcodec.so.52.72.2*
libavdevice.so@
libavdevice.so.52@
libavdevice.so.52.2.0*
libavfilter.so@
libavfilter.so.1@
libavfilter.so.1.19.0*
libavformat.so@
libavformat.so.52@
libavformat.so.52.64.2*
libavutil.so@
libavutil.so.50@
libavutil.so.50.15.1*

7

Я тут глянул, чё то очень много не хватате:

# ldd /usr/bin/motion
        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb789b000)
        libmjpegutils-1.9.so.0 => /usr/lib/libmjpegutils-1.9.so.0 (0xb788d000)
        liblavjpeg-1.9.so.0 => /usr/lib/liblavjpeg-1.9.so.0 (0xb7868000)
        libm.so.6 => /lib/libm.so.6 (0xb7842000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7821000)
        libavformat.so.52 => /usr/lib/libavformat.so.52 (0xb773a000)
        libavcodec.so.51 => not found
        libz.so.1 => /usr/lib/libz.so.1 (0xb7726000)
        libmysqlclient.so.15 => not found
        libc.so.6 => /lib/libc.so.6 (0xb75c2000)
        /lib/ld-linux.so.2 (0xb78bd000)
        libavutil.so.49 => not found
        libavcodec.so.52 => /usr/lib/libavcodec.so.52 (0xb6b9d000)
        libavutil.so.50 => /usr/lib/libavutil.so.50 (0xb6b8a000)
        libbz2.so.1 => /lib/libbz2.so.1 (0xb6b79000)
        libssl.so.0 => /lib/libssl.so.0 (0xb6b30000)
        libcrypto.so.0 => /lib/libcrypto.so.0 (0xb69e8000)
        libva.so.1 => not found
        libdirac_encoder.so.0 => not found
        libfaac.so.0 => not found
        libgsm.so.1 => not found
        libmp3lame.so.0 => not found
        libopencore-amrnb.so.0 => not found
        libopencore-amrwb.so.0 => not found
        libopenjpeg.so.1.3 => not found
        libdl.so.2 => /lib/libdl.so.2 (0xb69e2000)
        libschroedinger-1.0.so.0 => not found
        libspeex.so.1 => not found
        libtheoraenc.so.1 => not found
        libtheoradec.so.1 => not found
        libvorbisenc.so.2 => not found
        libvorbis.so.0 => not found
        libvpx.so.0 => not found
        libx264.so.96 => not found
        libxvidcore.so.4 => not found

8

Aleksandr85 пишет:

Пока остановился на то что не хватает библиотеки libavcodec.so.51 при запуске motion:

# motion
motion: error while loading shared libraries:[b] libavcodec.so.51[/b]: cannot open shared object file: No such file or directory

Как на зло именно этой библиотеки и нет:

# ls /usr/lib/ | grep libav
libavcodec.so@
[b]libavcodec.so.52[/b]@
libavcodec.so.52.72.2*
libavdevice.so@
libavdevice.so.52@
libavdevice.so.52.2.0*
libavfilter.so@
libavfilter.so.1@
libavfilter.so.1.19.0*
libavformat.so@
libavformat.so.52@
libavformat.so.52.64.2*
libavutil.so@
libavutil.so.50@
libavutil.so.50.15.1*

Сделай симлинк  libavcodec.so.51 на  libavcodec.so.52 у меня такое прокативало.

Trouble  in WINDOWS reboot, trouble in UNIX be root.

9

А как быть с остальными библеотеками?

# motion
motion: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory

Думаю так будет продолжаться пока вре не найдутся:

# ldd /usr/bin/motion
        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb78b6000)
        libmjpegutils-1.9.so.0 => /usr/lib/libmjpegutils-1.9.so.0 (0xb78a8000)
        liblavjpeg-1.9.so.0 => /usr/lib/liblavjpeg-1.9.so.0 (0xb7883000)
        libm.so.6 => /lib/libm.so.6 (0xb785d000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb783c000)
        libavformat.so.52 => /usr/lib/libavformat.so.52 (0xb7755000)
        libavcodec.so.51 => /usr/lib/libavcodec.so.51 (0xb6d30000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb6d1c000)
        libmysqlclient.so.15 => not found
        libc.so.6 => /lib/libc.so.6 (0xb6bb8000)
        /lib/ld-linux.so.2 (0xb78d8000)
        libavutil.so.49 => not found
        libavutil.so.50 => /usr/lib/libavutil.so.50 (0xb6ba5000)
        libbz2.so.1 => /lib/libbz2.so.1 (0xb6b94000)
        libssl.so.0 => /lib/libssl.so.0 (0xb6b4c000)
        libcrypto.so.0 => /lib/libcrypto.so.0 (0xb6a03000)
        libva.so.1 => not found
        libdirac_encoder.so.0 => not found
        libfaac.so.0 => not found
        libgsm.so.1 => not found
        libmp3lame.so.0 => not found
        libopencore-amrnb.so.0 => not found
        libopencore-amrwb.so.0 => not found
        libopenjpeg.so.1.3 => not found
        libdl.so.2 => /lib/libdl.so.2 (0xb69fe000)
        libschroedinger-1.0.so.0 => not found
        libspeex.so.1 => not found
        libtheoraenc.so.1 => not found
        libtheoradec.so.1 => not found
        libvorbisenc.so.2 => not found
        libvorbis.so.0 => not found
        libvpx.so.0 => not found
        libx264.so.96 => not found
        libxvidcore.so.4 => not found

10

Не могу найти след. пакет:

# motion
motion: error while loading shared libraries: libva.so.1: cannot open shared object file: No such file or directory

С предыдущими симлинками справился ab

11

А у тебя эти библиотеки есть или их нету. Если нету то нужно доставить, если есть то где они так экзотически лежат что прога их не видит. Если есть библиотеки версии каких старше чем просит прога то делай симлинки. Недостающия доставляй или как я иногда делаю выбираю название библиотеки, бросаю её в гугл потом нахожу в основному рпм пакет где есть готовая библиотека стягиваю пакет и с помощью mc  извлекаю файл библиотеки в папку /usr/lib и всё чтобы не ставить все подряд.

Trouble  in WINDOWS reboot, trouble in UNIX be root.

12

Нет ... Этих библиотек нет ... Сейчас на сайте http://slackfind.net ищу...
О результате отпишусь

13

Так ... Вот итог ...

# ldd /usr/bin/motion
/usr/bin/motion: /usr/lib/libmysqlclient.so.15: version `libmysqlclient_15' not found (required by /usr/bin/motion)
        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb772c000)
        libmjpegutils-1.9.so.0 => /usr/lib/libmjpegutils-1.9.so.0 (0xb771e000)
        liblavjpeg-1.9.so.0 => /usr/lib/liblavjpeg-1.9.so.0 (0xb76f9000)
        libm.so.6 => /lib/libm.so.6 (0xb76d3000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb76b2000)
        libavformat.so.52 => /usr/lib/libavformat.so.52 (0xb75cb000)
        libavcodec.so.51 => /usr/lib/libavcodec.so.51 (0xb6ba6000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb6b92000)
        libmysqlclient.so.15 => /usr/lib/libmysqlclient.so.15 (0xb6a41000)
        libc.so.6 => /lib/libc.so.6 (0xb68de000)
        libavutil.so.49 => /usr/lib/libavutil.so.49 (0xb68ca000)
        /lib/ld-linux.so.2 (0xb774f000)
        libbz2.so.1 => /lib/libbz2.so.1 (0xb68b9000)
        libssl.so.0 => /lib/libssl.so.0 (0xb6871000)
        libcrypto.so.0 => /lib/libcrypto.so.0 (0xb6729000)
        libva.so.1 => not found
        libdirac_encoder.so.0 => /usr/lib/libdirac_encoder.so.0 (0xb6692000)
        libfaac.so.0 => /usr/lib/libfaac.so.0 (0xb667d000)
        libgsm.so.1 => not found
        libmp3lame.so.0 => not found
        libopencore-amrnb.so.0 => /usr/lib/libopencore-amrnb.so.0 (0xb6650000)
        libopencore-amrwb.so.0 => /usr/lib/libopencore-amrwb.so.0 (0xb663a000)
        libopenjpeg.so.1.3 => /usr/lib/libopenjpeg.so.1.3 (0xb661d000)
        libdl.so.2 => /lib/libdl.so.2 (0xb6619000)
        libschroedinger-1.0.so.0 => /usr/lib/libschroedinger-1.0.so.0 (0xb659a000)
        libspeex.so.1 => /usr/lib/libspeex.so.1 (0xb6585000)
        libtheoraenc.so.1 => /usr/lib/libtheoraenc.so.1 (0xb654b000)
        libtheoradec.so.1 => /usr/lib/libtheoradec.so.1 (0xb6532000)
        libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0xb6437000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb6407000)
        libvpx.so.0 => not found
        libx264.so.96 => not found
        libxvidcore.so.4 => /usr/lib/libxvidcore.so.4 (0xb62f6000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xb62c3000)
        libnsl.so.1 => /lib/libnsl.so.1 (0xb62aa000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb61ba000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb619d000)
        liboil-0.3.so.0 => /usr/lib/liboil-0.3.so.0 (0xb612d000)
        librt.so.1 => /lib/librt.so.1 (0xb6124000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0xb611f000)

След. библиотеки нигде не найти:
        libva.so.1
        libgsm.so.1
        libmp3lame.so.0
        libvpx.so.0
        libx264.so.96

И какая то не понятная ошибка (но вроде пока не так критична):

/usr/bin/motion: /usr/lib/libmysqlclient.so.15: version `libmysqlclient_15' not found (required by /usr/bin/motion)

14

Ща поищу

Trouble  in WINDOWS reboot, trouble in UNIX be root.

15

Тема закрыта. Решение немного другим способом.  smile
Вот ссылка: http://www.slackware.ru/forum/viewtopic … &t=369

16

Ну почему же другим, та же самая сборка из исходников. Только по готовым рецептам (со slackbuilds.org), с формированием пакетов и их установкой.

17

Ну ДА ab

18

Всем привет! Та же проблема, нужно сделать симлинк на существующие библиотеки вместо требуемых. Подскажите, как сделать симлинк? (ставлю из rpm).

19

ln -s что куда

ps. Каков вопрос, таков и ответ.

20

Спасибо, но попробую конкретизировать, например нужно сделать симлинк libavcodec.so.51 на  libavcodec.so.52, потому что она у меня есть. Если не трудно, опишите процедуру, а то я с Линуксом пока на Ваше Благородие.

21

Переключаетесь на пользователя root, переходите в каталог с libavcodec.so.51, выполняете команду. Итого:

 Консоль:

$ su -
# cd /usr/lib
# ln -s libavcodec.so.51 libavcodec.so.52

ps. Пользователь root тут при том, что наверняка речь о системном каталоге /usr/lib/, в который разрешено писать только суперпользователю.

22

Спасибо, но пока не помагает. Сделал:

 Консоль:

linux-oino:/usr/lib # ln -s libavcodec.so.52.122.0 libavcodec.so.51

Все равно при установке проблема осталась:
 Консоль:

linux-oino:/home/fox7812 # rpm -ivh motion-3.2.7-2.fc7.rf.i386.rpm
предупреждение: motion-3.2.7-2.fc7.rf.i386.rpm: Заголовок V3 DSA/SHA1 Signature, key ID 1aa78495: NOKEY
ошибка: Неудовлетворенные зависимости:
        libavcodec.so.51 нужен для motion-3.2.7-2.fc7.rf.i386
        libavformat.so.51 нужен для motion-3.2.7-2.fc7.rf.i386
        libavutil.so.49 нужен для motion-3.2.7-2.fc7.rf.i386
        libmysqlclient.so.15 нужен для motion-3.2.7-2.fc7.rf.i386
        libmysqlclient.so.15(libmysqlclient_15) нужен для motion-3.2.7-2.fc7.rf.i386

Вроде все делаю правильно...

23

fox7812, покажите вывод команды:

 Консоль:
ls -l /usr/lib | egrep libavcodec

24 (11.09.2011 19:56:36 отредактировано bormant)

fox7812 пишет:

 Консоль:
# rpm -ivh motion-3.2.7-2.fc7.rf.i386.rpm

Вроде все делаю правильно...

вещи несовместимые, в чём сами только что и убедились. Можно, конечно, попробовать добавить --nodeps...

Но! Правильный путь:

 Консоль:
$ rpm2txz ...
# upgradepkg --install-new ...

ps. Почитайте на досуге о том, как устроен rpm, механизм определения им установленных/отсутствующих пакетов (локальная база, обновляемая при каждой установке/удалении пакета), добавьте сюда то, что вся Slackware ставилась без участия rpm --  и всё сразу встанет на свои места.

25

ABulychev пишет:

fox7812, покажите вывод команды:

 Консоль:
ls -l /usr/lib | egrep libavcodec

Вывод команды:

 Консоль:

linux-oino:/home/fox7812 # ls -l /usr/lib | egrep libavcodec
lrwxrwxrwx   1 root root       22 Сен 11 19:28 libavcodec.so.51 -> libavcodec.so.52.122.0
-rwxr-xr-x   1 root root  6456152 Сен  8 23:20 libavcodec.so.52.122.0
lrwxrwxrwx   1 root root       21 Авг 30 00:40 libavcodec.so.53 -> libavcodec.so.53.12.0
-rwxr-xr-x   1 root root  6267600 Авг 24 00:58 libavcodec.so.53.12.0

bormant, спасибо, посмотрю.

26

fox7812, симлинк удачно создан, так что проблема не знаю в чем,но у Вас есть несколько путей решения этого вопроса(с моей точки зрения):
1) попробовать удалить симлинк на libavcodec.so.52.122.0 и создать на libavcodec.so.53.12.0 - только я думаю эот не сильно изменит ситуацию.
2) то что предложил bormant
3) установить motion с slackbuilds.org,предварительно проверив зависимости.

27

Попробывал по другому, скачал архивом, настроил вроде все службы, запустил конфиг:

 Консоль:

linux-oino:/home/fox7812 # cd motion-3.2.12
linux-oino:/home/fox7812/motion-3.2.12 # ./configure
checking for Darwin... no
checking for *BSD... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking threads... yes
checking for libjpeg-mmx... skipping
checking for libjpeg...
checking for jpeg_set_defaults in -ljpeg... yes
checking for ffmpeg autodetecting... found in /usr/lib
checking for ffmpeg headers in /usr... found /usr/include/libavformat/avformat.h
checking file_protocol is defined in ffmpeg ?... no
checking for mysql support... testing
checking autodect mysql headers... yes
checking autodect mysql libs... /usr/lib
checking for mysql_init in -lmysqlclient... yes
checking for PostgreSQL... testing
checking autodect pgsql headers... yes /usr/include/pgsql
checking autodect pgsql libs... /usr/lib
checking for PQconnectStart in -lpq... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for unistd.h... (cached) yes
checking for stdint.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking linux/videodev.h usability... yes
checking linux/videodev.h presence... yes
checking for linux/videodev.h... yes
checking linux/videodev2.h usability... yes
checking linux/videodev2.h presence... yes
checking for linux/videodev2.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for sys/types.h... (cached) yes
checking for get_current_dir_name... yes
checking for struct v4l2_buffer... yes
checking for V42L support... yes
checking size of short... 2
checking size of int... 4
checking size of long int... 4
checking size of long long... 8
checking size of int *... 4
checking size of void *... 4
checking for an ANSI C-conforming const... yes
Detected CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
CPU optimization: -march=i686
checking for bswap instruction... yes
configure: creating ./config.status
config.status: creating thread1.conf
config.status: creating thread2.conf
config.status: creating thread3.conf
config.status: creating thread4.conf
config.status: creating motion-dist.conf
config.status: creating motion.init-FreeBSD.sh
config.status: creating motion.init-Debian
config.status: creating motion.init-Fedora
config.status: creating motion.spec
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged

   *******************************
      Configure status   
      motion 3.2.12
   *******************************

OS             :     Linux
pthread Support:     Yes
jpeg Support:        Yes
V4L included:        Yes
V4L2 supported:      Yes
FFmpeg Support:      Yes
MYSQL Support:       Yes
PostgreSQL Support:  Yes

CFLAGS:  -g -O2 -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -I/usr/include/pgsql -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=i686
LIBS: -lm  -lpthread -ljpeg -L/usr/lib -lavformat -lavcodec -lavutil -lm -lz -L/usr/lib -lmysqlclient -lz -L/usr/lib -lpq
LDFLAGS:   -L/usr/lib

Install prefix:       /usr/local


Запустил make:
 Консоль:

linux-oino:/home/fox7812/motion-3.2.12 # make
Welcome to the setup procedure for Motion, the motion detection daemon! If you get
error messages during this procedure, please report them to the mailing list. The
Motion Guide contains all information you should need to get Motion up and running.
Run "make updateguide" to download the latest version of the Motion Guide.

Version: 3.2.12
Platform: Linux (if this is incorrect, please read README.FreeBSD)

Compiling Motion object files...
--------------------------------------------------------------------------------
gcc -g -O2 -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -I/usr/include/pgsql -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=i686 -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/usr/local/etc\"    -c -o ffmpeg.o ffmpeg.c
ffmpeg.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:1407)
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:1465)
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

Получается проблема только в ffmpeg? (Ставлю на OpenSuse если это важно);

28 (12.09.2011 11:33:04 отредактировано bormant)

fox7812 пишет:

Ставлю на OpenSuse

Предлагаю Вам задать свой вопрос заново в соответствующем разделе форума.

Решения для Slackware тривиальны, как один из вариантов:

 Консоль:
# sbopkg -i "lame x264 ffmpeg motion"

но для OpenSUSE они не подойдут без осмысления сути происходящего.

ps. Это не то, что Вы ищете?
http://rpm.pbone.net/index.php3/stat/4/ … 6.rpm.html

29

Спасибо, вроде встала наконец:) Буду разбираться дальше.