[Mono-dev] Need help building Mono under Snow Leopard

Koushik K. Dutta koush at koushikdutta.com
Thu Dec 3 16:27:37 EST 2009


You can also autogen/configure with the --with-glib=embedded to get around that depenedency. I'm compiling on Snow Leopard using that.

Koush

On Dec 3, 2009, at 1:11 PM, ptr2009 wrote:

> 
> hey all
> 
> I am trying to build mono under Snow Leopard. I have the the 64bit Xcode
> 3.2.1 installed.
> 
> Here is what I have tried.
> 
> Followed instructions from http://www.mono-project.com/Compiling_Mono_on_OSX
> 
> What I had to differently from the page was
> 1) In building glib I cd'ed to glib directory instead of pkg-config. I am
> assuming it was a typo on the website
> 2) glib complained about libiconv so I downloaded and compiled
> libiconv-1.13.1 and installed under MONO_PREFIX directory.
> 3)  I added these three extra variables to my setup-mono script as per some
> previous posts in this forum
> 
>      CFLAGS="-arch i386 -D_XOPEN_SOURCE" 
>      LDFLAGS="-arch i386" 
>      CXXFLAGS=$CFLAGS
> 
> I have been able to successfully build all the necessary dependencies to
> build mono.
> 
> Afters I tried building the mono 2.4.2.3 tar source but I get the following
> error
> 
> ----------------------------------------------
> 
> UNMAP -DGetCurrentProcess=MonoGetCurrentProcess
> -DGetCurrentThread=MonoGetCurrentThread -DCreateEvent=MonoCreateEvent -g -MT
> allchblk.lo -MD -MP -MF .deps/allchblk.Tpo -c allchblk.c  -fno-common -DPIC
> -o .libs/allchblk.o
> In file included from ./include/private/gc_priv.h:66,
>                 from allchblk.c:19:
> ./include/private/gcconfig.h:499: error: expected identifier or ‘(’ before
> ‘--’ token
> make[3]: *** [allchblk.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> 
> ------------------------------------------------
> 
> I have also tried the instructions on Compiling_Mono_FROM_SVN. But I get the
> following error
> 
> -------------------------------------------------
> 
> rm -f es.gmo && /Users/ptrajkumar/monobin/bin/msgfmt -c --statistics -o
> es.gmo es.po
> dyld: lazy symbol binding failed: Symbol not found: _iconv_open
>  Referenced from: /Users/ptrajkumar/monobin/lib/libgettextsrc-0.17.dylib
>  Expected in: flat namespace
> 
> dyld: Symbol not found: _iconv_open
>  Referenced from: /Users/ptrajkumar/monobin/lib/libgettextsrc-0.17.dylib
>  Expected in: flat namespace
> 
> /bin/sh: line 1: 14613 Trace/BPT trap         
> /Users/ptrajkumar/monobin/bin/msgfmt -c --statistics -o t-${lang}.gmo
> ${lang}.po
> make[4]: *** [es.gmo] Error 133
> make[3]: *** [stamp-po] Error 2
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> 
> 
> -------------------------------------------------
> 
> 
> Has anybody else tried building mono under Snow Leopard ? If so, could you
> please tell me what I am doing wrong ?
> 
> Thanks
> Raj
> 
> 
> 
> 
> 
> 
> -- 
> View this message in context: http://old.nabble.com/Need-help-building-Mono-under-Snow-Leopard-tp26632481p26632481.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list