libgdiplus make error /want to install for mono
I 've wanted to install libgdiplus-1.0.6 for mono on Fedora Core 3..The configure step was successful .But at make I have this error. I didn't understand this.
[root@localhost libgdiplus-1.0.6]# make make all-recursive make[1]: Entering directory `/root/mono/libgdiplus-1.0.6' Making all in src make[2]: Entering directory `/root/mono/libgdiplus-1.0.6/src' if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/local/include/cairo -I/usr/local/include -I/usr/X11R6/include -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -g -O2 -pthread -MT adjustablearrowcap.lo -MD -MP -MF ".deps/adjustablearrowcap.Tpo" -c -o adjustablearrowcap.lo adjustablearrowcap.c; \ then mv -f ".deps/adjustablearrowcap.Tpo" ".deps/adjustablearrowcap.Plo"; else rm -f ".deps/adjustablearrowcap.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/local/include/cairo -I/usr/local/include -I/usr/X11R6/include -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -Wall -Werror -Wno-unused -Wno-format -g -O2 -pthread -MT adjustablearrowcap.lo -MD -MP -MF .deps/adjustablearrowcap.Tpo -c adjustablearrowcap.c -fPIC -DPIC -o .libs/adjustablearrowcap.o In file included from adjustablearrowcap.c:27: gdip.h:727: error: syntax error before "FcFontSet" gdip.h:727: warning: no semicolon at end of struct or union gdip.h:729: warning: type defaults to `int' in declaration of `config' gdip.h:729: warning: data definition has no type or storage class gdip.h:730: error: syntax error before '}' token gdip.h:730: warning: type defaults to `int' in declaration of `GpFontCollection' gdip.h:730: warning: data definition has no type or storage class gdip.h:734: error: syntax error before "FcPattern" gdip.h:734: warning: no semicolon at end of struct or union gdip.h:736: error: syntax error before '}' token gdip.h:736: warning: type defaults to `int' in declaration of `GpFontFamily' gdip.h:736: warning: data definition has no type or storage class gdip.h:744: error: syntax error before "FT_Library" gdip.h:744: warning: no semicolon at end of struct or union gdip.h:745: warning: type defaults to `int' in declaration of `GpFont' gdip.h:745: warning: data definition has no type or storage class gdip.h:838: error: syntax error before '*' token gdip.h:838: warning: type defaults to `int' in declaration of `GDIP_display' gdip.h:838: warning: data definition has no type or storage class gdip.h:1015: warning: type defaults to `int' in declaration of `GpFont' gdip.h:1015: error: syntax error before '*' token gdip.h:1016: warning: type defaults to `int' in declaration of `GpFont' gdip.h:1016: error: syntax error before '*' token gdip.h:1044: error: syntax error before '*' token gdip.h:1045: error: syntax error before '*' token gdip.h:1046: error: syntax error before '*' token gdip.h:1047: warning: type defaults to `int' in declaration of `GpFontFamily' gdip.h:1047: error: syntax error before '*' token gdip.h:1048: error: syntax error before '*' token gdip.h:1049: error: syntax error before '*' token gdip.h:1050: error: syntax error before '*' token gdip.h:1051: error: syntax error before '*' token gdip.h:1052: warning: type defaults to `int' in declaration of `GpFontFamily' gdip.h:1052: error: syntax error before '*' token gdip.h:1053: warning: type defaults to `int' in declaration of `GpFontFamily' gdip.h:1053: error: syntax error before '*' token gdip.h:1054: warning: type defaults to `int' in declaration of `GpFontFamily' gdip.h:1054: error: syntax error before '*' token gdip.h:1055: warning: type defaults to `int' in declaration of `GpFontFamily' gdip.h:1055: error: syntax error before '*' token gdip.h:1056: warning: type defaults to `int' in declaration of `GpFontFamily' gdip.h:1056: error: syntax error before '*' token gdip.h:1057: error: syntax error before '*' token gdip.h:1058: error: syntax error before '*' token gdip.h:1059: error: syntax error before '*' token gdip.h:1063: warning: type defaults to `int' in declaration of `GpFontFamily' gdip.h:1063: error: syntax error before '*' token gdip.h:1064: error: syntax error before "GpFontCollection" gdip.h:1065: error: syntax error before '*' token In file included from adjustablearrowcap.c:27: gdip.h:1166: warning: parameter has incomplete type adjustablearrowcap.c: In function `gdip_adjust_arrowcap_clone_cap': adjustablearrowcap.c:75: warning: implicit declaration of function `memcpy' make[2]: *** [adjustablearrowcap.lo] Hata 1 make[2]: Leaving directory `/root/mono/libgdiplus-1.0.6/src' make[1]: *** [all-recursive] Hata 1 make[1]: Leaving directory `/root/mono/libgdiplus-1.0.6' make: *** [all] Hata 2 |
I get this error too. For all I know, could be some includes that are missing. I added
#include <cairo/cairo-ft.h> in gdip.h It seemed to come through the errors you describe above, but it still doesn't work. (Maybe this isn't a good solution either, for all I know) Have you found a solution to this? |
No not yet:(
But I'm sure there are some people who succeeded this. I want to make Windows Forms with Mono.(Now I'm developing C# applications for my school projects. But now only console applications on Linux. For Windows Forms I'm using Windows and .NET) My development environment is Linux and I will see Windows Forms on Linux. I'm now working on this. ( As far as I can remember libgdiplus is needed for Mono to compile and run Windows Forms. So it is important) |
All times are GMT -5. The time now is 10:11 PM. |