[Mono-list] Compiling on Mono on OS X
Matthieu Cormier
mcormier@cs.dal.ca
Fri, 5 Sep 2003 10:23:54 -0300 (ADT)
After some time off I am trying to compile mono on OS X again.
I have 0.22 installed on my machine and am trying to compile the latest
sources from CVS.
I uninstalled glib2 and reinstalled with darwinPorts (similar to fink).
This eliminated the following glib error when running Mono 0.22
--------------------------------------
GLib: Cannot convert message: Conversion from character set 'UTF-8' to
'en_US' is not supported
---------------------------------------
I then modified autogen.sh to point to glibtool instead of libtool
and added the ACLOCAL_FLAGS in autgen.sh. Thank you Paolo for the
pointers.
currently doing a make crashes on mini. I think I'm really close now. I
believe I read somewhere that mini is the JIT compilere and not supported
on Macs. Should I be passing a parameter to make?
A more detailed install log follows below.
M@
September 4th Trying to install again
-------------------------------------
sudo make uninstall [glib 2.0]
installed darwinPorts
sudo port install glib2
----This is a slight hack but I don't feel like recompiling my working
mono 0.22 version ----
sudo ln -s /opt/local/lib/libgmodule-2.0.0.dylib
/usr/local/lib/libgmodule-2.0.0.dylib
sudo ln -s /opt/local/lib/libglib-2.0.0.dylib
/usr/local/lib/libglib-2.0.0.dylib
---------- end of hack --------------------------------
try mcs hello.cs and see if it compiles
mcs compiles and the old GLib error message no longer appears
OLD GLib messge
GLib: Cannot convert message: Conversion from character
set 'UTF-8' to
'en_US' is not supported
add "alias='/usr/bin/glibtool' " to autogen.sh
./autogen.sh --prefix=/usr/local
Got the following error
--------------------------------------
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
./configure: line 8054: syntax error near unexpected token
`PKG_CHECK_MODULES(BASE_DEPENDENCIES,'
./configure: line 8054: `PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >=
$GLIB_REQUIRED_VERSION)'
--------------------------------------------------------------------------
Added
ACLOCAL_FLAGS="-I /opt/local/share/aclocal"
right before call to aclocal in autogen.sh
./autogen.sh --prefix=/usr/local
make clean
make
still getting errors during compile of mini
------------EXAMPLE ------------
../../mono/utils/.libs/libmonoutils.al(strtod.lo) definition of
___bsd_dtoa in section (__TEXT,__text)
../../mono/utils/.libs/libmonoutils.al(strtod.lo) definition of
___bsd_dtoa in section (__TEXT,__text)
ld: multiple definitions of symbol _bsd_strtod
../../mono/utils/.libs/libmonoutils.al(strtod.lo) definition of
_bsd_strtod in section (__TEXT,__text)
../../mono/utils/.libs/libmonoutils.al(strtod.lo) definition of
_bsd_strtod in section (__TEXT,__text)
---------------------------------------------
but no longer getting pkg module dependency error