[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling on Mac OS X - succes!
From: |
Arjan Bos |
Subject: |
Re: Compiling on Mac OS X - succes! |
Date: |
Mon, 29 Dec 2008 22:24:30 +0100 |
On 28 dec 2008, at 22:03, Kim Shrier wrote:
The problem you are seeing:
Assertion failed: (pt->read_pos == pt->read_end), function
scm_fill_input, file ports.c, line 978.
has to do with a bug in the scheme code that was fixed yesterday
afternoon.
If you update your source from the git repository, it should work now.
Also, a better way to handle the problem with configure finding the
wrong
FlexLexer.h file is to add the line:
FLEXLEXER_FILE = /opt/local/include/FlexLexer.h
to local.make. This way when you run the configure script, you will
not
need to edit config.make anymore as the value in local.make will
override
it.
One other problem you will run into is that the Century Schoolbook
fonts
will not be found and you need to give configure some help. When I
run
configure, I use the following parameter:
./configure --with-ncsb-dir=/opt/local/share/ghostscript/fonts
I have successfully built lilypond on 10.5 intel. To summarize the
steps:
1. Get the latest sources from the git repository.
2. Edit local.make to set the FLEXLEXER_FILE variable.
3. Make sure that /opt/local/bin is in $PATH before /usr/bin
4. make distclean
5. ./configure --with-ncsb-dir=/opt/local/share/ghostscript/fonts
6. make all
7. sudo make install
Kim
Kim,
I tried all that, but unfortunately, I got the following reply from
`make all':
flex -Cfe -p -p -oout/lexer.cc lexer.ll
lexer.ll:595: multiple <<EOF>> rules for start condition longcomment
lexer.ll:621: warning, rule cannot be matched
lexer.ll:624: warning, rule cannot be matched
lexer.ll:693: warning, -s option given but default rule can be matched
rm -f ./out/lexer.dep; DEPENDENCIES_OUTPUT="./out/lexer.dep ./out/
lexer.o" g++ -c -Woverloaded-virtual -I/System/Library/Frameworks/
Python.framework/Versions/2.5/include/python2.5 -I/System/Library/
Frameworks/Python.framework/Versions/2.5/include/python2.5 -fno-strict-
aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -
dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/
include/ffi -DENABLE_DTRACE -DHAVE_CONFIG_H -DNDEBUG -I./include -I./
out -I../flower/include -I../flower/./out -I../flower/include -O2 -
finline-functions -g -pipe -I/opt/local/include -I/opt/local/include -
D_THREAD_SAFE -I/opt/local/include/freetype2 -I/opt/local/include -
I/opt/local/include/pango-1.0 -I/opt/local/include/freetype2 -I/opt/
local/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/
include -Wno-pmf-conversions -W -Wall -Wconversion -o out/lexer.o
out/lexer.cc
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for C/ObjC but not for C++
./out/FlexLexer.h:130: error: expected unqualified-id before numeric
constant
make[1]: *** [out/lexer.o] Error 1
So, I removed line 130 in /opt/local/include/FlexLexer.h:
// virtual int yywrap();
Then I did a
make clean && make all
And everything works!
So Kim,
Thanks a lot for making the Lilypond Mac OS X 10.5 place a lot brighter.
Arjan
Oh, and by the way:
zfRp:/usr/local/src/lilypond/lilypond ajb$ which flex
/opt/local/bin/flex