cerbero cross build errors

Mailing List SVR lists at svrinformatica.it
Sat Nov 10 13:22:53 PST 2012


Il 10/11/2012 22:09, Andoni Morales ha scritto:
> 2012/11/10 Mailing List SVR <lists at svrinformatica.it>:
>> Il 10/11/2012 19:38, Andoni Morales ha scritto:
>>
>>> 2012/11/10 Mailing List SVR <lists at svrinformatica.it>:
>>>> Il 10/11/2012 15:17, Andoni Morales ha scritto:
>>>>
>>>>> 2012/11/10 Mailing List SVR <lists at svrinformatica.it>:
>>>>>> Hi,
>>>>>>
>>>>>> I'm trying to rebuild gstreamer for android using cerbero, I have
>>>>>> several
>>>>>> issues:
>>>>>>
>>>>>> git clone git://anongit.freedesktop.org/gstreamer-sdk/cerbero
>>>>>> cd cerbero
>>>>>> ./cerbero-uninstalled -c config/cross-android.cbc bootstrap
>>>>>>
>>>>>> first error:
>>>>>>
>>>>>> configure: WARNING: unrecognized options: --disable-maintainer-mode
>>>>>> [(1/7) automake -> compile ]
>>>>>> Running command 'make'
>>>>>> CDPATH="${ZSH_VERSION+.}:" && cd . &&
>>>>>>
>>>>>>
>>>>>> perllibdir="/home/nicola/cerbero/sources/buid-tools/automake-1.12.4/lib:./lib"
>>>>>> "/home/nicola/cerbero/sources/buid-tools/automake-1.12.4/aclocal"
>>>>>> --acdir=m4
>>>>>> -I m4
>>>>>> /bin/bash:
>>>>>> /home/nicola/cerbero/sources/buid-tools/automake-1.12.4/aclocal:
>>>>>> No such file or directory
>>>>>> make: *** [aclocal.m4] Error 127
>>>>>> ***** Error running 'bootstrap' command:
>>>>>> Recipe 'automake' failed at the build step 'compile'
>>>>>>
>>>>>> fix:
>>>>>>
>>>>>> cd ~/cerbero/sources/build-tools/automake-1.12.4
>>>>>> sh bootstrap.sh
>>>>>>
>>>>>> ./cerbero-uninstalled -c config/cross-android.cbc bootstrap (android
>>>>>> sdk
>>>>>> redownloaded)
>>>>>>
>>>>>> configure: WARNING: unrecognized options: --disable-maintainer-mode
>>>>>> [(3/7) autoconf -> compile ]
>>>>>> Running command 'make'
>>>>>> CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal
>>>>>> -I/home/nicola/cerbero/build-tools/share/aclocal -I m4
>>>>>> sh: 1: build-aux/git-version-gen: Permission denied
>>>>>> configure.ac:31: error: AC_INIT should be called with package and
>>>>>> version
>>>>>> arguments
>>>>>> /home/nicola/cerbero/build-tools/share/aclocal-1.12/init.m4:23:
>>>>>> AM_INIT_AUTOMAKE is expanded from...
>>>>>> configure.ac:31: the top level
>>>>>> autom4te: /usr/bin/m4 failed with exit status: 1
>>>>>> aclocal: error: autom4te failed with exit status: 1
>>>>>> make: *** [aclocal.m4] Error 1
>>>>>> ***** Error running 'bootstrap' command:
>>>>>> Recipe 'autoconf' failed at the build step 'compile'
>>>>>>
>>>>>> fix:
>>>>>>
>>>>>> find . -name 'git-version-gen' -exec chmod 755 {} \;
>>>>>>
>>>>>> ./cerbero-uninstalled -c config/cross-android.cbc bootstrap (android
>>>>>> sdk
>>>>>> redownloaded)
>>>>>>
>>>>>> Running command 'git clone /home/nicola/cerbero/sources/local/orc -b
>>>>>> build
>>>>>> .'
>>>>>> Cloning into '.'...
>>>>>> done.
>>>>>> [(6/7) orc -> configure ]
>>>>>> Running command 'autoreconf -f -i'
>>>>>> configure.ac:1: error: Autoconf version 2.58 or higher is required
>>>>>> configure.ac:1: the top level
>>>>>> autom4te: /home/nicola/cerbero/build-tools/bin/m4 failed with exit
>>>>>> status:
>>>>>> 63
>>>>>> aclocal: error: /home/nicola/cerbero/build-tools/bin/autom4te failed
>>>>>> with
>>>>>> exit status: 63
>>>>>> autoreconf: aclocal failed with exit status: 63
>>>>>> ***** Error running 'bootstrap' command:
>>>>>> Recipe 'orc' failed at the build step 'configure'
>>>>>>
>>>>>> now the problem is that autoreconf show as version "UNKNOWN-dirty"
>>>>>>
>>>>>> I can continue to fix here and there but since cerbero is used to
>>>>>> generate
>>>>>> android buils I think I'm doing something wrong,
>>>>> Hi Nicola,
>>>>>
>>>>> The orc recipe is also missing a dependency in autotools and automake.
>>>>> This should be now fixed upstream too.
>>>>
>>>> Hi Andoni,
>>>>
>>>> doing a clean checkout and doing the bootstrap give now the following
>>>> error:
>>>>
>>>>
>>>> Cloning into '.'...
>>>> done.
>>>> [(3/7) automake -> configure ]
>>>> -----> copying /home/nicola/cerbero/data/autotools/config.guess to
>>>> /home/nicola/cerbero/sources/buid-tools/automake-1.12.4/lib/config.guess
>>>> -----> copying /home/nicola/cerbero/data/autotools/config.sub to
>>>> /home/nicola/cerbero/sources/buid-tools/automake-1.12.4/lib/config.sub
>>>> Running command './configure --prefix /home/nicola/cerbero/build-tools
>>>> --libdir /home/nicola/cerbero/build-tools/lib  --disable-maintainer-mode'
>>>>
>>>> configure: WARNING: unrecognized options: --disable-maintainer-mode
>>>> checking whether make supports nested variables... yes
>>>> checking build system type... x86_64-unknown-linux-gnu
>>>> checking host system type... x86_64-unknown-linux-gnu
>>>> checking for a BSD-compatible install... /usr/bin/install -c
>>>> checking whether build environment is sane... yes
>>>> checking for a thread-safe mkdir -p... /bin/mkdir -p
>>>> checking for gawk... gawk
>>>> checking whether make sets $(MAKE)... yes
>>>> checking for perl... /usr/bin/perl
>>>> checking whether /usr/bin/perl supports ithreads... yes
>>>> checking for tex... tex
>>>> checking for yacc... yacc
>>>> checking for lex... lex
>>>> checking whether autoconf is installed... yes
>>>> checking whether autoconf works... yes
>>>> checking whether autoconf is recent enough... no
>>>> configure: error: Autoconf 2.62 or better is required.
>>>>
>>>> ***** Error running 'bootstrap' command:
>>>> Recipe 'automake' failed at the build step 'configure'
>>>>
>>>> I'm trying this in a clean debian sid chroot, however even fixing these
>>>> errors I'm able to build gstreamer package for the running but not for
>>>> arm,
>>>>
>>>> can you please give some instructions to cross compile gstreamer for arm
>>>> using cerbero?
>>> First, make sure the your master branch is up-to-date. Autoconf 2.68
>>> should have been built previously in the bootstrap.
>>>
>>> Could you please try the following:
>>> rm -rf ~/.cerbero/build_tools
>>> ./cerbero-uninstalled -c config/cross-android.cbc bootstrap
>>>
>>>
>>> If that still fails,
>>
>> still fails
>>
>>
>>> please run the following commands and check that
>>> our autoconf is being used and not the system one:
>>>
>>> $ ./cerbero-uninstalled -c config/cross-android.cbc run which autoconf
>>>
>>> Running command 'which autoconf'
>>> /home/andoni/cerbero/build-tools/bin/autoconf
>>
>> Running command 'which autoconf'
>> /home/nicola/cerbero/build-tools/bin/autoconf
>>
>>
>>> $ ./cerbero-uninstalled -c config/cross-android.cbc run "autoconf
>>> --version"
>>>
>>> Running command 'autoconf --version'
>>> autoconf (GNU Autoconf) 2.68
>>
>> Running command 'autoconf --version'
>> autoconf (GNU Autoconf) UNKNOWN-dirty
> The version here is wrong and I believe it's because you called "sh
> bootstrap.sh".
>
> In the previous step I forgot to delete the sources directory, so to
> start over again from scratch do:
> rm -rf ~/.cerbero (Note this is a hidden folder and needs to be
> removed to delete the build caches)
> rm -rf ~/cerbero
>
> and run the bootstrap again.

