motion не собирается

Разные проблемы звука, видео, обсуждение разных устройств и т.д.

Модератор: Модераторы разделов

truebest
Сообщения: 18
ОС: Windows xp

motion не собирается

Сообщение truebest »

собственно диагноз

Код: Выделить всё

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

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

Linking Motion...
--------------------------------------------------------------------------------
mipsel-openwrt-linux-uclibc-gcc -L/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib -L/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/lib -L/home/truebest/lagest/trunk/trunk/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib -L/home/truebest/lagest/trunk/trunk/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/lib  -L/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/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/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib -lavformat -lavcodec -lavutil -lm -lz
/home/truebest/lagest/trunk/trunk/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4.3.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: warning: libfaad.so.2, needed by /home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib/libavcodec.so, not found (try using -rpath or -rpath-link)
/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib/libavcodec.so: undefined reference to `NeAACDecDecode'
/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib/libavcodec.so: undefined reference to `NeAACDecGetCurrentConfiguration'
/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib/libavcodec.so: undefined reference to `NeAACDecInit'
/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib/libavcodec.so: undefined reference to `NeAACDecOpen'
/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib/libavcodec.so: undefined reference to `NeAACDecClose'
/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib/libavcodec.so: undefined reference to `NeAACDecGetErrorMessage'
/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib/libavcodec.so: undefined reference to `NeAACDecInit2'
/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib/libavcodec.so: undefined reference to `NeAACDecSetConfiguration'


Дело вот в чем кросскомпилятоор натыкается на файл libavcodec.so и не находит переадресацию, шаболы такие как NeAACDecSetConfiguration и другие имеются в файле libfaad.so.2
Расскажите как использовать-rpath or -rpath-link
Спасибо сказали:
Аватара пользователя
megabaks
Сообщения: 697
ОС: Gentoo ~x86

Re: motion не собирается

Сообщение megabaks »

....trunk...
....gcc-4.3.3....
однако...
Спасибо сказали:
truebest
Сообщения: 18
ОС: Windows xp

Re: motion не собирается

Сообщение truebest »

Мошион собирается без проблем без поддержки ffmpeg , только мне нужно обязательно с ним.

чем плох gcc-4.3.3 ?
Спасибо сказали:
Аватара пользователя
megabaks
Сообщения: 697
ОС: Gentoo ~x86

Re: motion не собирается

Сообщение megabaks »

чем плох gcc-4.3.3 ?
старый!
а вообще с какими флагами собираешь?
Спасибо сказали:
truebest
Сообщения: 18
ОС: Windows xp

Re: motion не собирается

Сообщение truebest »

Для более подробной информации сделаю так. Все там делается автоматом, я лишь дописал --with-ffmpeg=/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr

Код: Выделить всё

patching file Makefile.in
touch /home/truebest/lagest/trunk/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/motion-3.2.11.1/.prepared_845dffe4598e550e5da4695554e7e3b1
(cd /home/truebest/lagest/trunk/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/motion-3.2.11.1/./; if [ -x ./configure ]; then /home/truebest/lagest/trunk/trunk/staging_dir/host/bin/find /home/truebest/lagest/trunk/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/motion-3.2.11.1/ -name config.guess | xargs -r chmod u+w; /home/truebest/lagest/trunk/trunk/staging_dir/host/bin/find /home/truebest/lagest/trunk/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/motion-3.2.11.1/ -name config.guess | xargs -r -n1 cp /home/truebest/lagest/trunk/trunk/scripts/config.guess; /home/truebest/lagest/trunk/trunk/staging_dir/host/bin/find /home/truebest/lagest/trunk/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/motion-3.2.11.1/ -name config.sub | xargs -r chmod u+w; /home/truebest/lagest/trunk/trunk/staging_dir/host/bin/find /home/truebest/lagest/trunk/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/motion-3.2.11.1/ -name config.sub | xargs -r -n1 cp /home/truebest/lagest/trunk/trunk/scripts/config.sub; AR=mipsel-openwrt-linux-uclibc-ar AS="mipsel-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float" LD=mipsel-openwrt-linux-uclibc-ld NM=mipsel-openwrt-linux-uclibc-nm CC="mipsel-openwrt-linux-uclibc-gcc" GCC="mipsel-openwrt-linux-uclibc-gcc" CXX="mipsel-openwrt-linux-uclibc-g++" RANLIB=mipsel-openwrt-linux-uclibc-ranlib STRIP=mipsel-openwrt-linux-uclibc-strip OBJCOPY=mipsel-openwrt-linux-uclibc-objcopy OBJDUMP=mipsel-openwrt-linux-uclibc-objdump SIZE=mipsel-openwrt-linux-uclibc-size CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float " CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float " CPPFLAGS="-I/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include -I/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/include -I/home/truebest/lagest/trunk/trunk/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include -I/home/truebest/lagest/trunk/trunk/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/include " LDFLAGS="-L/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib -L/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/lib -L/home/truebest/lagest/trunk/trunk/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib -L/home/truebest/lagest/trunk/trunk/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/lib "   ./configure --target=mipsel-openwrt-linux --host=mipsel-openwrt-linux --build=i486-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls  --disable-ipv6 --with-ffmpeg=/home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr --without-jpeg-mmx --without-mysql --without-pgsql; fi; )
configure: loading site script /home/truebest/lagest/trunk/trunk/include/site/mipsel-openwrt-linux-uclibc
checking for Darwin... no
checking for *BSD... no
checking for mipsel-openwrt-linux-gcc... mipsel-openwrt-linux-uclibc-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mipsel-openwrt-linux-uclibc-gcc accepts -g... yes
checking for mipsel-openwrt-linux-uclibc-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 in -> /home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr <-... found
checking for ffmpeg headers in /home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr... found /home/truebest/lagest/trunk/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include/libavformat/avformat.h
checking file_protocol is defined in ffmpeg ?... no
checking for mysql support... skipped
checking for PostgreSQL... skipped
checking how to run the C preprocessor... mipsel-openwrt-linux-uclibc-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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 for short... yes
checking size of short... (cached) 2
checking for int... yes
checking size of int... (cached) 4
checking for long int... yes
checking size of long int... (cached) 4
checking for long long... yes
checking size of long long... (cached) 8
checking for int *... yes
checking size of int *... 4
checking for void *... yes
checking size of void *... (cached) 4
checking for an ANSI C-conforming const... yes
Detected CPU: Intel® Core(tm)2 Quad CPU    Q9400  @ 2.66GHz
cc1: error: unrecognized command line option "-march=i686"
No CPU optimizations will be added
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-RH
config.status: creating motion.spec
config.status: creating Makefile
config.status: creating config.h

   *******************************
      Configure status
      motion "3.2.11.1"
   *******************************

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


Щас попробую с gcc 4.4.3 и uclib новее
Спасибо сказали:
truebest
Сообщения: 18
ОС: Windows xp

Re: motion не собирается

Сообщение truebest »

Хз дурь снес libavcodec.so и libfaad.so.2 и все пошло)
Спасибо сказали: