Difference between revisions of "Extension requirements"

From Inkscape Wiki
Jump to navigation Jump to search
(restored text regarding enabling effects under preferences. With a not that it might only be necessary with certain older versions)
(Reformated the page to have headers and moved mac os x info to here)
Line 1: Line 1:
<b>Setting Up Effects in Inkscape</b><br>
== Setting Up Effects in Inkscape ==
<i>For effects to work you need to be using inkscape .42 or later.</i><br>
<i>For effects to work you need to be using inkscape .42 or later.</i><br>
<i>For info about what effects can do, screenshots, and how to make your own go to [http://www.ekips.org/comp/inkscape/ Aarons Site]</i><br>
<i>For info about what effects can do, screenshots, and how to make your own go to [http://www.ekips.org/comp/inkscape/ Aarons Site]</i><br>
Line 5: Line 5:




<b>Unhide the Effects menu</b> (Only necessary in some versions of Inkscape. Between .41 and .45)<Br>
=== Unhide the Effects menu ===
    - On the "Misc" tab of the "Inkscape Preferences" dialog check the box labeled "Enable script effects" (0.41+CVS onwards only)
(Only necessary in some versions of Inkscape. Between .41 and .45)
    - Close and reopen Inkscape


On the "Misc" tab of the "Inkscape Preferences" dialog check the box labeled "Enable script effects" (0.41+CVS onwards only)


<b>Python Effects</b><Br>
Close and reopen Inkscape
<i>on Debian GNU / Linux</i>
    - apt-get install python python-xml


<i>on Microsoft Windows</i>
    - [[GettingEffectsWorking/Windows]] Tutorial on Getting Effects to work on Windows


<i>on Mac os X</i>
== Python Effects ==
     - See [http://wiki.inkscape.org/wiki/index.php/CompilingMacOsX Mac OS X compiling page] (at the bottom)
=== on Debian GNU / Linux ===
     apt-get install python python-xml


<b>Perl Effects</b><br>
=== on Microsoft Windows ===
<i>on Debian GNU / Linux</i>
[[GettingEffectsWorking/Windows]] Tutorial on Getting Effects to work on Windows
    - apt-get install perl libxml-xql-perl


<i>on Gentoo GNU / Linux</i>
=== on Mac OS X ===
    - emerge -a XML-XQL


<i>on Microsoft Windows</i>
Mac OS X ships with python but without some packages that Inkscape uses: [http://pyxml.sourceforge.net/ pyXML] (which will be suppressed in version 0.46), [http://numpy.scipy.org/ numpy] and [http://codespeak.net/lxml/ lxml]
     - install [http://www.activestate.com/Products/Download/Download.plex?id=ActivePerl [[ActivePerl]]]
 
     - install XML::XQL::DOM (perhaps like this?)
==== Binary packages ====
You can install a binary version compiled by us, downloadable with the development builds of Inkscape:
:http://inkscape.modevia.com/macosx-snap/?M=D
You need to copy the folders for pyXML (_xmlplus), numpy (numpy) and lxml (*lxml*.egg or lxml) to /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages (there is a link in the dmg on which the folders can be dropped).
 
==== Compiling from source ====
If you prefer, you can install them from source, it is really easy.
 
'''pyXML'''
# download the source code from [http://sourceforge.net/project/showfiles.php?group_id=6473 sourceforge]
# unpack the <code>.tar.gz</code> file
# cd into the newly created directory
# set the variable <code>MACOSX_DEPLOYMENT_TARGET</code> to version of your operating system (10.3 for Panther, 10.4 for Tiger, 10.5 for Leopard. It probably won't work on previous systems). In bash syntax this means typing:<pre>export MACOSX_DEPLOYMENT_TARGET=10.?</pre>
# move the python files and build C extensions by just typing <pre>python setup.py build</pre>
# install (the install is system wide so you need administrator rights)<pre>sudo python setup.py install</pre>and type your password.
 
'''numpy and lxml'''
# download the source code from [http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103 sourceforge numpy repository] or [http://codespeak.net/lxml/index.html#download lxml download section]
# unpack the <code>.tar.gz</code> file
# cd into the newly created directory
# build C extensions and install (the install is system wide so you need administrator rights)<pre>sudo python setup.py install</pre>and type your password.
 
== Perl Effects ==
=== on Debian GNU / Linux ===
     apt-get install perl libxml-xql-perl
 
=== on Gentoo GNU / Linux ===
    emerge -a XML-XQL
 
=== on Microsoft Windows ===
    install [http://www.activestate.com/Products/Download/Download.plex?id=ActivePerl [[ActivePerl]]]
     install XML::XQL::DOM (perhaps like this?)
         1: install prereqs with ppm:
         1: install prereqs with ppm:
      install xml-dom
      install xml-dom
Line 42: Line 68:
         6: copy XML-XQL-*\XQLParser\Parser.pm to C:\Perl\site\lib\XML\XQL
         6: copy XML-XQL-*\XQLParser\Parser.pm to C:\Perl\site\lib\XML\XQL


<b>Plugin Effects</b><br>
== Plugin Effects ==
    - I have absolutely no idea. Please record your success here. :)
I have absolutely no idea. Please record your success here. :)
 
== What if it doesn't work? ==
Run Inkscape from the console
 
Use the error messges printed to the console to diagnose the problem (very often missing dependencies)


<b>What if it doesn't work?</b><br>
On Windows you will have to redirect output to a text file like this: "inkscape > output.txt"
    - Run Inkscape from the console
    - Use the error messges printed to the console to diagnose the problem (very often missing dependencies)
    - On Windows you will have to redirect output to a text file like this: "inkscape > output.txt"




[[Category:Extensions]]
[[Category:Extensions]]

Revision as of 11:41, 1 September 2007

Setting Up Effects in Inkscape

For effects to work you need to be using inkscape .42 or later.
For info about what effects can do, screenshots, and how to make your own go to Aarons Site
See also GettingExtensionsWorking.


Unhide the Effects menu

(Only necessary in some versions of Inkscape. Between .41 and .45)

On the "Misc" tab of the "Inkscape Preferences" dialog check the box labeled "Enable script effects" (0.41+CVS onwards only)

Close and reopen Inkscape


Python Effects

on Debian GNU / Linux

   apt-get install python python-xml

on Microsoft Windows

GettingEffectsWorking/Windows Tutorial on Getting Effects to work on Windows

on Mac OS X

Mac OS X ships with python but without some packages that Inkscape uses: pyXML (which will be suppressed in version 0.46), numpy and lxml

Binary packages

You can install a binary version compiled by us, downloadable with the development builds of Inkscape:

http://inkscape.modevia.com/macosx-snap/?M=D

You need to copy the folders for pyXML (_xmlplus), numpy (numpy) and lxml (*lxml*.egg or lxml) to /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages (there is a link in the dmg on which the folders can be dropped).

Compiling from source

If you prefer, you can install them from source, it is really easy.

pyXML

  1. download the source code from sourceforge
  2. unpack the .tar.gz file
  3. cd into the newly created directory
  4. set the variable MACOSX_DEPLOYMENT_TARGET to version of your operating system (10.3 for Panther, 10.4 for Tiger, 10.5 for Leopard. It probably won't work on previous systems). In bash syntax this means typing:
    export MACOSX_DEPLOYMENT_TARGET=10.?
  5. move the python files and build C extensions by just typing
    python setup.py build
  6. install (the install is system wide so you need administrator rights)
    sudo python setup.py install
    and type your password.

numpy and lxml

  1. download the source code from sourceforge numpy repository or lxml download section
  2. unpack the .tar.gz file
  3. cd into the newly created directory
  4. build C extensions and install (the install is system wide so you need administrator rights)
    sudo python setup.py install
    and type your password.

Perl Effects

on Debian GNU / Linux

   apt-get install perl libxml-xql-perl

on Gentoo GNU / Linux

   emerge -a XML-XQL

on Microsoft Windows

   install ActivePerl
   install XML::XQL::DOM (perhaps like this?)
       1: install prereqs with ppm:
	    install xml-dom
	    install parse-yapp
	    install datemanip
       2: download xml-xql from:
	    http://www.cpan.org/authors/id/T/TJ/TJMATHER/XML-XQL-0.68.tar.gz
       3: open command prompt and locate perl"s lib directory with:
	    perl -e "print qq(@INC)"    (mine was C:/Perl/site/lib)
       4: unpack xml-xql archive
       5: copy contents of XML-XQL-*\lib\XML into C:\Perl\site\lib\XML
       6: copy XML-XQL-*\XQLParser\Parser.pm to C:\Perl\site\lib\XML\XQL

Plugin Effects

I have absolutely no idea. Please record your success here. :)

What if it doesn't work?

Run Inkscape from the console

Use the error messges printed to the console to diagnose the problem (very often missing dependencies)

On Windows you will have to redirect output to a text file like this: "inkscape > output.txt"