Thanks for the extra info for the Snow Leopard build.

It helped me get a little further now: "GNU Gettext" and "pkg-config" now
both build OK on Snow Leopard.
The "glib" configure however stops with following error:

(After installing Gettext and pkg-config in /Users/fdm/Mono)
When I execute:

cd glib-2.22.0
CFLAGS="-m32"
CXXFLAGS="-m32" 
CC="cc -L/Users/fdm/Mono/lib"
./configure --prefix=/Users/fdm/Mono

I get the following output: (only the last few lines shown)
----------------
...
checking for libintl.h... yes
checking for ngettext in libc... no
checking for bindtextdomain in -lintl... no
checking if -liconv is needed to use gettext... 
checking for ngettext in -lintl... no
configure: error:
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
------------------

So, there must still be something I'm doing wrong. The install of
gettext-0.17 was OK, and was built with the same settings as glib.
I can just type gettext at the command prompt however, and it is found.I
have the latest XCode version. I did do an upgrade from Leopard to Snow
Leopard and not a fresh install. Maybe that has something to do with it.

In any case, thanks for your help.

BTW, does your app work OK on Snow Leopard, with the latest patch from
Laurent?

Regards,
Franky





From: Kenny Clement [mailto:psyki...@gmail.com] 
Sent: donderdag 1 oktober 2009 9:56
To: users@lists.monobjc.net
Subject: Re: [us...@lists.monobjc.net] Re: [us...@lists.monobjc.net] Feeback
Wanted on Snow Leopard

Franky,

I've struggled with the same issues.
In order to build Mono on Snow Leopard, you need the CFLAGS and CXXFlags set
to -m32 for Mono and all the components required for it (gettext,
pkg-config, libiconv, glib):
example:

CFLAGS="-m32" CXXFLAGS="-m32" ./configure --prefix=/mono
make
make install

(note that the prefix should be changed to where-ever you want to install
it.)
Add the prefix path to your envvar PATH if it is not yet in there.
(otherwise it will complain about not finding gettext, ...)

In case you get 'deprecated' errors in ucontext, add the following line at
the top in /usr/include/ucontext.h:
#define _XOPEN_SOURCE 500

(I'm sure there is a better way, but this works for me.)

nant is a separate install (build) if you compile Mono:

http://www.mono-project.com/NAnt_Installation

Hope this helps!

- Kenny



Reply via email to