From: Vincent T. <vt...@un...> - 2009-08-18 07:27:46
|
On Tue, 18 Aug 2009, Paul Gokke wrote: > Hey, > > I am trying to compile the ecore library under the MinGW/Msys environment in > Windows XP but it fails when compiling, ecore_thread.c. > > I got the following error: > > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. > -ID:/msys/1.0/local/include -D_WIN32_WINNT=0x0500 -DEFL_ECORE_BUILD > -I/usr/local/include -ID:/msys/1.0/local/include/eina-0 > -ID:/msys/1.0/local/include/eina-0/eina -D_WIN32_WINNT=0x0500 -g -O2 -MT > ecore_thread.lo -MD -MP -MF .deps/ecore_thread.Tpo -c ecore_thread.c > -DDLL_EXPORT -DPIC -o .libs/ecore_thread.o > ecore_thread.c:9:21: pthread.h: No such file or directory > ecore_thread.c:33: error: syntax error before "_mutex" > ecore_thread.c:33: error: `PTHREAD_MUTEX_INITIALIZER' undeclared here (not > in a function) > ecore_thread.c:33: warning: data definition has no type or storage class > ecore_thread.c: In function `ecore_thread_run': > ecore_thread.c:219: warning: passing arg 1 of pointer to function discards > qualifiers from pointer target type > ecore_thread.c:220: warning: passing arg 1 of pointer to function discards > qualifiers from pointer target type > make[4]: *** [ecore_thread.lo] Error 1 > make[4]: Leaving directory `/home/paul/tmp/ecore/src/lib/ecore' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/paul/tmp/ecore/src/lib' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/paul/tmp/ecore/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/paul/tmp/ecore' > make: *** [all] Error 2 > > > Although the configure script detected that pthread.h is not present, > somehow it wants to compile code that is not Windows compliant. > > Can someone help me with this? actually, just some missing guards in ecore_thread.c. I'll try to fix that this evening (today is my last holyday day :) ) Vincent |