[FFmpeg-trac] #2890(build system:new): Compile ffmpeg for Android on OSX failes (ld)

FFmpeg trac at avcodec.org
Thu Aug 22 22:53:42 CEST 2013


#2890: Compile ffmpeg for Android on OSX failes (ld)
-------------------------------------+-------------------------------------
             Reporter:  fscz         |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  build
              Version:  git-master   |  system
             Keywords:  build ld     |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by fscz):

 -single_module is added to the linker from the configure script (3496):
 ----
 SHFLAGS='-dynamiclib -Wl,-single_module
 -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME_W\
 ITH_MAJOR),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR)'
 ----
 unfortunately
 -install_name
 -current_version
 -compatibility_version
 are also unknown


 also problematic is the following line (3499)
 ---
 add_ldflags -Wl,-dynamic,-search_paths_first
 ---
 as search_paths_first throws an error, too

 If i remove all those flags and write the following:
 ---
 SHFLAGS='-dynamiclib'
 add_ldflags -WL,-dynamic
 ---

 I get the following error:
 ---
 LD      libavutil/libavutil.52.dylib
 /Users/fschuetz/tmp/ffmpeg/build/toolchain/bin/../lib/gcc/arm-linux-
 androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
 /Users/fschuetz/tmp/ffmpeg/build/toolchain/bin/../sysroot/usr/lib/crtbegin_dynamic.o:
 in function _start:crtbrand.c(.text+0x78): error: undefined reference to
 'main'
 collect2: ld returned 1 exit status
 make: *** [libavutil/libavutil.52.dylib] Error 1
 ---

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2890#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list