Re: Problem detecting pthread in several packages... (cannot find -lpthread)
Eugene Kovgar <[email protected]> Tue, 21 Apr 2009 13:04:06 +0000 (UTC)
| Newsgroups | gmane.comp.video.mplayer.cygwin |
|---|---|
| Message-ID | <[email protected]> |
Eugene Kovgar <ken20001 <at> ukr.net> writes: > > Milen Manev <mmanev <at> gmail.com> writes: > > > For x264 > > pass to configure script > > --extra-cflags="-I/home/Eugene/inlcude" --extra-ldflags="-L/home/Eugene/lib" > > (I assume that when you compile pthreads you set prefix=/home/Eugene) > > > > I have no idea why x264 configure script does not use environment > > variables CFLAGS and LDFLAGS > > > Well, it helped, but only in x264 package. In some other packages I tried to use CFLAGS, CPPFLAGS and LDFLAGS after ./configure - command. But It is hot helped: libvorbis-1.2.0 configure:19627: checking for cos in -lm configure:19662: gcc -o conftest.exe -O20 -D__NO_MATH_INLINES -fsigned-char -I/ home/Eugene/include -DUSE_MEMORY_H -I/home/Eugene/include -L/home/Eugene/lib conftest.c -lm >&5 conftest.c:27: warning: conflicting types for built-in function 'cos' configure:19668: $? = 0 configure:19686: result: yes configure:19694: checking for pthread_create in -lpthread configure:19729: gcc -o conftest.exe -O20 -D__NO_MATH_INLINES -fsigned-char -I/ home/Eugene/include -DUSE_MEMORY_H -I/home/Eugene/include -L/home/Eugene/lib conftest.c -lpthread >&5 c:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lpthread collect2: ld returned 1 exit status configure:19735: $? = 1 configure: failed program was: | /* confdefs.h. */ xvidcore-1.2.1 configure:4947: checking pthread.h usability configure:4964: gcc -c -I/home/Eugene/include -I/home/Eugene/include conftest.c >&5 configure:4970: $? = 0 configure:4984: result: yes configure:4988: checking pthread.h presence configure:5003: gcc -E -I/home/Eugene/include conftest.c configure:5009: $? = 0 configure:5023: result: yes configure:5056: checking for pthread.h configure:5063: result: yes configure:5068: checking for pthread_create in -lpthread configure:5103: gcc -o conftest.exe -I/home/Eugene/include -I/home/Eugene/ include -L/home/Eugene/lib conftest.c -lpthread >&5 c:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lpthread collect2: ld returned 1 exit status configure:5109: $? = 1 configure: failed program was: | /* confdefs.h. */ libdv-1.0.0 configure:20015: checking whether to enable debugging configure:20047: result: default=yes configure:20722: checking for pthread_create in -lpthread configure:20757: gcc -o conftest.exe -DPTW32_STATIC_LIB -Wall -g -I/home/ Eugene/include -L/home/Eugene/lib conftest.c -lpthread >&5 c:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lpthread collect2: ld returned 1 exit status configure:20763: $? = 1 configure: failed program was: | /* confdefs.h. */ schroedinger-1.0.5.tar.gz configure:21024: checking pkg-config is at least version 0.9.0 configure:21027: result: yes configure:21038: checking for LIBOIL configure:21046: $PKG_CONFIG --exists --print-errors "liboil-0.3 >= $OIL_VER" configure:21049: $? = 0 configure:21064: $PKG_CONFIG --exists --print-errors "liboil-0.3 >= $OIL_VER" configure:21067: $? = 0 configure:21103: result: yes configure:21224: checking threading implementation to use configure:21236: result: win32 PTHREAD_CFLAGS='' PTHREAD_LIBS='' So, in this packages pthread detects as win32 (in Schroedinger) or not detects at all. Some idea? In my environment vatiables next lines are present: export CPPFLAGS=" -I/home/Eugene/include" export LDFLAGS=" -L/home/Eugene/lib" export PATH=".:/usr/local/bin:/mingw/bin:/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/ WINDOWS/system32/wbem:/c/Program Files/ATI Technologies/ATI Control Panel:/c/ Program Files/TortoiseSVN/bin:/c/Program Files/Git/cmd:/home/Eugene/bin" export PKG_CONFIG_PATH=":/home/Eugene/lib/pkgconfig/"