Unfortunately I don't have access to a Mac. But it would be very nice
if someone is able to create an installer for the Macintosh (by
creating/adapting a 'freeze.py'-like script) for Frescobaldi.
This means that an Application Bundle would be created, containing
PyQt4, Python, portmidi and python-poppler-qt4. The cx_Freeze python
module (also used by the freeze.py script that creates a Windows
installer) is able to handle that.
Here[1] is an example of a Python script that freezes an application
comparable to Frescobaldi (in that it also uses PyQt4), with support
for creating a Mac DMG file containing all the needed libraries.
[1] http://code.google.com/p/iep/source/browse/freezeScript.py
Is anyone here able to understand the application bundle part of this
and to create a freeze_macox.py script for Frescobaldi, based on the
exising freeze.py[2] and the other example?
[2] https://github.com/wbsoft/frescobaldi/blob/master/freeze.py
Otherwise I would need to setup a donation infracture just to get a Mac
for building the installer :-) (although it would also help furthering
development and testing of Frescobaldi in general on Mac OS X :-)
--
Wilbert Berendsen
(http://www.wilbertberendsen.nl)
Rodolfo
> _______________________________________________
> lilypond-user mailing list
> lilypo...@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
Stan
I would be happy to help when you get to the testing stage but haven't the skills to do more. My platforms are PPC (PowerBook) and x86 (iMac) running 10.5.8.
Stan
I'm also happy to help you in the testing phase, although I don't know Frescobaldi at all, so I might need quite specific instructions on what to test exactly. I'm on a MBP with 10.6.8.
Best,
Ádám
http://www.xhero.org/frescobaldi.zip
this was compiled on macos 10.7.3 intel with qt 4.8 from macports. The
archive should contain everything and on my machine works - more or
less, there are many issues, but I can load a lilypond doc and
navigate the pdf (with point and click too).
If someone wants to download the archive and give a try, I will be
grateful for every feedback (hoping it does not crash instantly on
other machines!).
The icon file is still missing (at least, it is there but on my
machine it does not work, next thing to do :)
For Wilbert:
if this thing works for others too I have a couple of files to add
(info.plist and qt.conf) and we should decide how to merge the mac
part in freeze.py :)
Ciao!
Rodolfo
Traceback (most recent call last):
File "/Users/xhero/devel/frescobaldi-2.0.4/frescobaldi_app/mainwindow.py",
line 372, in openDocument
files = QFileDialog.getOpenFileNames(self, caption, directory, filetypes)
TypeError: QFileDialog.getOpenFileNames(QWidget parent=None, QString
caption=QString(), QString directory=QString(), QString
filter=QString(), QString selectedFilter=None, QFileDialog.Options
options=0): argument 3 has unexpected type 'QPyNullVariant'
Is there a specific version of python to run? I'm currently using 2.7.2.
BTW drag&drop of a file in the main window opens it without issues.
Rodolfo
On OS 10.5.8, x86 (iMac), it gives the "not supported on this
architecture" message.
Stan
it works out-of-the-box on my system which is running MacOS X 10.6.8 - very, very neat - thank you! (nice logo, too)
Warm regards,
Stefan
> _______________________________________________
> lilypond-user mailing list
> lilypo...@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
--
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213 FAX +49-221-4726-298
Tel.: +49-221-478-5713 Mobile: 0160-93874279
Email: vol...@nf.mpg.de http://www.nf.mpg.de
I will try to recompile everything on a system with 10.5 and see if it
works on 10.6 and 10.7 too, but it will take me some time.
Rodolfo
On 25.03.2012, at 20:04, Rodolfo Zitellini wrote:
> [...]
> I will try to recompile everything on a system with 10.5 and see if it
> works on 10.6 and 10.7 too, but it will take me some time.
you are probably better of with two different versions of frescobaldi - 10.5 has been around for some time and you will loose some Qt features otherwise, I believe. -
When dropping a ly-file onto Frescobaldi, your Mac version works beautifully. It also works, if frescobaldi.app is not located in the /Applications directory.
However, when I change something in the source window and then do an "Engrave (preview)" I get this error:
Could not start lilypond.
Please check path and permissions.
Warm regards,
Stefan
Hi Rodolfo,
I just downloaded the link above- frescobaldi opens fine and load and display a file correct
(on a Macbook Pro running Mac OS 10.6.8.)
Can investigate it further the next days...(I am very new to frescobaldi...)
ole
Clicking on the frescobaldi executable in the application results in "-
bash: /Users/ssanders/Desktop/frescobaldi.app/Contents/MacOS/
frescobaldi: Bad CPU type in executable
logout"
My iMac (running OS X 10.5.8) is an Intel Core Duo. Is it possible
that there is a 32-/64- bit problem? I have read that 10.5 is capable
of running 64-bit applications but only if they are compiled for 10.5.
Stan
> if this thing works for others too I have a couple of files to add
> (info.plist and qt.conf) and we should decide how to merge the mac
> part in freeze.py :)
Many, many thanks for your effort! I just follow it, and indeed it
might be nice to merge it in freeze.py.
> Is there a specific version of python to run? I'm currently using
> 2.7.2. BTW drag&drop of a file in the main window opens it without
> issues.
2.7.2 should be very fine. Which PyQt4 and SIP version are used?
A few comments (although I've never seen Frescobaldi before, so I'm not sure whether the problems come from the software itself or the port):
- The first letter of the executable is not capitalized (it says 'frescobaldi' instead of 'Frescobaldi'), which is not very common with Mac software (unless they start with 'i'). Not a bug, though.
- Hitting the 'Engrave' button I get the following in the log window:
Starting lilypond [test01.ly]...
Could not start lilypond.
Please check path and permissions.
- In Preferences/LilyPond Preferences one can't set the LilyPond include path, as the file open dialog won't let the user open the contents of the LilyPond application bundle and the input field can't be edited by typing into the list of LilyPond include paths.
- If one sets the appropriate path in the frescobaldi.plist file (for me, this would be /Applications/LilyPond/LilyPond.app/bin), after running frescobaldi, it would revert my modification to /Applications/LilyPond.
- The Preference File 'frescobaldi.plist' should be called 'org.frescobaldi.plist' to meet Apple's naming conventions.
The weird thing is that the bin library of LilyPond is included in my user path (so I can run LilyPond in Terminal directly without needing to specify the folder where it is located), so I don't really understand why Frescobaldi wouldn't find the executables...
Hope this helps,
Ádám
Thanks to all for your reports!
* 10.5 support: For the moment I'm unsure on how to support this, as I
packaged python + qt compiled with macports using the default system
compiler, I have to study a bit on how to have compatibility.
@Philippe: can you please try running Frescobaldi directly on the
terminal: frescobaldi.app/Contents/MacOS/frescobaldi
It is possible that it has some conflicts since you already have the
libs for frescobaldi installed (it should not, but nevertheless...)
In the next few days I fill try to figure out the various quirks with
runnin lilypond (I admit I always use it directly from the cmdline :)
@Wilbert: I will try to pack a bit the mods/additions and send you something :)
Ciao!
Rodolfo
Here is the message I receive when running from the command line :
imac-de-philippe-massart:~ philippe$ /Users/philippe/Desktop/frescobaldi.app/Contents/MacOS/frescobaldi
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 27, in <module>
exec code in m.__dict__
File "frescobaldi", line 3, in <module>
File "/Users/philippe/Desktop/frescobaldi.app/Contents/MacOS/frescobaldi_app/main.py", line 41, in <module>
import po.setup # Setup language
File "/Users/philippe/Desktop/frescobaldi.app/Contents/MacOS/frescobaldi_app/po/setup.py", line 74, in <module>
setup()
File "/Users/philippe/Desktop/frescobaldi.app/Contents/MacOS/frescobaldi_app/po/setup.py", line 59, in setup
language = current()
File "/Users/philippe/Desktop/frescobaldi.app/Contents/MacOS/frescobaldi_app/po/setup.py", line 46, in current
if not language or language.isNull():
AttributeError: 'unicode' object has no attribute 'isNull'
I tried to run it from the Applications folder, but it didn't change anything.
Philippe
> File
> "/Users/philippe/Desktop/frescobaldi.app/Contents/MacOS/frescobaldi_app/po/setup.py",
> line 46, in current if not language or language.isNull():
> AttributeError: 'unicode' object has no attribute 'isNull'
Strange: I never wrote the 'or language.isNull()' part...
Which frescobaldi version is this?
Philippe
I think it is my fault :)
I fiddled a bit with the code since I got repeated QPyNullVariant
typeerrors, so I added the 'isNull() for testing - but I forgot to
remove it oops!
Rodolfo
Frescobaldi on OS X needs more testing, unfortunately I have no machine
to test with.
You should provide the full path to the LilyPond binary, located
probably somewhere inside LilyPond.App
If you want I can send you the script to generate the app bundle
If you want I can send you the script to generate the app bundle
Starting lilypond [TwinNote-piano-melody-lyrics.ly]...
I got the same error message. What worked for me was to change my lilypond version in Preferences > Lilypond Preferences from "lilypond" to "/Applications/LilyPond.app/Contents/Resources/bin/lilypond"