梁全 | 8 May 02:32
Favicon

Why I install Agar on Windows with Cygwin is failed

I think I have installed Agar on my Cygwin, but when I want to build projects in demos directory,
I encountered some errors. For example, when I execute "./configure" in directory glview,
Cygwin reported error "This demo requires Agar installed on your system".

Why checking for Agar (http://libagar.org/)... is yes,
while checking whether Agar works... is no

Follow is the content in config.log
Machine: i686
Release: 1.5.24(0.156/4/2)
System: CYGWIN_NT-5.1
checking for a usable C compiler...Detected executable suffix: .exe
checking for compiler warning options.../usr/bin/cc   -Wall -Werror -o ./conftest conftest.c 
yes
checking for gcc.../usr/bin/cc  -Wall -Werror  -o ./conftest conftest.c 
yes
checking for IEEE754 floating point.../usr/bin/cc  -Wall -Werror  -o ./conftest conftest.c 
yes
checking __bounded__ attribute.../usr/bin/cc  -Wall -Werror  -o ./conftest conftest.c 
conftest.c:1: warning: `__bounded__' attribute directive ignored
-> failed (0)
no
checking __format__ attribute.../usr/bin/cc  -Wall -Werror  -o ./conftest conftest.c 
yes
checking __nonnull__ attribute.../usr/bin/cc  -Wall -Werror -Wall -Werror -o ./conftest conftest.c
yes
checking __aligned__ attribute.../usr/bin/cc  -Wall -Werror -Wall -Werror -o ./conftest conftest.c
yes
checking __packed__ attribute.../usr/bin/cc  -Wall -Werror -Wall -Werror -o ./conftest conftest.c
yes
checking for long double.../usr/bin/cc  -Wall -Werror -o ./conftest conftest.c
yes
checking for long long.../usr/bin/cc  -Wall -Werror -o ./conftest conftest.c
yes
checking for cygwin environment.../usr/bin/cc  -Wall -Werror -mcygwin -o ./conftest conftest.c
yes
checking for POSIX threads.../usr/bin/cc  -mno-cygwin -Wall -Werror  -o ./conftest conftest.c -lpthread
conftest.c:1:21: pthread.h: No such file or directory
conftest.c: In function `start_routine':
conftest.c:6: error: `NULL' undeclared (first use in this function)
conftest.c:6: error: (Each undeclared identifier is reported only once
conftest.c:6: error: for each function it appears in.)
conftest.c: In function `main':
conftest.c:10: error: `pthread_mutex_t' undeclared (first use in this function)
conftest.c:10: error: parse error before "mutex"
conftest.c:11: error: `pthread_t' undeclared (first use in this function)
conftest.c:12: warning: implicit declaration of function `pthread_mutex_init'
conftest.c:12: error: `mutex' undeclared (first use in this function)
conftest.c:12: error: `NULL' undeclared (first use in this function)
conftest.c:13: warning: implicit declaration of function `pthread_mutex_lock'
conftest.c:14: warning: implicit declaration of function `pthread_mutex_unlock'
conftest.c:15: warning: implicit declaration of function `pthread_mutex_destroy'
conftest.c:16: warning: implicit declaration of function `pthread_create'
conftest.c:16: error: `thread' undeclared (first use in this function)
-> failed (0)
no
checking for -pthread.../usr/bin/cc  -mno-cygwin -Wall -Werror  -o ./conftest conftest.c -pthread
cc: unrecognized option `-pthread'
conftest.c:1:21: pthread.h: No such file or directory
conftest.c: In function `start_routine':
conftest.c:6: error: `NULL' undeclared (first use in this function)
conftest.c:6: error: (Each undeclared identifier is reported only once
conftest.c:6: error: for each function it appears in.)
conftest.c: In function `main':
conftest.c:10: error: `pthread_mutex_t' undeclared (first use in this function)
conftest.c:10: error: parse error before "mutex"
conftest.c:11: error: `pthread_t' undeclared (first use in this function)
conftest.c:12: warning: implicit declaration of function `pthread_mutex_init'
conftest.c:12: error: `mutex' undeclared (first use in this function)
conftest.c:12: error: `NULL' undeclared (first use in this function)
conftest.c:13: warning: implicit declaration of function `pthread_mutex_lock'
conftest.c:14: warning: implicit declaration of function `pthread_mutex_unlock'
conftest.c:15: warning: implicit declaration of function `pthread_mutex_destroy'
conftest.c:16: warning: implicit declaration of function `pthread_create'
conftest.c:16: error: `thread' undeclared (first use in this function)
-> failed (0)
no
checking for -pthread (common paths).../usr/bin/cc  -mno-cygwin -Wall -Werror  -o ./conftest
conftest.c 
conftest.c:1:21: pthread.h: No such file or directory
conftest.c: In function `start_routine':
conftest.c:6: error: `NULL' undeclared (first use in this function)
conftest.c:6: error: (Each undeclared identifier is reported only once
conftest.c:6: error: for each function it appears in.)
conftest.c: In function `main':
conftest.c:10: error: `pthread_mutex_t' undeclared (first use in this function)
conftest.c:10: error: parse error before "mutex"
conftest.c:11: error: `pthread_t' undeclared (first use in this function)
conftest.c:12: warning: implicit declaration of function `pthread_mutex_init'
conftest.c:12: error: `mutex' undeclared (first use in this function)
conftest.c:12: error: `NULL' undeclared (first use in this function)
conftest.c:13: warning: implicit declaration of function `pthread_mutex_lock'
conftest.c:14: warning: implicit declaration of function `pthread_mutex_unlock'
conftest.c:15: warning: implicit declaration of function `pthread_mutex_destroy'
conftest.c:16: warning: implicit declaration of function `pthread_create'
conftest.c:16: error: `thread' undeclared (first use in this function)
-> failed (0)
no
checking for the X/Open Threads Extension.../usr/bin/cc  -mno-cygwin -Wall -Werror -U_XOPEN_SOURCE
-D_XOPEN_SOURCE=600 -o ./conftest conftest.c -lpthread
conftest.c:1:21: pthread.h: No such file or directory
conftest.c: In function `main':
conftest.c:6: error: `pthread_mutex_t' undeclared (first use in this function)
conftest.c:6: error: (Each undeclared identifier is reported only once
conftest.c:6: error: for each function it appears in.)
conftest.c:6: error: parse error before "mutex"
conftest.c:7: error: `pthread_mutexattr_t' undeclared (first use in this function)
conftest.c:8: warning: implicit declaration of function `pthread_mutexattr_settype'
conftest.c:8: error: `mutexattr' undeclared (first use in this function)
conftest.c:8: error: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)
conftest.c:9: warning: implicit declaration of function `pthread_mutex_init'
conftest.c:9: error: `mutex' undeclared (first use in this function)
-> failed (0)
no
checking for the X/Open Threads Extension (common paths).../usr/bin/cc  -mno-cygwin -Wall -Werror
-U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 -o ./conftest conftest.c 
conftest.c:1:21: pthread.h: No such file or directory
conftest.c: In function `main':
conftest.c:6: error: `pthread_mutex_t' undeclared (first use in this function)
conftest.c:6: error: (Each undeclared identifier is reported only once
conftest.c:6: error: for each function it appears in.)
conftest.c:6: error: parse error before "mutex"
conftest.c:7: error: `pthread_mutexattr_t' undeclared (first use in this function)
conftest.c:8: warning: implicit declaration of function `pthread_mutexattr_settype'
conftest.c:8: error: `mutexattr' undeclared (first use in this function)
conftest.c:8: error: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)
conftest.c:9: warning: implicit declaration of function `pthread_mutex_init'
conftest.c:9: error: `mutex' undeclared (first use in this function)
-> failed (0)
no
checking for PTHREAD_MUTEX_RECURSIVE.../usr/bin/cc  -mno-cygwin -Wall -Werror  -o ./conftest
conftest.c 
conftest.c:1:21: pthread.h: No such file or directory
conftest.c: In function `main':
conftest.c:5: error: `pthread_mutex_t' undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
conftest.c:5: error: parse error before "mutex"
conftest.c:6: error: `pthread_mutexattr_t' undeclared (first use in this function)
conftest.c:7: warning: implicit declaration of function `pthread_mutexattr_settype'
conftest.c:7: error: `mutexattr' undeclared (first use in this function)
conftest.c:7: error: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)
conftest.c:8: warning: implicit declaration of function `pthread_mutex_init'
conftest.c:8: error: `mutex' undeclared (first use in this function)
-> failed (0)
no
checking for PTHREAD_MUTEX_RECURSIVE_NP.../usr/bin/cc  -mno-cygwin -Wall -Werror  -o ./conftest
conftest.c 
conftest.c:1:21: pthread.h: No such file or directory
conftest.c: In function `main':
conftest.c:5: error: `pthread_mutex_t' undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
conftest.c:5: error: parse error before "mutex"
conftest.c:6: error: `pthread_mutexattr_t' undeclared (first use in this function)
conftest.c:7: warning: implicit declaration of function `pthread_mutexattr_settype'
conftest.c:7: error: `mutexattr' undeclared (first use in this function)
conftest.c:7: error: `PTHREAD_MUTEX_RECURSIVE_NP' undeclared (first use in this function)
conftest.c:8: warning: implicit declaration of function `pthread_mutex_init'
conftest.c:8: error: `mutex' undeclared (first use in this function)
-> failed (0)
no
checking for SDL (http://www.libsdl.org)...yes
checking whether SDL works.../usr/bin/cc  -mno-cygwin -Wall -Werror -I/usr/local/include/SDL
-I/usr/include/mingw -mno-cygwin -Dmain=SDL_main -o ./conftest conftest.c -L/usr/local/lib
-lmingw32 -lSDLmain -lSDL -mno-cygwin -mwindows
yes
checking for OpenGL (http://www.opengl.org)...yes
checking whether -lopengl32 works.../usr/bin/cc  -mno-cygwin -Wall -Werror -I/usr/X11R6/include -o
./conftest conftest.c -lopengl32
yes
checking whether OpenGL works.../usr/bin/cc  -mno-cygwin -Wall -Werror -I/usr/X11R6/include -o
./conftest conftest.c -L/usr/X11R6/lib -lopengl32
yes
checking for FreeType (http://www.freetype.org)...yes
checking whether FreeType works.../usr/bin/cc  -mno-cygwin -Wall -Werror
-I/usr/local/include/freetype2 -I/usr/local/include -o ./conftest conftest.c -L/usr/local/lib
-lfreetype -lz
yes
checking for Agar (http://libagar.org/)...yes
checking whether Agar works.../usr/bin/cc  -mno-cygwin -Wall -Werror -I/usr/local/include/agar
-I/usr/local/include/SDL -I/usr/include/mingw -mno-cygwin -Dmain=SDL_main
-I/usr/local/include/freetype2 -I/usr/local/include -I/usr/X11R6/include   
 -o ./conftest conftest.c -L/usr/local/lib -lag_gui -lag_core -L/usr/local/lib -lmingw32 -lSDLmain
-lSDL -mno-cygwin -mwindows -L/usr/local/lib -lfreetype -lz -L/usr/X11R6/lib -lopengl32 -lm  
cc: 
: No such file or directory
cc: 
: No such file or directory
-> failed (0)
no
checking for OpenGL support in Agar...no
checking for the C math library.../usr/bin/cc  -mno-cygwin -Wall -Werror  -mno-cygwin  -o ./conftest
conftest.c -lm
yes

2009-05-08 

Liang Quan

Gmane