[MPlayer-cygwin] Can't compile NUT (nut-SVN-r517.diff fails)

Eugene Kovgar ken20001 at ukr.net
Thu Apr 9 13:01:11 CEST 2009


Milen Manev <mmanev <at> gmail.com> writes:

> >> xx_fontconfig_check.diff and xx_pthread_static.diff are got from
> >> http://oss.netfarm.it/mplayer-win32.php.
> >> Check for updates on this site.
> > I know but the date they created is: xx_fontconfig_check.diff [545 bytes] - 
Mar
> > 15, 2009 and xx_pthread_static.diff [2 KiB] - Apr 08, 2009. So it seems the
> > last is very fresh but still not applying. Strange... May be already it is 
not
> > needed anymore, because after compiling Mplayer.exe, it working without
> > pthreadGC2.dll library (?)
> 
> From my point of view you do not use pthread at all when compiling MPlayer.
> Check result from configure:
> Checking for pthread ... _______

Yes. You was right:
##########################################

============ Checking for pthread ============

#include <pthread.h>
void* func(void *arg) { return arg; }
int main(void) { pthread_t tid; return pthread_create(&tid, 0, func, 0) == 0 ? 
0 : 1; }

gcc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=i486 -
mtune=i686 -pipe -ffast-math -fomit-frame-pointer -I.   -I/home/Eugene/include -
static  -lwinmm -ffast-math  -L/home/Eugene/lib -lws2_32   -o /tmp/mplayer-
conf-10300-1572.exe /tmp/mplayer-conf-27901-1572.c -lpthreadGC2
C:/DOCUME~1/Eugene/LOCALS~1/Temp/ccVhuRVT.o:mplayer-conf-27901-1572.c:(.text
+0x45): undefined reference to `_imp__pthread_create'
collect2: ld returned 1 exit status



#include <pthread.h>
void* func(void *arg) { return arg; }
int main(void) { pthread_t tid; return pthread_create(&tid, 0, func, 0) == 0 ? 
0 : 1; }

gcc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=i486 -
mtune=i686 -pipe -ffast-math -fomit-frame-pointer -I.   -I/home/Eugene/include -
static  -lwinmm -ffast-math  -L/home/Eugene/lib -lws2_32   -o /tmp/mplayer-
conf-10300-1572.exe /tmp/mplayer-conf-27901-1572.c
C:/DOCUME~1/Eugene/LOCALS~1/Temp/ccwYVelU.o:mplayer-conf-27901-1572.c:(.text
+0x45): undefined reference to `_imp__pthread_create'
collect2: ld returned 1 exit status



#include <pthread.h>
void* func(void *arg) { return arg; }
int main(void) { pthread_t tid; return pthread_create(&tid, 0, func, 0) == 0 ? 
0 : 1; }

gcc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=i486 -
mtune=i686 -pipe -ffast-math -fomit-frame-pointer -I.   -I/home/Eugene/include -
static  -lwinmm -ffast-math  -L/home/Eugene/lib -lws2_32   -o /tmp/mplayer-
conf-10300-1572.exe /tmp/mplayer-conf-27901-1572.c -lpthread
c:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot 
find -lpthread
collect2: ld returned 1 exit status



#include <pthread.h>
void* func(void *arg) { return arg; }
int main(void) { pthread_t tid; return pthread_create(&tid, 0, func, 0) == 0 ? 
0 : 1; }

gcc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=i486 -
mtune=i686 -pipe -ffast-math -fomit-frame-pointer -I.   -I/home/Eugene/include -
static  -lwinmm -ffast-math  -L/home/Eugene/lib -lws2_32   -o /tmp/mplayer-
conf-10300-1572.exe /tmp/mplayer-conf-27901-1572.c -pthread
C:/DOCUME~1/Eugene/LOCALS~1/Temp/ccmI59rz.o:mplayer-conf-27901-1572.c:(.text
+0x45): undefined reference to `_imp__pthread_create'
collect2: ld returned 1 exit status
gcc.exe: unrecognized option `-pthread'


Result is: no (v4l, v4l2, ao_nas, win32 loader disabled)
##########################################

Milen, what should I do when patch is not working?


