After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 452025 - ./configure breaks when cross-compiling LAME
./configure breaks when cross-compiling LAME
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-ugly
0.10.6
Other All
: Normal normal
: 0.10.7
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-28 20:21 UTC by Daniel Díaz
Modified: 2007-09-08 20:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Skip LAME check when cross-compiling (676 bytes, patch)
2007-07-16 21:45 UTC, Daniel Díaz
rejected Details | Review

Description Daniel Díaz 2007-06-28 20:21:31 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
Comment 1 Daniel Díaz 2007-07-16 21:45:37 UTC
Created attachment 91877 [details] [review]
Skip LAME check when cross-compiling
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2007-08-30 06:04:52 UTC
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
Comment 3 Tim-Philipp Müller 2007-08-30 12:29:21 UTC
Or maybe it would be enough to replace AC_TRY_RUN with AC_TRY_COMPILE here?
Comment 4 Tim-Philipp Müller 2007-09-08 20:55:27 UTC
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.