Re: [Vala] vala on mac



Hi,

2010/6/22, celil <celil kj gmail com>:
I just tried to unsuccessfully build the development version of Vala from
the git repository on a Snow Leopard 10.6.4 machine.

 Doing the usual steps

    git clone git://git.gnome.org/vala
    cd vala
    ./autogen.sh

 results in an error

    checking for valac... /usr/local/bin/valac
    ./configure: line 11335: syntax error near unexpected token `GLIB,'
    ./configure: line 11335: `PKG_CHECK_MODULES(GLIB, glib-2.0 >=
$GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED)'

 Is anybody else developing on a Mac? Any ideas on how to fix this?
I don't have a mac but your error suggests that pkg-config is not
properly installed (if at all). Make sure pkg-config is installed and
look for a file named pkg.m4 (here it is /usr/share/aclocal/pkg.m4 but
I'm using linux). If it's there and you still get the error then
aclocal isn't finding it and you should add its path to ACLOCAL_FLAGS
preceded by -I

 Also as an aside, I compiled an existing vala project of mine under the Mac
using vala 0.9.2. The program worked fine under Linux, but under the Mac I
am getting segmentation faults and attempts to free unassigned pointers. Is
anybody testing vala under a Mac? How stable is it? Would it be suitable for
production development?

It should be stable as it should generate portable C code, but again,
I haven't tested it.

HTH,
Abderrahim



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]