> 
> > Yes. And here what I get:
> >
> > ##########################################
> >
> > ============ Checking for libdv-0.9.5+ ============
> >
> > #include <libdv/dv.h>
> > int main(void) { dv_encoder_t* enc=dv_encoder_new(1,1,1); return 0; }
> >
> > C:/MinGW/MSYS/1.0.11/home/Eugene/libdv-1.0.0/libdv/encode.c:1792: undefined
> > reference to `pthread_mutex_lock'
> > ##########################################
> 
> libdv is compiled using pthread. But MPlayer does not recognize it.
> This is the reason libdv is "no"

Well, I understood.

> 
> > ============ Checking for fontconfig ============
> >
> > #include <stdio.h>
> > #include <stdlib.h>
> > #include <fontconfig/fontconfig.h>
> > int main(void) {
> >    int err = FcInit();
> >    if (err == FcFalse) {
> >        printf("Couldn't initialize fontconfig lib\n");
> >        exit(err);
> >    }
> >    return 0;
> > }
> >
> > Result is: no
> > ##########################################
> 
> You need to apply xx_fontconfig_check.diff.
> Problem is that during the check you have to link with iconv.

But this patch is not applying too. Other packages was patched with your 
patches well withour any problems but those two... :(


And here is my output:

Detected operating system: MINGW32
Detected host architecture: i386
Checking for gcc version ... 3.4.5 
Checking for host cc ... gcc 
Checking for cross compilation ... no 
Checking for GCC & CPU optimization abilities ... i486 
Checking for byte order ... little-endian 
Checking for extern symbol prefix ... _ 
Checking for assembler support of -pipe option ... yes 
Checking for compiler support of named assembler arguments ... yes 
Checking for assembler (c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../
mingw32/bin/as.exe ) ... ok 
Checking for .align is a power of two ... no 
Checking for 10 assembler operands ... yes 
Checking for yasm ... yasm 
Checking for bswap ... yes 
Checking for -lposix ... no 
Checking for -lm ... yes 
Checking for langinfo ... no 
Checking for language ... messages: en - man pages: en - documentation: en 
Checking for enable sighandler ... yes 
Checking for runtime cpudetection ... yes 
Checking for restrict keyword ... __restrict 
Checking for __builtin_expect ... yes 
Checking for kstat ... no 
Checking for posix4 ... no 
Checking for llrint ... yes 
Checking for lrint ... yes 
Checking for lrintf ... yes 
Checking for round ... yes 
Checking for roundf ... yes 
Checking for truncf ... yes 
Checking for mkstemp ... no 
Checking for nanosleep ... no 
Checking for socklib ... no (using -lws2_32)
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 network ... yes 
Checking for inet6 ... yes 
Checking for gethostbyname2 ... 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 mman.h ... no 
Checking for dynamic loader ... no 
Checking for dynamic a/v plugins support ... no 
Checking for pthread ... no (v4l, v4l2, ao_nas, win32 loader disabled)
Checking for w32threads ... 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 swab() ... 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 sys/sysinfo.h ... no 
Checking for pkg-config ... yes 
Checking for Samba support (libsmbclient) ... 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 ... no 
Checking for XvMC ... no 
Checking for VDPAU ... no 
Checking for Xinerama ... no 
Checking for Xxf86vm ... no 
Checking for XF86keysym ... no 
Checking for DGA ... no 
Checking for 3dfx ... no 
Checking for OpenGL ... yes (win32 version)
Checking for VIDIX ... yes 
Checking for VIDIX PCI device name database ... yes 
Checking for VIDIX dhahelper support ... no 
Checking for VIDIX svgalib_helper support ... no 
Checking for /dev/mga_vid ... no 
Checking for xmga ... 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 DVB HEAD ... no 
Checking for PNG support ... yes 
Checking for MNG support ... yes 
Checking for JPEG support ... yes 
Checking for PNM support ... yes 
Checking for GIF support ... yes 
Checking for broken giflib workaround ... disabled 
Checking for VESA support ... no 
Checking for SDL ... no 
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 ... no (alloca missing)
Checking for Sun audio ... no 
Checking for VCD support ... yes 
Checking for dvdread ... yes (internal)
Checking for internal libdvdcss ... yes 
Checking for cdparanoia ... no 
Checking for libcdio ... yes 
Checking for bitmap font support ... yes 
Checking for freetype >= 2.0.9 ... yes 
Checking for fontconfig ... no 
Checking for SSA/ASS support ... yes 
Checking for fribidi with charsets ... yes 
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 ... yes 
Checking for Toolame ... no (disabled by twolame)
Checking for OggVorbis support ... yes (libvorbis)
Checking for libspeex (version >= 1.1 required) ... yes 
Checking for OggTheora support ... yes 
Checking for internal mp3lib support ... yes 
Checking for liba52 support ... yes (internal)
Checking for internal libmpeg2 support ... yes 
Checking for libdca support ... yes 
Checking for libmpcdec (musepack, version >= 1.2.1 required) ... yes 
Checking for FAAC support ... yes (in libavcodec: yes)
Checking for FAAD2 support ... yes (internal floating-point)
Checking for LADSPA plugin support ... no 
Checking for libbs2b audio filter support ... no 
Checking for Win32 codecs ... yes (using native windows)
Checking for XAnim codecs ... no (dynamic loader support needed)
Checking for RealPlayer codecs ... yes (using codecs)
Checking for QuickTime codecs ... yes 
Checking for Nemesi Streaming Media libraries ... no 
Checking for LIVE555 Streaming Media libraries ... yes (using /usr/local/lib/
live)
Checking for FFmpeg libavutil ... yes (static)
Checking for FFmpeg libavcodec ... yes (static)
Checking for FFmpeg libavformat ... yes (static)
Checking for FFmpeg libpostproc ... yes (static)
Checking for FFmpeg libswscale ... yes (static)
Checking for libamr narrowband ... yes 
Checking for libamr wideband ... yes 
Checking for libdv-0.9.5+ ... no 
Checking for Xvid ... yes 
Checking for Xvid two pass plugin ... yes 
Checking for x264 ... yes (in libavcodec: yes)
Checking for libdirac ... yes 
Checking for libschroedinger ... yes 
Checking for libnut ... yes 
Checking for zr ... no 
Checking for libmp3lame ... yes (in libavcodec: 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 ... no 
Checking for Video 4 Linux 2 TV interface ... no 
Checking for TV teletext interface ... no 
Checking for Radio interface ... no 
Checking for Capture for Radio interface ... no 
Checking for Video 4 Linux 2 Radio interface ... no 
Checking for Video 4 Linux Radio interface ... no 
Checking for Video 4 Linux 2 MPEG PVR interface ... no 
Checking for ftp ... yes 
Checking for vstream client ... no 
Checking for OSD menu ... yes 
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 joystick ... no 
Checking for lirc ... no 
Checking for lircc ... no 
Checking for DVD support (libdvdnav) ... yes (internal)
Creating config.mak
Creating config.h

Config files successfully generated by ./configure --enable-largefiles --enable-
static --enable-runtime-cpudetection --enable-menu --enable-mng --disable-
tremor-internal --enable-caca !

  Install prefix: /usr/local
  Data directory: /usr/local/share/mplayer
  Config direct.: /usr/local/etc/mplayer

  Byte order: little-endian
  Optimizing for: Runtime CPU-Detection enabled

  Languages:
    Messages/GUI: en
    Manual pages: en

  Enabled optional drivers:
    Input: dvdnav(internal) ftp tv-dshow tv live555 cddb cdda libdvdcss
(internal) dvdread(internal) vcd network 
    Codecs: libschroedinger libdirac x264 xvid libamr_wb libamr_nb libavcodec
(internal) qtx real win32 faad2(internal) faac musepack libdca 
libmpeg2(internal) liba52(internal) mp3lib(internal) libtheora speex libvorbis 
twolame libmad liblzo gif 
    Audio output: dsound win32 mpegpes(file) 
    Video output: directx direct3d gif89a pnm jpeg png mpegpes(file) caca 
winvidix cvidix opengl yuv4mpeg md5sum tga 

  Disabled optional drivers:
    Input: vstream pvr radio tv-teletext tv-v4l2 tv-v4l1 nemesi dvb smb 
    Codecs: libdv xanim toolame 
    Audio output: sun alsa openal jack pulse nas esd arts oss v4l2 ivtv dxr2 
sdl 
    Video output: zr zr2 v4l2 ivtv dxr3 dxr2 sdl vesa fbdev svga aa ggi xmga 
mga xvidix 3dfx dga vdpau xvmc xv x11 dfbmga directfb bl xvr100 tdfx_vid wii 
s3fb tdfxfb






More information about the MPlayer-cygwin mailing list