[Speex-dev] Cross-compiling speex

Jean-Marc Valin jean-marc.valin at usherbrooke.ca
Thu Oct 22 04:24:53 PDT 2009


Alexander Chemeris a écrit :
> Hi Jean-Marc,
> 
> Not exactly. Under cross-compiling you circumvent this
> standard way by blindly assuming that it is present. That's
> what I recall. Patch we used to fix this is attached.

OK, I'll have a look. I didn't even know that was the behaviour. This
was probably copied 100 from an unknown original source -- just like all
autoconf files :-)

	Jean-Marc

> On Thu, Oct 22, 2009 at 08:31, Jean-Marc Valin
> <jean-marc.valin at usherbrooke.ca> wrote:
>> The way the libogg check is actually not something that's under my
>> control. It's installed on the system as an autoconf .m4 file.
>>
>>        Jean-Marc
>>
>> Alexander Chemeris a écrit :
>>> Hi Jean-Marc
>>>
>>> >From my experience with cross-compiling - IIRC, when cross-compiling
>>> configure *assumes* that you have libogg unconditionally. So we had to
>>> patch it to remove this check. I do not recall, whether this was somehow
>>> fixed or not.
>>>
>>> On Wed, Oct 21, 2009 at 15:19, Jean-Marc Valin
>>> <jean-marc.valin at usherbrooke.ca> wrote:
>>>> Try adding --without-lobogg to the configure script. Otherwise, just
>>>> ignore the error because the important part (libspeex/) has already been
>>>> built when the error is reported.
>>>>
>>>>        Jean-Marc
>>>>
>>>>
>>>>
>>>> Ben Leslie a écrit :
>>>>> Hi all,
>>>>>
>>>>> I'm cross-compiling speex for a GNU/Linux ARM target.
>>>>>
>>>>> I want to compile only the libraries, and not the speex executables.
>>>>>
>>>>> I don't have a libogg cross-compiled, and would prefer the need to
>>>>> have to set it up.
>>>>>
>>>>> Unfortunately:
>>>>>
>>>>> 1/ the speex executables depend on libogg header files,
>>>>>
>>>>> although, the speex executables are only compiled if the libogg header
>>>>> files are available
>>>>>
>>>>> 2/ the libogg check is only done when cross-compiling
>>>>>
>>>>> 3/ libogg is assume to exist when cross-compiling
>>>>>
>>>>> Obviously it is the third thing here that gets me. I confess to being
>>>>> completely useless
>>>>> with atuo*, so my 'fix' was simply to change #3, so that configure
>>>>> assumed that libogg
>>>>> _did not_ exist when cross-compiling. This is obviously a crappy solution.
>>>>>
>>>>> I think it would be nice if there was a flag to pass to configure
>>>>> which disabled compiling
>>>>> of the binaries explicitly. Unfortunately I don't grok auto* enough to
>>>>> work out how to
>>>>> do this.
>>>>>
>>>>> Finally, my questions:
>>>>>
>>>>> 1/ Am I doing something completely broken/unsupported here?
>>>>>
>>>>> 2/ Is explicitly having a way to not compile the binaries useful/acceptable?
>>>>>
>>>>> 3/ Any pointers on how I would go about implementing that?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Benno
>>>>> _______________________________________________
>>>>> Speex-dev mailing list
>>>>> Speex-dev at xiph.org
>>>>> http://lists.xiph.org/mailman/listinfo/speex-dev
>>>>>
>>>>>
>>>> _______________________________________________
>>>> Speex-dev mailing list
>>>> Speex-dev at xiph.org
>>>> http://lists.xiph.org/mailman/listinfo/speex-dev
>>>>
>>>
>>>
> 
> 
> 


More information about the Speex-dev mailing list