All,

I have been trying to build the latest OpenWengo 2.2 code on Windows XP using:

qt 4.1.5
cmake 2.4.7
mingw 5.1.3 (candidate packages)
gcc 3.4.5 (mingw special)
boost 1.34.1

I've managed to work through a few issues myself with a compiler flag and the odd hack and have managed to get to 51% built - but I'm stuck now on pthreads related errors when compiling the SFP-Plugin. I've read some stuff relating specifically to MinGW and the SFP plugin code but can't figure out how to correct this one...

Any pointers/advice greatly appreciated. Do I need SFP - can I disable it? Should I save myself a lot of hassle and use VC++ to compile instead?

[ 51%] Building C object wifo/wifo-plugins/sfp-plugin/CMakeFiles/sfp-plugin.dir/src/sfp-plugin.obj In file included from E:\WengoPhone\wifo\wifo-plugins\sfp-plugin\src\sfp-plugin.c:37: E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:118: warning: ignoring #pragma comment In file included from E:\WengoPhone\wifo\wifo-plugins\sfp-plugin\src\sfp-plugin.c:37: E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:873: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:875: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:877: warning: type defaults to `int' in declaration of `pthread_attr_t' E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:877: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:880: warning: type defaults to `int' in declaration of `pthread_attr_t' E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:880: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:883: warning: type defaults to `int' in declaration of `pthread_attr_t' E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:883: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:886: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:889: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:892: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:895: warning: type defaults to `int' in declaration of `pthread_attr_t' E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:895: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:898: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:901: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:904: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:907: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:910: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:913: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:916: warning: type defaults to `int' in declaration of `pthread_attr_t' E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:916: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:922: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:924: error: `pthread_create' declared as function returning a function E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:925: error: syntax error before "void" E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:927: error: syntax error before "tid" E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:929: error: syntax error before "t1" E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:934: error: syntax error before "thread" E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:937: warning: type defaults to `int' in declaration of `pthread_t' E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:937: warning: `__cdecl__' attribute only applies to function types E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:937: error: syntax error before "pthread_self" E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:939: error: syntax error before "thread" E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:949: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:950: error: syntax error before ')' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:963: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:964: error: syntax error before ')' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:966: error: syntax error before "key" E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:968: error: syntax error before "key" E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:971: error: syntax error before "key" E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:977: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:979: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:982: warning: type defaults to `int' in declaration of `pthread_mutexattr_t' E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:982: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:985: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:988: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:989: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1008: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1011: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1013: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1015: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1018: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1020: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1049: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1051: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1053: warning: type defaults to `int' in declaration of `pthread_condattr_t' E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1053: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1056: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1062: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1065: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1067: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1070: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1074: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1076: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1081: error: syntax error before "thread" E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1085: error: syntax error before "thread" E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1108: warning: "struct timespec" declared inside parameter list E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1108: warning: its scope is only this definition or declaration, which is probably not what you want E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1113: warning: "struct timespec" declared inside parameter list E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1133: error: syntax error before "thread" E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1142: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1144: error: syntax error before '*' token E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1150: warning: "struct timespec" declared inside parameter list E:/WengoPhone/libs/3rdparty/pthread/include/pthread.h:1188: error: syntax errorbefore "thread" E:\WengoPhone\wifo\wifo-plugins\sfp-plugin\src\sfp-plugin.c:182: error: syntax error before "pause_mutex" E:\WengoPhone\wifo\wifo-plugins\sfp-plugin\src\sfp-plugin.c:182: warning: type defaults to `int' in declaration of `pause_mutex' E:\WengoPhone\wifo\wifo-plugins\sfp-plugin\src\sfp-plugin.c:182: warning: data definition has no type or storage class E:\WengoPhone\wifo\wifo-plugins\sfp-plugin\src\sfp-plugin.c: In function `sfp_receive_file': E:\WengoPhone\wifo\wifo-plugins\sfp-plugin\src\sfp-plugin.c:335: error: syntax error before "thread" E:\WengoPhone\wifo\wifo-plugins\sfp-plugin\src\sfp-plugin.c:370: error: `thread' undeclared (first use in this function) E:\WengoPhone\wifo\wifo-plugins\sfp-plugin\src\sfp-plugin.c:370: error: (Each undeclared identifier is reported only once E:\WengoPhone\wifo\wifo-plugins\sfp-plugin\src\sfp-plugin.c:370: error: for each function it appears in.) E:\WengoPhone\wifo\wifo-plugins\sfp-plugin\src\sfp-plugin.c: In function `transferAcceptedHandler': E:\WengoPhone\wifo\wifo-plugins\sfp-plugin\src\sfp-plugin.c:1283: error: syntax error before "thread" E:\WengoPhone\wifo\wifo-plugins\sfp-plugin\src\sfp-plugin.c:1320: error: `thread' undeclared (first use in this function) mingw32-make[2]: *** [wifo/wifo-plugins/sfp-plugin/CMakeFiles/sfp-plugin.dir/src/sfp-plugin.obj] Error 1 mingw32-make[1]: *** [wifo/wifo-plugins/sfp-plugin/CMakeFiles/sfp-plugin.dir/all] Error 2
mingw32-make: *** [all] Error 2

_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Reply via email to