[Mono-dev] Cannot compile libgdiplus-2.10.9

Ben Clewett ben.clewett at roadtech.co.uk
Thu Oct 25 13:43:57 UTC 2012


Hi Mono,

I was getting this line in apache error log running xsp and mono 3.0.0:

System.TypeInitializationException: An exception was thrown by the type 
initializer for System.Drawing.KnownColors ---> 
System.TypeInitializationException: An exception was thrown by the type 
initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: 
/usr/local/lib/libgdiplus.so

I guess my libgdi is down a version?

Tried to compile libgdiplus-2.10.9 (which I believe is latest) and getting:

/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -pthread   -o 
testgdi testgdi.o ../src/libgdiplus.la -lpthread -lfontconfig
libtool: link: gcc -g -O2 -pthread -o .libs/testgdi testgdi.o 
../src/.libs/libgdiplus.so -lpthread -lfontconfig -pthread
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: 
testgdi.o: undefined reference to symbol 'g_free'
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: 
note: 'g_free' is defined in DSO /usr/lib64/libglib-2.0.so.0 so try 
adding it to the linker command line
/usr/lib64/libglib-2.0.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [testgdi] Error 1


Anybody able to suggest where I go from here?

Thanks!

Ben Clewett





-- 
Ben Clewett
http://www.roadtech.co.uk
http://www.tachomaster.co.uk
+44 (0)1923 460000
Road Tech Computer Systems Ltd
Shenley Hall
Rectory Lane
Shenley
Hertfordshire WD7 9AN
United Kingdom


More information about the Mono-devel-list mailing list