bino-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bino-list] bino cross-compile


From: Robert Pliszko
Subject: Re: [Bino-list] bino cross-compile
Date: Mon, 26 Sep 2011 19:07:45 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.22) Gecko/20110907 Mandriva/3.1.14-0.1mdv2010.2 (2010.2) Lightning/1.0b2 Thunderbird/3.1.14

On 23.09.2011 20:08, Martin Lambers wrote:
Hi Martin

> Hi Robert!
>
> Basically, it's
> ./configure CFLAGS="-g"; make; make install

So I added -g and -O0 to script

...
CFLAGS="-g -O0 -I$BUILD_DIR/Mesa-7.11/include" \
... \
./configure \
    --without-equalizer \
    --host=$TARGET_NAME \
    --build=$HOST_NAME  \
    --prefix=$PREFIX \
    --enable-debug

make && make install

After compile I've got 32MB size file of bino. I've tried run movie across command: /usr/bin/bino --input=separate-left-right "/storage/videos/3D/Tron.Legacy.3DBD.LEFT-001.mkv" "/storage/videos/3D/Tron.Legacy.3DBD.RIGHT-001.mkv" --output=green-magenta-dubois --audio=1 --subtitle=0 --subtitle-size=18 --subtitle-encoding=UTF-8 --subtitle-color=FFE401 --subtitle-parallax=0 --log-level=debug -f -n

The log still had format:
bino: [dbg] /storage/videos/3D/Tron.Legacy.3DBD.LEFT-001.mkv: Reading a packet. bino: [dbg] /storage/videos/3D/Tron.Legacy.3DBD.LEFT-001.mkv: 5 packets queued in audio stream 0.
bino: [dbg] Buffering 120960 bytes of audio data.
bino: [dbg] Starting audio output.
bino: [err] Caught signal 11 (Segmentation fault). Aborting.
bino: [err] Backtrace:
bino: [err]     /usr/bin/bino() [0x81091ee]
bino: [err]     /usr/bin/bino() [0x81093ba]
bino: [err]     [0xb7824400]
bino: [err] Report bugs to <address@hidden>.
bino: [dbg] /storage/videos/3D/Tron.Legacy.3DBD.LEFT-001.mkv: No need to read more packets.

No functions as you see...


I've noticed if I used another script like:

[cut]
FFMPEGINCS="-I$ROOT/$PKG_BUILD/../ffmpeg-0.8.3/buildd/include"
FFMPEGLIBS="-L$ROOT/$PKG_BUILD/../ffmpeg-0.8.3/buildd/lib"
QT4INCS="-I$ROOT/$PKG_BUILD/../qt-everywhere-opensource-src-4.7.4/include"
QT4LIBS="-L$ROOT/$PKG_BUILD/../qt-everywhere-opensource-src-4.7.4/lib"
QT4MOC="$ROOT/$PKG_BUILD/../qt-everywhere-opensource-src-4.7.4/bin/moc"
QT4RCC="$ROOT/$PKG_BUILD/../qt-everywhere-opensource-src-4.7.4/bin/rcc"
OPENALINCS="-I$ROOT/$PKG_BUILD/../openal-soft-1.12.854/include/AL"
OPENALLIBS="-L$ROOT/$PKG_BUILD/../openal-soft-1.12.854/.build"

strip_gold
strip_lto

sed -i 's|GETTEXT_MACRO_VERSION = 0.18|GETTEXT_MACRO_VERSION = 0.17|g' po/Makefile.in.in

./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --exec-prefix=/usr \
            --sysconfdir=/etc \
            --datadir=/usr/share \
            libavformat_CFLAGS="$FFMPEGINCS" \
libavformat_LIBS="$FFMPEGLIBS -lavformat -lavcodec -lavutil -lz" \
            libswscale_CFLAGS="$FFMPEGINCS" \
            libswscale_LIBS="$FFMPEGLIBS -lswscale" \
            libavdevice_CFLAGS="$FFMPEGINCS" \
            libavdevice_LIBS="$FFMPEGLIBS -lavdevice" \
libqtopengl_CFLAGS="$QT4INCS $QT4INCS/QtOpenGL $QT4INCS/QtCore $QT4INCS/QtGui" \
            libqtopengl_LIBS="$QT4LIBS -lQtOpenGL -lQtGui -lQtCore" \
            libopenal_CFLAGS="$OPENALINCS" \
            libopenal_LIBS="$OPENALLIBS -lopenal" \
            RCC=$QT4RCC \
            MOC=$QT4MOC

make

$MAKEINSTALL
[cut]

