It looks like I may be able to package Inkscape in a dmg. The procedure is refreshed version of https://blueprints.launchpad.net/inkscape/+spec/inkscape-quartz It has been compiled on Moutain Lion (64 bits) from trunk. You should be able to give is a spin from: http://dl.dropbox.com/u/49834266/Inkscape.dmg Let me know if it works for you and/or if it is worth pushing this further.
Regards,
-Gellule
On 22/08/2012 03:41, Gellule Xg wrote:
It looks like I may be able to package Inkscape in a dmg. The procedure is refreshed version of https://blueprints.launchpad.net/inkscape/+spec/inkscape-quartz It has been compiled on Moutain Lion (64 bits) from trunk. You should be able to give is a spin from: http://dl.dropbox.com/u/49834266/Inkscape.dmg Let me know if it works for you and/or if it is worth pushing this further.
The app bundle built on Mountain Lion fails to launch on OS X 10.7.4 Lion (I don't have access to a system with Mountain Lion). The crash report has no backtrace or otherwise useful information. AFAICT the main binary itself fails to run - probably it is not compatible with older versions of OS X.
If you are willing to share the sources for the "refreshed version" of the blueprint [1], I could test local builds (with trunk and 0.48.x) based on the refreshed packaging scripts on OS 10.7.4 Lion.
~suv
[1] there seem to be some minor changes e.g. with regard setting the python env via 'Contents/Resources/environment.sh', though the required python module lxml (for Python 2.7) is not included in the app bundle - extensions are likely still not working unless Apple decided to include the lxml module with the system Python 2.7 on Mountain Lion (like they did with numpy on Snow Leopard).
On 22/08/2012 06:02, ~suv wrote:
On 22/08/2012 03:41, Gellule Xg wrote:
It looks like I may be able to package Inkscape in a dmg. The procedure is refreshed version of https://blueprints.launchpad.net/inkscape/+spec/inkscape-quartz It has been compiled on Moutain Lion (64 bits) from trunk. You should be able to give is a spin from: http://dl.dropbox.com/u/49834266/Inkscape.dmg Let me know if it works for you and/or if it is worth pushing this further.
[1] there seem to be some minor changes e.g. with regard setting the python env via 'Contents/Resources/environment.sh', though the required python module lxml (for Python 2.7) is not included in the app bundle - extensions are likely still not working unless Apple decided to include the lxml module with the system Python 2.7 on Mountain Lion (like they did with numpy on Snow Leopard).
WRT python lxml module:
For the current packaging scripts in trunk, I maintain a personal (junk) branch on launchpad.net with some bug fixes (and additional refactoring):
https://code.launchpad.net/~suv-lp/+junk/inkscape-osxapp-stacked (Note: this is WIP, none of the changes has been reviewed)
The branch includes a script to compile lxml with the system python, ready to be included in the app bundle (no README notes available yet). I don't know if those modules would work with packages creates with John Ralls' "gtk-mac-bundler" though.
In 'packaging/macosx/osx-app.sh' of this branch, there is also a link to the old python packages (supporting Python 2.4 - 2.6 (32bit)) temporarily made available via Dropbox: http://bazaar.launchpad.net/~suv-lp/+junk/inkscape-osxapp-stacked/view/head:/packaging/macosx/osx-app.sh#L138
~suv
On 8/24/12 19:48 , ~suv wrote
WRT python lxml module:
For the current packaging scripts in trunk, I maintain a personal (junk) branch on launchpad.net with some bug fixes (and additional refactoring):
https://code.launchpad.net/~suv-lp/+junk/inkscape-osxapp-stacked (Note: this is WIP, none of the changes has been reviewed)
The branch includes a script to compile lxml with the system python, ready to be included in the app bundle (no README notes available yet). I don't know if those modules would work with packages creates with John Ralls' "gtk-mac-bundler" though.
In 'packaging/macosx/osx-app.sh' of this branch, there is also a link to the old python packages (supporting Python 2.4 - 2.6 (32bit)) temporarily made available via Dropbox: http://bazaar.launchpad.net/~suv-lp/+junk/inkscape-osxapp-stacked/view/head:/packaging/macosx/osx-app.sh#L138
~suv
Thanks ~suv,
I haven't gotten to the python issue. From what I understand, gtk-mac-bundler should leave the system python unaffected. I should give this a try first, before going the full python inclusion way. By the way, do you know which of the dependencies are needed beside python itself? lxml? numpy?
I have started revamping my old OSX blueprint. You can start having a look. The gtk-mac-integration is not quite there yet.
-Gellule
On 25/08/2012 09:24, Gellule Xg wrote:
On 8/24/12 19:48 , ~suv wrote
WRT python lxml module:
For the current packaging scripts in trunk, I maintain a personal (junk) branch on launchpad.net with some bug fixes (and additional refactoring):
https://code.launchpad.net/~suv-lp/+junk/inkscape-osxapp-stacked (Note: this is WIP, none of the changes has been reviewed)
The branch includes a script to compile lxml with the system python, ready to be included in the app bundle (no README notes available yet). I don't know if those modules would work with packages creates with John Ralls' "gtk-mac-bundler" though.
In 'packaging/macosx/osx-app.sh' of this branch, there is also a link to the old python packages (supporting Python 2.4 - 2.6 (32bit)) temporarily made available via Dropbox: http://bazaar.launchpad.net/~suv-lp/+junk/inkscape-osxapp-stacked/view/head:/packaging/macosx/osx-app.sh#L138
I haven't gotten to the python issue. From what I understand, gtk-mac-bundler should leave the system python unaffected. I should give this a try first, before going the full python inclusion way. By the way, do you know which of the dependencies are needed beside python itself? lxml? numpy?
lxml is required for all python-based extensions which import inkex.py. Some additionally import numpy:
- Save as "Desktop Cutting Plotter (AutoCAD DXF R14) (*.dxf)" (dxf_outlines.py) - Extensions > Gcodetools (gcodetools.py) - Extensions > Modify Path > Perspective (perspective.py) - Extensions > Modify Path > Pixelsnap (pixelsnap.py) - Extensions > Render > 3D Polyhedron (polyhedron_3d.py)
When using the system python for extensions, the numpy module is only required to be included in the app bundle for Leopard and older versions of Mac OS X (AFAIK Apple includes numpy with the system python since Snow Leopard).
I'm not aware of other imported modules which are not part of a standard Python installation.
I have started revamping my old OSX blueprint. You can start having a look. The gtk-mac-integration is not quite there yet.
Thx - already had checked out your branch, will test during the weekend (if time permits).
~suv
Hi ~suv,
I added lxml support to Inkscape.bundle (to be used by gtk-mac-bundler). You must have it compiled in MacPorts beforehand. Pushed to the branch: https://code.launchpad.net/~inkscape.dev/inkscape/dev-osx
Let me know if you find anything wrong.
Will be looking into the gtk-mac-integration next, if I have time.
-Gellule
Please consider adding numpy as well. The DIY community would appreciate it.
- Susan
On Sat, Aug 25, 2012 at 4:11 PM, Gellule Xg <gellule.xg@...400...> wrote:
Hi ~suv,
I added lxml support to Inkscape.bundle (to be used by gtk-mac-bundler). You must have it compiled in MacPorts beforehand. Pushed to the branch: https://code.launchpad.net/~inkscape.dev/inkscape/dev-osx
Let me know if you find anything wrong.
Will be looking into the gtk-mac-integration next, if I have time.
-Gellule
Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Regardless of OS... :D
- Susan
On Mon, Aug 27, 2012 at 9:23 PM, Gellule Xg <gellule.xg@...400...> wrote:
On 8/27/12 16:00 , Susan Spencer wrote:
Please consider adding numpy as well. The DIY community would appreciate it.
- Susan
Are you asking for numpy for Leopard (10.5) and older? Or do we want the newest version anyway, whatever the OS version?
-Gellule
Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Hey guys!
I haven't followed the development of Inkscape since a while. I still use it every now and then and now came across Sozi, which seems a great tool, worth checking out. Well unfortunately Sozi needs lxml support and I'm on Mountain Lion :-(
Can anybody point me to a how-to for making this work? I'm quite lost with trying googling for it.
Thanks!
David
| | David Christian Berg | Mobile (DE): +49 176 60033488 | david@...407... |
On 25.08.2012, at 23:11, Gellule Xg <gellule.xg@...400...> wrote:
Hi ~suv,
I added lxml support to Inkscape.bundle (to be used by gtk-mac-bundler). You must have it compiled in MacPorts beforehand. Pushed to the branch: https://code.launchpad.net/~inkscape.dev/inkscape/dev-osx
Let me know if you find anything wrong.
Will be looking into the gtk-mac-integration next, if I have time.
-Gellule
Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Hey!
Seems that with http://www.inkscapeforum.com/viewtopic.php?f=5&t=12478 I found the right place. Now I'm faced with another error:
Traceback (most recent call last): File "sozi.py", line 30, in <module> from sozi.document import * File "/Applications/Inkscape.app/Contents/Resources/extensions/sozi/document.py", line 81 self.layers = { l.attrib[group_attr] : SoziLayer(self, l) for l in self.xml.xpath("sozi:layer", namespaces=inkex.NSS) if group_attr in l.attrib } ^ SyntaxError: invalid syntax
Maybe it really is a Sozi issue? Any clues? Anybody working with Sozi on Mountain Lion?
Thanks!
David
| | David Christian Berg | Mobile (DE): +49 176 60033488 | david@...407... |
On 29.10.2012, at 21:14, David Christian Berg <david@...407...> wrote:
Hey guys!
I haven't followed the development of Inkscape since a while. I still use it every now and then and now came across Sozi, which seems a great tool, worth checking out. Well unfortunately Sozi needs lxml support and I'm on Mountain Lion :-(
Can anybody point me to a how-to for making this work? I'm quite lost with trying googling for it.
Thanks!
David
| | David Christian Berg | Mobile (DE): +49 176 60033488 | david@...407... |
On 25.08.2012, at 23:11, Gellule Xg <gellule.xg@...400...> wrote:
Hi ~suv,
I added lxml support to Inkscape.bundle (to be used by gtk-mac-bundler). You must have it compiled in MacPorts beforehand. Pushed to the branch: https://code.launchpad.net/~inkscape.dev/inkscape/dev-osx
Let me know if you find anything wrong.
Will be looking into the gtk-mac-integration next, if I have time.
-Gellule
Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On 29/10/2012 21:40, David Christian Berg wrote:
Seems that with http://www.inkscapeforum.com/viewtopic.php?f=5&t=12478 I found the right place. Now I'm faced with another error:
Traceback (most recent call last): File "sozi.py", line 30, in <module> from sozi.document import * File "/Applications/Inkscape.app/Contents/Resources/extensions/sozi/document.py", line 81 self.layers = { l.attrib[group_attr] : SoziLayer(self, l) for l in self.xml.xpath("sozi:layer", namespaces=inkex.NSS) if group_attr in l.attrib } ^ SyntaxError: invalid syntax
Maybe it really is a Sozi issue? Any clues? Anybody working with Sozi on Mountain Lion?
It seems that the latest release of Sozi now requires Python 2.7, which makes it not compatible with the current available Inkscape package for OS X (which supports Python <= 2.6 for extensions): « Requires Python 2.7.» http://sozi.baierouge.fr/wiki/en:changelog#version_1209_current
Maybe try with an older release… and follow the instructions (aka ugly but working hack) posted on the Sozi web site: http://sozi.baierouge.fr/wiki/en:install#installation_on_macos_x -> http://www.lifl.fr/~riquetd/installing-sozi-on-mac-os-x.html
Or - alternatively, since you will require to install MacPorts anyway to get pygtk - install Inkscape itself with Macports (it will use Python 2.7 by default).
Hey ~suv!
Thanks for your answer! I'll go through the instructions and then see, whether I prefer installing Inkscape via MacPorts or using that complicated way…
Take care!
David
PS: Sometimes I just wish I still was on Linux :-)
| | David Christian Berg | Mobile (DE): +49 176 60033488 | david@...407... |
| | This email is signed using GPG. | For important messages please validate the fingerprint. |
On 29.10.2012, at 22:28, ~suv <suv-sf@...58...> wrote:
On 29/10/2012 21:40, David Christian Berg wrote:
Seems that with http://www.inkscapeforum.com/viewtopic.php?f=5&t=12478 I found the right place. Now I'm faced with another error:
Traceback (most recent call last): File "sozi.py", line 30, in <module> from sozi.document import * File "/Applications/Inkscape.app/Contents/Resources/extensions/sozi/document.py", line 81 self.layers = { l.attrib[group_attr] : SoziLayer(self, l) for l in self.xml.xpath("sozi:layer", namespaces=inkex.NSS) if group_attr in l.attrib } ^ SyntaxError: invalid syntax
Maybe it really is a Sozi issue? Any clues? Anybody working with Sozi on Mountain Lion?
It seems that the latest release of Sozi now requires Python 2.7, which makes it not compatible with the current available Inkscape package for OS X (which supports Python <= 2.6 for extensions): « Requires Python 2.7.» http://sozi.baierouge.fr/wiki/en:changelog#version_1209_current
Maybe try with an older release… and follow the instructions (aka ugly but working hack) posted on the Sozi web site: http://sozi.baierouge.fr/wiki/en:install#installation_on_macos_x -> http://www.lifl.fr/~riquetd/installing-sozi-on-mac-os-x.html
Or - alternatively, since you will require to install MacPorts anyway to get pygtk - install Inkscape itself with Macports (it will use Python 2.7 by default).
The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On 29/10/2012 22:28, ~suv wrote:
Maybe try with an older release… and follow the instructions (aka ugly but working hack) posted on the Sozi web site: http://sozi.baierouge.fr/wiki/en:install#installation_on_macos_x -> http://www.lifl.fr/~riquetd/installing-sozi-on-mac-os-x.html
Oops - please ignore my prior comments (.
Apparently you didn't read the instructions on the Sozi web site about installing on Mac OS X at all: if you would have, your bundled app would be now using python 2.7 from MacPorts anyway.
So my recommendation would be:
1) undo the changes your did earlier to get Inkscape's own extensions working on Mountain Lion 2) read the detailed instructions at http://www.lifl.fr/~riquetd/installing-sozi-on-mac-os-x.html 3) use Sozi and be happy.
Hey ~suv!
Sorry for the confusion. Actually I had seen this. But was not inclined to install MacPorts + Xcode, because of my small HDD, just to get lxml. And obviously I didn't need to, but then ran into other problems. Ill try this again and report back.
Thanks!
David
| | David Christian Berg | Mobile (DE): +49 176 60033488 | david@...407... |
| | This email is signed using GPG. | For important messages please validate the fingerprint. |
On 29.10.2012, at 22:44, ~suv <suv-sf@...58...> wrote:
On 29/10/2012 22:28, ~suv wrote:
Maybe try with an older release… and follow the instructions (aka ugly but working hack) posted on the Sozi web site: http://sozi.baierouge.fr/wiki/en:install#installation_on_macos_x -> http://www.lifl.fr/~riquetd/installing-sozi-on-mac-os-x.html
Oops - please ignore my prior comments (.
Apparently you didn't read the instructions on the Sozi web site about installing on Mac OS X at all: if you would have, your bundled app would be now using python 2.7 from MacPorts anyway.
So my recommendation would be:
- undo the changes your did earlier to get Inkscape's own extensions
working on Mountain Lion 2) read the detailed instructions at http://www.lifl.fr/~riquetd/installing-sozi-on-mac-os-x.html 3) use Sozi and be happy.
The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On 29/10/2012 22:49, David Christian Berg wrote:
Sorry for the confusion. Actually I had seen this. But was not inclined to install MacPorts + Xcode, because of my small HDD, just to get lxml. And obviously I didn't need to, but then ran into other problems. Ill try this again and report back.
If you want to use Sozi, you need MacPorts first and foremost to install PyGtk, because the extension is based on a custom dialog instead of using the built-in extension dialog from Inkscape (which has fewer options than a custom external dialog).
PyGtk is not bundled with Inkscape, and in order to install it, MacPorts will first have to install GTK+ itself (which will pull in lots of dependencies).
Hey ~suv!
I surely have at least 5 GB of extra files for this, it seems. Ran into an issue with both having a link called "python" at /opt/local/bin/python but after changing this, it works! As you can tell the whole process took 2 hours, plain installation…
But hey, now I have a new toy :)
Thanks!
David
| | David Christian Berg | Mobile (DE): +49 176 60033488 | david@...407... |
On 29.10.2012, at 23:00, ~suv <suv-sf@...58...> wrote:
On 29/10/2012 22:49, David Christian Berg wrote:
Sorry for the confusion. Actually I had seen this. But was not inclined to install MacPorts + Xcode, because of my small HDD, just to get lxml. And obviously I didn't need to, but then ran into other problems. Ill try this again and report back.
If you want to use Sozi, you need MacPorts first and foremost to install PyGtk, because the extension is based on a custom dialog instead of using the built-in extension dialog from Inkscape (which has fewer options than a custom external dialog).
PyGtk is not bundled with Inkscape, and in order to install it, MacPorts will first have to install GTK+ itself (which will pull in lots of dependencies).
The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On 25/08/2012 09:24, Gellule Xg wrote:
I have started revamping my old OSX blueprint. You can start having a look. The gtk-mac-integration is not quite there yet.
You have seen the patch Roy Liu had been working on (for the stable branch) to link to the 'gtk-mac-integration' module instead of including a copy of the mac-menu-integration files in Inkscape's sources as before?
Basic features had been functional IIRC, with the last version he provided (unfortunately, Roy seems to have moved on to Sketch, and won't continue working on that patch).
See comment #13 and below in https://bugs.launchpad.net/inkscape/+bug/721448
~suv
On 25/08/2012 09:24, Gellule Xg wrote:
I have started revamping my old OSX blueprint. You can start having a look. The gtk-mac-integration is not quite there yet.
1) Backwards-compatible osx application bundles via MacPorts: Darktable developers are also working on new packaging scripts for macosx, and have the details in the build instructions on how to configure MacPorts to create binaries which are backwards-compatible with older versions of Mac OS X (via 'macosx_deployment_target' in macports.conf): https://github.com/darktable-org/darktable/blob/master/packaging/macosx/BUILD.txt
2) Using gtk-mac-bundler instead of the old osx-app.sh script: Do you configure gtk2 in MacPorts with '--enable-quartz-relocation' (as is done in the GTK-OSX modulesets, and also the new packaging scripts for GIMP 2.8.2 (jhbuild-based) and those for darktable (MacPorts-based)), or rely on the default Portfile variants from MacPorts? Note: enabling this for gtk2 in MacPorts may cause difficulties when using the same MacPorts tree for regular builds (i.e. not bundled) of gtk+-based applications as well.
3) Support for extended input devices in GTK+/Quartz: You might also be interested in testing the upstream patch adding support for pressure-sensitive devices to the Quartz backend of gtk2 (further review and commit is still pending, though chances are good that the GIMP team will push for getting it into the 2.24 branch (they plan to provide an official Quartz-based osx app package of GIMP 2.8.2): https://bugzilla.gnome.org/show_bug.cgi?id=663990 (patch attached to comment #12)
~suv
P.S.: I will add comments about any results of locally built packages to the existing report https://bugs.launchpad.net/inkscape/+bug/738973 unless you prefer the mailing list instead.
participants (4)
-
David Christian Berg
-
Gellule Xg
-
Susan Spencer
-
~suv