[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] compilation of ffmpeg with profiling enable
- To: microblaze-uclinux <microblaze-uclinux@xxxxxxxxxxxxxx>
- Subject: [microblaze-uclinux] compilation of ffmpeg with profiling enable
- From: Nicolas Herve <nicolas.herve@xxxxxxxxx>
- Date: Fri, 15 May 2009 17:33:07 -0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=4uYnRtQZSCvU+RsLOPfWA+tbtD8RELpI9S/iQ6dBfsM=; b=MukrR/krOcF9Y/7VigTbxVADZ7wLPi+7MSO6z1KGqDY+Wxm/eGAxKF9ngsQIxFkqsS yF76p9loLB6pxxI0cKkAP6+ZFUxJxeadbI2v0TY6zh0Vut1Ia8jCLgMAmf+vmqIzGd2S mPV9Pc1g+IGM/1vTDR8cjsf7BETJN89dZt6is=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=gLsYKBzDui9r02NG0rg82tyauQzX8xgI3ZXi8cz5TySYgMFRJ18ilKaNnG912J619a cJDsELSvTvh7+jAfTJBVmWmxmL5SHsyBwIQzrWASJjgmSWLclHCHktbqUFFwQmf6mPkS LPoPR/AFcdaIa9bfnt/GGqv/YU2PtvfF1Vs30=
- Reply-to: microblaze-uclinux@xxxxxxxxxxxxxx
- Sender: owner-microblaze-uclinux@xxxxxxxxxxxxxxxxxxxx
First I succeed in cross-compiling and running ffmpeg-0.5 on the microblaze.
I compiled it simply with these configure option
./configure --cross-prefix=mb-linux- --arch=microblaze
and I then test on the target with the following command `ffmpeg -i foreman.264 foreman.yuv`.
The resulting file is binary equal to the one generated on the host with the same command [1].
Now I want to do some profiling on the target.
So I recompile the source with these configuration [2].
./configure --prefix=/usr/local --cross-prefix=mb-linux- --arch=microblaze --enable-gprof --build-suffix=-prof
then when making, I have the compilation errors included at end of this mail.
Any idea ?
There is no such problem on the native host compiler build with :
./configure --prefix=/usr/local --enable-gprof --build-suffix=-prof
Has anybody allready used the gprof tool with microblaze binaries ?
Nicolas
---
[1] Yes it is about 500 times slower than on the host (a Core2 Quad @1.6 GHz), but it is for an experimentation.
[2] Indeed, I use two separates build directory builds/default and builds/prof and run the configure script for here (../../configure [opts])
---
mb-linux-gcc -L"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavdevice -L"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavformat -L"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavcodec -L"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavutil -rdynamic -export-dynamic -Wl,--warn-common -Wl,--as-needed -Wl,-rpath-link,"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libpostproc -Wl,-rpath-link,"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libswscale -Wl,-rpath-link,"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavfilter -Wl,-rpath-link,"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavdevice -Wl,-rpath-link,"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavformat -Wl,-rpath-link,"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavcodec -Wl,-rpath-link,"/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/builds/prof"/libavutil -Wl,-Bsymbolic -p -o ffmpeg_g ffmpeg.o cmdutils.o -lavdevice-prof -lavformat-prof -lavcodec-prof -lavutil-prof -lm -ldl -ldl
ffmpeg.o: In function `opt_video_rc_override_string':
/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/ffmpeg.c:2290: undefined reference to `_mcount'
ffmpeg.o: In function `opt_video_standard':
/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/ffmpeg.c:2613: undefined reference to `_mcount'
ffmpeg.o: In function `opt_vstats_file':
/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/ffmpeg.c:3671: undefined reference to `_mcount'
ffmpeg.o: In function `opt_audio_channels':
/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/ffmpeg.c:2602: undefined reference to `_mcount'
ffmpeg.o: In function `opt_audio_rate':
/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/ffmpeg.c:2596: undefined reference to `_mcount'
ffmpeg.o:/home/users/nicolas/xilinx/petalinux/software/third-party/build/ffmpeg-0.5/ffmpeg.c:2576: more undefined references to `_mcount' follow
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1