I've got error compile in CXXLD bino on audio devices:

mv -f .deps/video_output_qt-moc.Tpo .deps/video_output_qt-moc.Po
/root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/toolchain/bin/i686-sd-linux-gnu-g++ -march=core2 -m32 -fomit-frame-pointer -Wall -pipe -O3 -fexcess-precision=fast -ffast-math -ftree-loop-distribution -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -mfpmath=sse -msse2 -mssse3 -pthread -march=core2 -m32 -s -Wl,--as-needed -O3 -fexcess-precision=fast -ffast-math -ftree-loop-distribution -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -o bino media_data.o media_object.o media_input.o controller.o video_output.o video_output_qt.o xgl.o subtitle_renderer.o audio_output.o player.o player_qt.o lib_versions.o main.o qt_resources-rcc.o player_qt-moc.o video_output_qt-moc.o ../src/base/libbase.a -liconv -L/root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/bino-273d89b639bb49c1917b3a71ad0c2964534798ca/../ffmpeg-0.8.3/buildd/lib -lavformat -lavcodec -lavutil -lz -L/root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/bino-273d89b639bb49c1917b3a71ad0c2964534798ca/../ffmpeg-0.8.3/buildd/lib -lavdevice -L/root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/bino-273d89b639bb49c1917b3a71ad0c2964534798ca/../ffmpeg-0.8.3/buildd/lib -lswscale -lass -L/root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/bino-273d89b639bb49c1917b3a71ad0c2964534798ca/../openal-soft-1.12.854/.build -lopenal -lGL -lGLEW -L/root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/bino-273d89b639bb49c1917b3a71ad0c2964534798ca/../qt-everywhere-opensource-src-4.7.4/lib -lQtOpenGL -lQtGui -lQtCore -lX11 -lpthread -lrt /root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/bino-273d89b639bb49c1917b3a71ad0c2964534798ca/../ffmpeg-0.8.3/buildd/lib/libavdevice.a(alsa-audio-dec.o): In function `audio_read_packet': /root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/ffmpeg-0.8.3/libavdevice/alsa-audio-dec.c:134: undefined reference to `snd_pcm_readi' /root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/ffmpeg-0.8.3/libavdevice/alsa-audio-dec.c:141: undefined reference to `snd_strerror' /root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/ffmpeg-0.8.3/libavdevice/alsa-audio-dec.c:149: undefined reference to `snd_pcm_htimestamp' /root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/bino-273d89b639bb49c1917b3a71ad0c2964534798ca/../ffmpeg-0.8.3/buildd/lib/libavdevice.a(alsa-audio-dec.o): In function `audio_read_header': /root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/ffmpeg-0.8.3/libavdevice/alsa-audio-dec.c:85: undefined reference to `snd_pcm_type' /root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/ffmpeg-0.8.3/libavdevice/alsa-audio-dec.c:90: undefined reference to `snd_pcm_sw_params_malloc' /root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/ffmpeg-0.8.3/libavdevice/alsa-audio-dec.c:92: undefined reference to `snd_strerror' /root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/ffmpeg-0.8.3/libavdevice/alsa-audio-dec.c:97: undefined reference to `snd_pcm_sw_params_current' /root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/ffmpeg-0.8.3/libavdevice/alsa-audio-dec.c:98: undefined reference to `snd_pcm_sw_params_set_tstamp_mode' /root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/ffmpeg-0.8.3/libavformat/matroskadec.c:1024: undefined reference to `BZ2_bzDecompress' /root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/ffmpeg-0.8.3/libavformat/matroskadec.c:1029: undefined reference to `BZ2_bzDecompressEnd' /root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/ffmpeg-0.8.3/libavformat/matroskadec.c:1029: undefined reference to `BZ2_bzDecompressEnd'
collect2: ld returned 1 exit status
make[5]: *** [bino] Error 1
make[5]: Leaving directory `/root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/bino-273d89b639bb49c1917b3a71ad0c2964534798ca/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/bino-273d89b639bb49c1917b3a71ad0c2964534798ca/src'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/bino-273d89b639bb49c1917b3a71ad0c2964534798ca/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/bino-273d89b639bb49c1917b3a71ad0c2964534798ca'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/openelec/SYSTEMS-DESIGN/build.SYSTEMS-DESIGN_EDEN-Intel_3D.i386-devel/bino-273d89b639bb49c1917b3a71ad0c2964534798ca'
make: *** [system] Błąd 2


I do "make clean" always :-). If I do not use cross-compiling the bino compile correctly.

Attachment: Robert_Pliszko.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]