lilypond-user
[Top][All Lists]
Advanced

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

Re: midi2ly


From: Hans Aberg
Subject: Re: midi2ly
Date: Thu, 30 Oct 2014 20:49:24 +0100

> On 30 Oct 2014, at 01:07, ole <address@hidden> wrote:
> 
> Am 29.10.2014 um 23:10 schrieb Hans Aberg <address@hidden>:
> 
>> On 29 Oct 2014, at 21:53, ole <address@hidden> wrote:

>>> Sorry for the noise! 
>>> Just discovered that a .ly file has been made despite of the error warning..
>> 
>> Strictly speaking, it is a warning as it passes the compile, not an error 
>> which would abort. So it is a relevant issue, though it seems to work.
>> 
> So- as I understand it right- I can install python 2.4 into /opt/local/bin 
> via macports
> 
> and then change the line to
> 
> exec /usr/bin/arch -i386 /opt/local/bin/python2.4 
> /Applications/LilyPond.app/Contents/Resources/bin/midi2ly "$@"
> 
> Would that work?

One can recompile the file python_midi.c that is in the LilyPond GIT repository:
http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=blob;f=python/midi.c;h=890798c66a4f022139013c81e641b743756aef15;hb=HEAD


For i386:
clang -dynamiclib -I/usr/include/python2.7/ python_midi.c -arch i386 
-lpython2.7 -o midi.so

For x86_64:
clang -dynamiclib -I/usr/include/python2.7/ python_midi.c -lpython2.7 -o midi.so


The script then seems to work if one writes:

For i386:
exec /usr/bin/arch -i386 /usr/bin/python2.7 
/Applications/LilyPond.app/Contents/Resources/bin/midi2ly "address@hidden

or 

exec /usr/bin/arch -i386 /usr/bin/python 
/Applications/LilyPond.app/Contents/Resources/bin/midi2ly "address@hidden


For x86_64:
exec /usr/bin/python2.7 
/Applications/LilyPond.app/Contents/Resources/bin/midi2ly "address@hidden

or

exec /usr/bin/python /Applications/LilyPond.app/Contents/Resources/bin/midi2ly 
"$@"


If the part ‘/usr/bin/python’ is excluded, it fails on my system, because it 
then tries MacPorts '/opt/local/bin/python’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]