Inkscape-dev

From X-Moto
Revision as of 20:36, 6 December 2008 by The only dude (talk | contribs) (Install them)
Jump to: navigation, search

Català - Español


Documentation for the developpement version of Inksmoto Level Editor


Disclaimer

This version of Inksmoto Level Editor is not stable and not fully tested, but you can test it anyway.

Svg made with the 0.2.0 version of Inksmoto Level Editor are not compatible with this developement version of Inksmoto Level Editor.

Required softwares

The next version of Inksmoto will require Inkscape 0.46. This version of Inkscape no longer uses python-xml, but lxml instead. Tk is still needed. And python too (don't know the minimum required version required, but Inkscape 0.46 is packaged with python 2.5).

  • inkscape (=0.46)
  • python (=2.5)
  • python-lxml
  • python-tk
  • python-imaging-tk

Installation on Linux

Installation of the prerequisites

For example on a debian/ubuntu:

sudo apt-get install inkscape python python-lxml python-tk python-imaging-tk

Using the .deb file

Under debian/ubuntu, you can use this .deb file to install Inksmoto with the command line or graphically:

  • Command line:
wget http://download.tuxfamily.org/xmoto/svg2lvl/dev/inksmoto-0.5.0~svn-1.deb
sudo dpkg -i inksmoto-0.5.0~svn-1.deb

Warning: If you have previously installed the svn version in your home dir, you should better delete it:

rm -rf ~/.inkscape/extensions

Using the svn

run:

sudo apt-get install subversion
mkdir ~/.inkscape
cd ~/.inkscape
svn co svn://svn.tuxfamily.org/svnroot/xmoto/svg2lvl/trunk/extensions

Installation on Windows

Download

Install them

Install them by double clicking on the .exe/.msi files.

Copy

Copy those files/directories from your Python 2.5 installation into your Inkscape 0.46 installation:

C:\Python25\Lib\lib-tk in C:\Program Files\Inkscape\python\Lib\
C:\Python25\DLLs\_tkinter.pyd in C:\Program Files\Inkscape\python\DLLs\
C:\Python25\DLLs\tk84.dll in C:\Program Files\Inkscape\python\DLLs\
C:\Python25\DLLs\tcl84.dll in C:\Program Files\Inkscape\python\DLLs\
C:\Python25\tcl in C:\Program Files\Inkscape\python\
C:\Python25\site-packages\PIL in C:\Program Files\Inkscape\python\Lib\site-packages\
C:\Python25\site-packages\PIL.pth in C:\Program Files\Inkscape\python\Lib\site-packages\

Download

Svn Inksmoto: http://svn.tuxfamily.org/viewvc.cgi/xmoto_svg2lvl/trunk/extensions.tar.gz?view=tar

Install

Extract extensions.tar.gz with 7z or WinRar. Then copy the content of the extracted extensions directory into:

 C:\Program Files\Inkscape\share\extensions

(It will ask you if you want to replace existed inkex.py and bezmisc.py, you can do it, as they are the same as the one from Inksmoto)

Remove old version of Inksmoto

If you have installed previous svn versions of Inksmoto, to avoid potentials conflicts, you should better delete this directory:

C:\Documents And Settings\<Your Name>\Application Data\Inkscape\extensions\

Installation on Mac os X

Download:

TODO

You can see the progress of the developpement in the bug tracker: http://todo.xmoto.tuxfamily.org/index.php?project=2&do=index

Code documentation

On this page there's informations on how the code is structured (in french) Inksmoto-code-documentation

Windows packaging

Python2.5:

\Lib\lib-tk
\DLLs\_tkinter.pyd
\DLLs\tk84.dll
\DLLs\tcl84.dll
Python25\tcl

PIL_1.1.6.win32.py2.5.exe:

site-packages\PIL
site-packages\PIL.pth