Wed 22 Sep 2010 07:37:16 PM UTC, original submission:
Hello
I'm new to Denemo, and I'm compiling on Snow Leopard on a Mac... I tried installing it from git Wed, Sept. 22, 2010, and compiling it from source. I got most of the way through- and now it seems I'm missing a file due to a symlink mishap.
$ git clone git://git.savannah.gnu.org/denemo.git
$ cd denemo
$ sh autogen.sh
This gave me a bunch of dependency errors, so I installed many things using ports...
$ sudo port install qtplay
$ sudo port install guile
$ sudo port install gtksourceview2
$ sudo port install jack
$ sudo port install fluidsynth
$ sudo port install portaudio
$ sudo port install aubio
Next I run
$ sh autogen.sh
$ ./configure --prefix=/opt/local --enable-jack
$ make
This gives me the following error:
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -I../intl -I../include -I../libsmf -I../pixmaps -DLOCALEDIR=\"/opt/local/share/locale\" -DSYSCONFDIR=\"/etc/denemo/\" -DPKGDATADIR=\"/opt/local/share/denemo/\" -DDATAROOTDIR=\"/opt/local/share/\" -DPKGNAME=\"denemo\" -I/opt/local/include -g -O2 -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/opt/local/include -I/opt/local/include -D_THREAD_SAFE -I/opt/local/include/libxml2 -D_REENTRANT -I/opt/local/include/gtksourceview-2.0 -I/opt/local/include/libxml2 -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -D_HAVE_JACK_ -I/opt/local/include -D_HAVE_FLUIDSYNTH_ -I/opt/local/include -D_HAVE_PORTAUDIO_ -I/opt/local/include/aubio -I/opt/local/include -I/opt/local/include -I/opt/local/include -MT lyparser.o -MD -MP -MF .deps/lyparser.Tpo -c -o lyparser.o lyparser.c
./lyparser.y:172:20: error: malloc.h: No such file or directory
make[2]: *** [lyparser.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
So the fix for that is to comment out the line 172 in lyparser.y
or replace line 172 with
with
#if !defined(_APPLE_)
#include <malloc.h>
#endif
The reason for this is that in Snow Leopard, malloc.h is included inside stdlib.h
Save the file, then try again to make. Now it seems to work ok and we can move on to
$ sudo make install
and now I get an error-
test -z "/etc/denemo" || ./install-sh -c -d "/etc/denemo"
/usr/bin/install -c -m 644 denemo.conf '/etc/denemo'
make install-data-hook
cp -r ./actions //opt/local/share/denemo/
cp: ./actions/menus/MainMenu/Educational/MIDI/CheckPitches: No such file or directory
make[3]: *** [install-data-hook] Error 1
make[2]: *** [install-data-am] Error 2
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1
After some investigation- it seems that this is a symlink to
./actions/menus/MainMenu/ModeMenu/MIDI/CheckPitches
which doesn't exist- hence the issue.
Please put this file (not a broken symlink) in the correct place in the Git repository.
Thanks,
|