GNOME Bugzilla – Bug 452025
./configure breaks when cross-compiling LAME
Last modified: 2007-09-08 20:55:27 UTC
When trying to cross-compile gst-plugins-ugly, ./configure will break because configure: *** checking feature: lame mp3 encoder library *** configure: *** for plug-ins: lame *** checking for lame_init in -lmp3lame... yes checking lame/lame.h usability... yes checking lame/lame.h presence... yes checking for lame/lame.h... yes configure: error: cannot run test program while cross compiling See `config.log' for more details. make: *** [gst-plugins-ugly/Makefile] Error 1 Command exited with non-zero status 2
Created attachment 91877 [details] [review] Skip LAME check when cross-compiling
I've never seen direct access to $cross_compiling in any other gstreamer configure.ac. Wouldn't it be better to add --disable-lametest analog to e.g. --disable-vorbistest in http://webcvs.freedesktop.org/gstreamer/gst-plugins-base/m4/vorbis.m4?view=markup
Or maybe it would be enough to replace AC_TRY_RUN with AC_TRY_COMPILE here?
Rewrote it to use AC_TRY_RUN now: 2007-09-08 Tim-Philipp Müller <tim at centricular dot net> * configure.ac: Use AC_TRY_COMPILE instead of AC_TRY_RUN to check for a define in the lame headers. This has the advantage that it should still work when we're cross-compiling (#452025). Please re-open the bug if things still don't work right in the cross-compiling case.