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 452009 - ./configure breaks when cross-compiling FAAD2
./configure breaks when cross-compiling FAAD2
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
0.10.5
Other All
: Normal normal
: 0.10.6
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-28 19:51 UTC by Daniel Díaz
Modified: 2007-09-09 18:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Skip FAAD2 check when cross-compiling (838 bytes, patch)
2007-06-28 20:01 UTC, Daniel Díaz
rejected Details | Review

Description Daniel Díaz 2007-06-28 19:51:14 UTC
When trying to cross-compile gst-plugins-bad, ./configure will break because 

configure: *** checking feature: AAC encoder plug-in ***
configure: *** for plug-ins: faac ***
checking for faacEncOpen in -lfaac... yes
checking faac.h usability... yes
checking faac.h presence... yes
checking for faac.h... yes
configure: *** These plugins will be built: faac

configure: *** checking feature: AAC decoder plug-in ***
configure: *** for plug-ins: faad ***
checking for faacDecOpen in -lfaad... yes
checking faad.h usability... yes
checking faad.h presence... yes
checking for faad.h... yes
checking Checking for FAAD >= 2... configure: error: cannot run test program while cross compiling
See `config.log' for more details.
make: *** [gst-plugins-bad/Makefile] Error 1
Command exited with non-zero status 2
Comment 1 Daniel Díaz 2007-06-28 20:01:51 UTC
Created attachment 90829 [details] [review]
Skip FAAD2 check when cross-compiling
Comment 2 Tim-Philipp Müller 2007-09-09 18:27:44 UTC
Thanks for the patch, but I'd rather solve this differently.  The configure check now uses AC_TRY_COMPILE, which should work even when cross-compiling.  Please re-open if the faad check still breaks:

  2007-09-09  Tim-Philipp Müller  <tim at centricular dot net>

        * configure.ac:
          Use AC_TRY_COMPILE instead of AC_TRY_RUN for the faad and the
          xvid configure checks, so they still work when cross-compiling.
          Fixes #452009.


Only the mpeg2enc check still uses AC_TRY_RUN.  Not entirely sure if that can easily be replaced with AC_TRY_COMPILE, got to investigate that a bit more first.  You'll have to bypass it with --disable-mpeg2enc for now until that's fixed.