nicola at e6500:~$ rm -rf cerbero .cerbero
nicola at e6500:~$ git clone 
git://anongit.freedesktop.org/gstreamer-sdk/cerbero
nicola at e6500:~$ cd cerbero
nicola at e6500:~/cerbero$ ./cerbero-uninstalled -c 
config/cross-android.cbc bootstrap
....
first error:

[(2/7) autoconf -> compile ]
Running command 'make'
CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal 
-I/home/nicola/cerbero/build-tools/share/aclocal -I m4
sh: 1: build-aux/git-version-gen: Permission denied

nicola at e6500:~/cerbero$ find . -name 'git-version-gen' -exec chmod 755 {} \;
nicola at e6500:~/cerbero$ ./cerbero-uninstalled -c 
config/cross-android.cbc bootstrap
....
same error:

[(3/7) automake -> configure ]
...
configure: error: Autoconf 2.62 or better is required.
***** Error running 'bootstrap' command:
Recipe 'automake' failed at the build step 'configure'

nicola at e6500:~/cerbero$ ./cerbero-uninstalled -c 
/home/nicola/cross-android_nm.cbc run "autoconf --version"
WARNING: Using default configuration because 
/home/nicola/.cerbero/cerbero.cbc is missing
Running command 'autoconf --version'
autoconf (GNU Autoconf) UNKNOWN-dirty

