> On 30 Oct 2014, at 01:07, ole <[email protected]> wrote:
> 
> Am 29.10.2014 um 23:10 schrieb Hans Aberg <[email protected]>:
> 
>> On 29 Oct 2014, at 21:53, ole <[email protected]> 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 "$@“

or 

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


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

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’.



_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to