[x264-devel] x264 - linker issue OS X (Intel Core 2 Duo)

Guillaume Poirier gpoirier at mplayerhq.hu
Sun Aug 24 11:32:01 CEST 2008


Hello,

Le 29 mai 08 à 17:08, Stéphane Gasparini a écrit :

> Hi all,
>
> I wanted to investigate an issue with x264 within vlc.
>
> So I started to compile vlc 0.8.6.f and after having solved some  
> issue on vlc build process in itself, I'm facing some issue with  
> libx264.a library that configure of vlc thinks is not existing.
>
> Here is the investigation I made so far.
>
> I created a contest.c and compiled it with command line used by vlc  
> configure.
>
> here is the content of myconftest.c
> /* We use char because int might match the return type of a gcc2
>   builtin and then its argument prototype would still apply.  */
> char x264_encoder_open ();
> int
> main ()
> {
> x264_encoder_open ();
>  ;
>  return 0;
> }
>
> when I compile it with
> gcc -o myconftest -Wsign-compare -Wall  -I/Users/r42555/Documents/ 
> vlc-0.8.6f/./extras/contrib/include -D_INTL_REDIRECT_MACROS -pipe  - 
> I/Users/r42555/Documents/vlc-0.8.6f/./extras/contrib/include - 
> DSYS_DARWIN  -L/Users/r42555/Documents/vlc-0.8.6f/./extras/contrib/ 
> lib -lmx -lm  myconftest.c -lx264
>
> I got those errors, that explain why vlc configure is failing
> /usr/bin/ld: Undefined symbols:
> _x264_cpu_cpuid
> _x264_cpu_cpuid_test
> _x264_emms
> _x264_add4x4_idct_mmxext
> _x264_dct4x4dc_mmxext
> _x264_idct4x4dc_mmxext
> _x264_sub4x4_dct_mmxext
> _x264_center_filter_mmxext
> _x264_horizontal_filter_mmxext
> _x264_mc_chroma_sse
> _x264_pixel_sad_16x16_mmxext
> _x264_pixel_sad_16x8_mmxext
> _x264_pixel_sad_4x4_mmxext
> _x264_pixel_sad_4x8_mmxext
> _x264_pixel_sad_8x16_mmxext
> _x264_pixel_sad_8x4_mmxext
> _x264_pixel_sad_8x8_mmxext
> _x264_pixel_satd_16x16_mmxext
> _x264_pixel_satd_16x8_mmxext
> _x264_pixel_satd_4x4_mmxext
> _x264_pixel_satd_4x8_mmxext
> _x264_pixel_satd_8x16_mmxext
> _x264_pixel_satd_8x4_mmxext
> _x264_pixel_satd_8x8_mmxext
> _x264_pixel_ssd_16x16_mmxext
> _x264_pixel_ssd_16x8_mmxext
> _x264_pixel_ssd_4x4_mmxext
> _x264_pixel_ssd_4x8_mmxext
> _x264_pixel_ssd_8x16_mmxext
> _x264_pixel_ssd_8x4_mmxext
> _x264_pixel_ssd_8x8_mmxext
> _x264_mc_copy_w16_mmxext
> _x264_mc_copy_w4_mmxext
> _x264_mc_copy_w8_mmxext
> _x264_pixel_avg_w16_mmxext
> _x264_pixel_avg_w4_mmxext
> _x264_pixel_avg_w8_mmxext
> _predict_16x16_v_mmx
> _predict_8x8c_v_mmx
> collect2: ld returned 1 exit status
> kenobi-x:/Users/r42555/Documents/vlc-0.8.6f r42555$
>
> doing more investigation I saw that those routines exist in the  
> library but not with the preceding underscore.


[..]

Please retry after explicitely linking with libx264.a file. A similar  
problem happens also when one builds checkasm program.

Guillaume


More information about the x264-devel mailing list