nicola at e6500:~/cerbero$ ./cerbero-uninstalled -c 
/home/nicola/cross-android_nm.cbc run "which autoconf"
WARNING: Using default configuration because 
/home/nicola/.cerbero/cerbero.cbc is missing
Running command 'which autoconf'
/home/nicola/cerbero/build-tools/bin/autoconf

on which distro did you use cerbero?

Nicola


>
> Andoni
>
>> Copyright (C) 2010 Free Software Foundation, Inc.
>> License GPLv3+/Autoconf: GNU GPL version 3 or later
>> <http://gnu.org/licenses/gpl.html>,
>> <http://gnu.org/licenses/exceptions.html>
>> This is free software: you are free to change and redistribute it.
>> There is NO WARRANTY, to the extent permitted by law.
>>
>> Written by David J. MacKenzie and Akim Demaille.
>>
>> as pointed before auto* have "UNKNOWN-dirty" as version
>>
>> I also removed the whole cerbero dir and did a clean git clone, no change
>>
>> thanks
>> Nicola
>>
>> P.S. the permission denied error pointed above is still no fixed
>>
>>
>>> Andoni
>>>
>>>> thanks
>>>> Nicola
>>>>
>>>>
>>>>
>>>>> Andoni
>>>>>> any advices?
>>>>>>
>>>>>> thanks
>>>>>> Nicola
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> gstreamer-android mailing list
>>>>>> gstreamer-android at lists.freedesktop.org
>>>>>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android
>>>>>
>>>>>
>>>
>
>



More information about the gstreamer-android mailing list