[MPlayer-users] mplayer compiled in windows - segmentation fault

Alessandro Gabbanelli alessandro.gabbanelli at gmail.com
Wed Nov 14 15:36:11 CET 2012


Il 14/11/2012 10:47, Alessandro Gabbanelli ha scritto:
> D:/C++LIB-mingw/local64/lib\libass.a(ass_shaper.o):(.text+0x276):
> undefined reference to `__imp_fribidi_get_bidi_types'
> D:/C++LIB-mingw/local64/lib\libass.a(ass_shaper.o):(.text+0x2aa):
> undefined reference to `__imp_fribidi_get_par_embedding_levels'
> D:/C++LIB-mingw/local64/lib\libass.a(ass_shaper.o):(.text+0x30b):
> undefined reference to `__imp_fribidi_get_joining_types'
> D:/C++LIB-mingw/local64/lib\libass.a(ass_shaper.o):(.text+0x31e):
> undefined reference to `__imp_fribidi_join_arabic'
> D:/C++LIB-mingw/local64/lib\libass.a(ass_shaper.o):(.text+0x33c):
> undefined reference to `__imp_fribidi_shape'
> D:/C++LIB-mingw/local64/lib\libass.a(ass_shaper.o):(.text+0x52c):
> undefined reference to `__imp_fribidi_reorder_line'
>
> I also tried -lfribidi, same error.

The problem was in fribidi, was compiled with __declspec(dllimport) 
attributes. I removed them and recompiled static libraries.

I managed to get a make correct.
Many thanks for your support!

But I made these changes to "configure":

//CACA
-cc_check $(caca-config --libs) && _caca=yes
+cc_check $(caca-config --libs) -lz && _caca=yes

-libs_mplayer="$libs_mplayer $(caca-config --libs)"
+libs_mplayer="$libs_mplayer $(caca-config --libs) -lz"

//fontconfig
-for ld_tmp in "" "-lexpat -lfreetype" "-lexpat -lfreetype -lz" "-lexpat 
-lfreetype -lz -liconv" ; do
+for ld_tmp in "" "-lexpat -lfreetype" "-lexpat -lfreetype -lz" "-lexpat 
-lfreetype -lz -lbz2" "-lexpat -lfreetype -lz -liconv" ; do

//ASS
-extra_ldflags="$extra_ldflags -lass"
+extra_ldflags=" -lass $extra_ldflags "

It 's too wrong?


the configure output:

Checking for x86_64-w64-mingw32-gcc version ... 4.7.1
Checking for working compiler ... yes
Detected operating system: MINGW32
Detected host architecture: x86_64
Checking for cross compilation ... no
Checking for host cc ... x86_64-w64-mingw32-gcc
Checking for CPU vendor ... GenuineIntel (6:37:5)
Checking for CPU type ...  Intel(R) Core(TM) i5 CPU       M 480  @ 2.67GHz
Checking for kernel support of mmx ... yes
Checking for kernel support of mmxext ... yes
Checking for kernel support of sse ... yes
Checking for kernel support of sse2 ... yes
Checking for kernel support of sse3 ... yes
Checking for kernel support of ssse3 ... yes
Checking for kernel support of sse4_1 ... yes
Checking for kernel support of sse4_2 ... yes
Checking for kernel support of cmov ... yes
Checking for mtrr support ... yes
Checking for GCC & CPU optimization abilities ... native
Checking for byte order ... little-endian
Checking for extern symbol prefix ...
Checking for assembler support of -pipe option ... yes
Checking for relocatable binary ... no
Checking for PIC ... yes
Checking for .align is a power of two ... no
Checking for ebx availability ... yes
Checking for yasm ... yasm
Checking for bswap ... yes
Checking for xmm clobbers ... yes
Checking for langinfo ... no
Checking for language ... messages: en - man pages:  en - documentation:  en
Checking for enable sighandler ... yes
Checking for runtime cpudetection ... no
Checking for restrict keyword ... restrict
Checking for __builtin_expect ... yes
Checking for kstat ... no
Checking for atanf ... yes
Checking for cbrtf ... yes
Checking for cosf ... yes
Checking for expf ... yes
Checking for exp2 ... yes
Checking for exp2f ... yes
Checking for isnan ... yes
Checking for isinf ... yes
Checking for llrint ... yes
Checking for llrintf ... yes
Checking for log2 ... yes
Checking for log2f ... yes
Checking for log10f ... yes
Checking for lrint ... yes
Checking for lrintf ... yes
Checking for rint ... yes
Checking for round ... yes
Checking for roundf ... yes
Checking for sinf ... yes
Checking for trunc ... yes
Checking for truncf ... yes
Checking for atan2f ... yes
Checking for ldexpf ... yes
Checking for powf ... yes
Checking for mkstemp ... no
Checking for nanosleep ... no
Checking for socklib ... no (using -lws2_32)
Checking for netdb.h, struct addrinfo ... yes
Checking for netdb.h, getaddrinfo() ... no
Checking for sockaddr_storage ... yes
Checking for struct ipv6_mreq ... yes
Checking for struct sockaddr_in6 ... yes
Checking for struct sockaddr sa_len ... no
Checking for arpa/inet.h ... no
Checking for inet_pton() ... no
Checking for inet_aton() ... no
Checking for socklen_t ... yes
Checking for closesocket() ... yes
Checking for networking ... yes
Checking for inet6 ... yes
Checking for gethostbyname2 ... no
Checking for SCTP ... no
Checking for sys/poll.h ... no
Checking for inttypes.h (required) ... yes
Checking for int_fastXY_t in inttypes.h ... yes
Checking for malloc.h ... yes
Checking for memalign() ... no
Checking for posix_memalign() ... no
Checking for alloca.h ... no
Checking for fastmemcpy ... yes
Checking for hard-coded tables ... no
Checking for mman.h ... no
Checking for dynamic loader ... no
Checking for dynamic a/v plugins support ... no
Checking for pthread ... yes (using -lpthreadGC2)
Checking for w32threads ... no (using pthread instead)
Checking for direct.h ... yes
Checking for io.h ... yes
Checking for rpath ... no
Checking for iconv ... yes
Checking for soundcard.h ... no
Checking for sys/dvdio.h ... no
Checking for sys/cdio.h ... no
Checking for linux/cdrom.h ... no
Checking for dvd.h ... no
Checking for termcap ... no
Checking for termios ... no
Checking for shm ... no
Checking for strsep() ... no
Checking for vsscanf() ... yes
Checking for POSIX select() ... no
Checking for audio select() ... yes
Checking for gettimeofday() ... yes
Checking for glob() ... no
Checking for setenv() ... no
Checking for setmode() ... yes
Checking for sys/sysinfo.h ... no
Checking for pkg-config ... yes
Checking for Samba support (libsmbclient) ... no
Checking for /dev/mga_vid ... no
Checking for tdfxfb ... no
Checking for s3fb ... no
Checking for wii ... no
Checking for tdfxvid ... no
Checking for xvr100 ... no
Checking for tga ... yes
Checking for md5sum support ... yes
Checking for yuv4mpeg support ... yes
Checking for bl ... no
Checking for DirectFB ... no
Checking for X11 headers presence ... no (check if the dev(el) packages 
are installed)
Checking for X11 ... no (check if the dev(el) packages are installed)
Checking for Xss screensaver extensions ... no
Checking for DPMS ... no
Checking for Xv ... auto
Checking for XvMC ... no
Checking for Video Decode Acceleration (VDA) ... no
Checking for VDPAU ... auto
Checking for Xinerama ... auto
Checking for Xxf86vm ... auto
Checking for XF86keysym ... auto
Checking for DGA ... no
Checking for xmga ... no
Checking for 3dfx ... no
Checking for VIDIX ... no
Checking for GGI ... no
Checking for GGI extension: libggiwmh ... no
Checking for AA ... no
Checking for CACA ... yes
Checking for SVGAlib ... no
Checking for FBDev ... no
Checking for DVB ... no
Checking for PNG support ... yes
Checking for MNG support ... no
Checking for JPEG support ... yes
Checking for OpenJPEG (JPEG 2000) support ... no
Checking for PNM support ... yes
Checking for GIF support ... yes
Checking for broken giflib workaround ... disabled
Checking for VESA support ... no
Checking for SDL ... yes
Checking for OpenGL ... yes (backends: win32 sdl)
Checking for MatrixView ... yes
Checking for Windows waveout ... yes
Checking for Direct3D ... yes
Checking for Directx ... yes
Checking for DXR2 ... no
Checking for DXR3/H+ ... no
Checking for IVTV TV-Out (pre linux-2.6.24) ... no
Checking for V4L2 MPEG Decoder ... no
Checking for OSS Audio ... no
Checking for aRts ... no
Checking for EsounD ... no
Checking for NAS ... no
Checking for pulse ... no
Checking for JACK ... no
Checking for OpenAL ... no
Checking for ALSA audio ... auto
Checking for Sun audio ... no
Checking for VCD support ... no (not supported on this OS)
Checking for Blu-ray support ... no
Checking for dvdread ... yes (internal)
Checking for internal libdvdcss ... yes
Checking for libcdio ... no
Checking for cdparanoia ... no
Checking for bitmap font support ... yes
Checking for freetype >= 2.0.9 ... yes
Checking for fontconfig ... yes
Checking for fribidi with charsets ... yes
Checking for SSA/ASS support ... yes (external)
Checking for ENCA ... no
Checking for zlib ... yes
Checking for bzlib ... yes
Checking for RTC ... no
Checking for liblzo2 support ... yes
Checking for mad support ... yes
Checking for Twolame ... no
Checking for Toolame ... no
Checking for OggVorbis support ... yes (libvorbis)
Checking for libspeex (version >= 1.1 required) ... yes
Checking for libgsm ... no
Checking for OggTheora support ... yes
Checking for mpg123 support ... no
Checking for liba52 support ... no
Checking for libmpeg2 support ... yes (internal)
Checking for libdca support ... yes
Checking for libmpcdec (musepack, version >= 1.2.1 required) ... no
Checking for FAAC support ... yes (in FFmpeg: yes)
Checking for FAAD2 support ... yes
Checking for libopus decoding support ... no
Checking for LADSPA plugin support ... no
Checking for libbs2b audio filter support ... yes
Checking for Win32 codecs ... no
Checking for XAnim codecs ... no (dynamic loader support needed)
Checking for RealPlayer codecs ... no (dynamic loader support needed)
Checking for QuickTime codecs ... auto
Checking for Nemesi Streaming Media libraries ... no
Checking for LIVE555 Streaming Media libraries ... no
Checking for RTMPDump Streaming Media library ... no
Checking for FFmpeg ... yes
Checking for libpostproc ... yes
Checking for libopencore_amr narrowband ... yes
Checking for libopencore_amr wideband ... yes
Checking for libdv-0.9.5+ ... no
Checking for CrystalHD ... no
Checking for Xvid ... yes
Checking for Xvid two pass plugin ... yes
Checking for x264 ... yes (in FFmpeg: yes)
Checking for libdirac ... no
Checking for libschroedinger ... yes
Checking for libvpx ... no
Checking for libnut ... no
Checking for zr ... no
Checking for libmp3lame ... yes (in FFmpeg: yes)
Checking for mencoder ... yes
Checking for UnRAR executable ... no
Checking for TV interface ... yes
Checking for DirectShow TV interface ... yes
Checking for Video 4 Linux TV interface ... auto
Checking for Video 4 Linux 2 TV interface ... no
Checking for Radio interface ... no
Checking for Capture for Radio interface ... no
Checking for Video 4 Linux 2 Radio interface ... auto
Checking for Video 4 Linux Radio interface ... auto
Checking for Video 4 Linux 2 MPEG PVR interface ... auto
Checking for ftp ... yes
Checking for vstream client ... no
Checking for OSD menu ... no
Checking for Subtitles sorting ... yes
Checking for XMMS inputplugin support ... no
Checking for GUI ... no
Checking for automatic gdb attach ... no
Checking for compiler support for noexecstack ... no
Checking for linker support for --nxcompat --no-seh --dynamicbase ... yes
Checking for joystick ... no
Checking for lirc ... no
Checking for lircc ... no
Checking for DVD support (libdvdnav) ... yes (internal)
Checking for XML catalogs ... No SGML catalog found.
Checking for XML chunked stylesheet ... not found, using default
Checking for XML monolithic stylesheet ... not found, using default
Checking for XML DTD ... not found, using default
Checking for valid XSLT processor ... Found xsltproc but no stylesheets 
on your system.
xsltproc is unusable without stylesheets.
Creating config.mak
Creating config.h

