Difference between revisions of "Inkscape-dev"
(→Install) |
(→Install) |
||
Line 82: | Line 82: | ||
Extract extensions.tar.gz with ''7z'' or ''WinRar''. | Extract extensions.tar.gz with ''7z'' or ''WinRar''. | ||
Then copy the content of the extracted ''extensions'' directory into: | Then copy the content of the extracted ''extensions'' directory into: | ||
− | C:\Program Files\Inkscape\share\extensions | + | 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) | (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) | ||
Revision as of 20:37, 6 December 2008
Contents
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
- Graphically:
- download the .deb file http://download.tuxfamily.org/xmoto/svg2lvl/dev/inksmoto-0.5.0~svn-1.deb
- double click on it from the file explorer to install it (with GDebi)
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
- Python 2.5: http://python.org/ftp/python/2.5.2/python-2.5.2.msi
- PIL 1.1.6: http://effbot.org/downloads/PIL-1.1.6.win32-py2.5.exe
- Inkscape 0.46: http://downloads.sourceforge.net/inkscape/Inkscape-0.46.win32.exe
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:
- Python 2.5: http://pythonmac.org/packages/py25-fat/dmg/python-2.5-macosx.dmg
- PIL 1.1.6: http://pythonmac.org/packages/py25-fat/dmg/PIL-1.1.6-py2.5-macosx10.4-2007-05-18.dmg
- Inkscape 0.46:
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