Config files successfully generated by ./configure 
--prefix=/build/mplayer/mplayer-bin-20121113 --language=en 
--enable-static --confdir=./mplayer --codecsdir=./codecs 
--cc=x86_64-w64-mingw32-gcc 
--ranlib=/mingw/x86_64-w64-mingw32/bin/ranlib 
--windres=x86_64-w64-mingw32-windres !

   Install prefix: /build/mplayer/mplayer-bin-20121113
   Data directory: /build/mplayer/mplayer-bin-20121113/share/mplayer
   Config direct.: ./mplayer

   Byte order: little-endian
   Optimizing for: native

   Languages:
     Messages/GUI: en
     Manual pages:  en
     Documentation:  en

   Enabled optional drivers:
     Input: dvdnav(internal) ftp tv-dshow tv libdvdcss(internal) 
dvdread(internal) networking
     Codecs: libschroedinger x264 xvid libopencore_amrwb 
libopencore_amrnb ffmpeg(internal) faad2 faac libdca libmpeg2(internal) 
libtheora speex libvorbis libmad liblzo gif
     Audio output: dsound win32 sdl mpegpes(file)
     Video output: directx direct3d matrixview opengl sdl gif89a pnm 
jpeg mpegpes(file) caca yuv4mpeg md5sum tga

   Disabled optional drivers:
     Input: vstream pvr radio tv-v4l2 tv-v4l1 librtmp live555 nemesi 
cddb cdda bluray vcd dvb smb
     Codecs: libvpx libdirac crystalhd libdv qtx real xanim win32 
libopus musepack liba52 mpg123 libgsm toolame twolame OpenJPEG
     Audio output: sun alsa openal jack pulse nas esd arts oss v4l2 ivtv 
dxr2
     Video output: zr zr2 v4l2 ivtv dxr3 dxr2 vesa mng fbdev svga aa ggi 
xvidix winvidix cvidix 3dfx xmga dga vdpau xvmc xv x11 directfb dfbmga 
bl xvr100 tdfx_vid wii s3fb tdfxfb mga






More information about the MPlayer-users mailing list