Ajouter le support de l'export DXF à Inkscape sous OSX
Inkscape, le logiciel open source de dessin vectoriel est disponible pour OSX. Il possède de nombreuses caractéristiques intéressantes, notamment celle - à l'instar de Corel Draw qui lui est payant - de permettre la vectorisation de bitmaps. Toutefois, dans mon utilisation, cette fonction n'est utile que si combinée à l'export DXF, qui permettra ensuite de retraiter ces fichiers vectorisés pour les importer dans un logiciel de CAO / CFAO afin de poursuivre le traitement (et notamment la génération de GCODE pour permettre le pilotage d'une CNC avec EMC2). L'installation de 2 bibliothèques Python permet d'éviter les vilains warnings lors de l'export DXF et les fichiers vides en sortie... Voyons comment faire.

Installer Inkscape :
Télécharger et installer Inkscape à partir de http://inkscape.org/download/?lang=fr
Installer LXML :
osx-jpc:~$ sudo easy_install lxml Password: xxxx Searching for lxml Reading http://pypi.python.org/simple/lxml/ Reading http://codespeak.net/lxml Best match: lxml 2.3beta1 Downloading http://pypi.python.org/packages/source/l/lxml/lxml-2.3beta1.tar.gz Processing lxml-2.3beta1.tar.gz Running lxml-2.3beta1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-BycucT/lxml-2.3beta1/egg-dist-tmp-hggWpj Building lxml version 2.3.beta1. NOTE: Trying to build without Cython, pre-generated 'src/lxml/lxml.etree.c' needs to be available. Using build configuration of libxslt 1.1.24 Adding lxml 2.3beta1 to easy-install.pth file Installed /Library/Python/2.6/site-packages/lxml-2.3beta1-py2.6-macosx-10.6-universal.egg Processing dependencies for lxml Finished processing dependencies for lxml
Installation de numpy:
osx-jpc:~$ sudo easy_install numpy Adding numpy 1.5.1 to easy-install.pth file Installing f2py script to /usr/local/bin ... ... Installed /Library/Python/2.6/site-packages/numpy-1.5.1-py2.6-macosx-10.6-universal.egg Processing dependencies for numpy Finished processing dependencies for numpy
Vous pourrez ensuite profiter de l'export DXF, sans warning associé...
Commentaires
Bonjour,
Je navigue souvent sur votre site et y trouve plein de bons tuyaux.
Mais j'ai un souci :
Je suis avec Mac SX Lion et je n'arrive pas installer ces bibliothèques :
jbpomme$ sudo easy_install lxml
Password:
Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.3.2
Downloading http://lxml.de/files/lxml-2.3.2.tgz
Processing lxml-2.3.2.tgz
Running lxml-2.3.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-nAk9bj/lxml-2.3.2/egg-dist-tmp-sGLLqo
Building lxml version 2.3.2.
Building without Cython.
Using build configuration of libxslt 1.1.24
unable to execute llvm-gcc-4.2: No such file or directory
error: Setup script exited with error: command 'llvm-gcc-4.2' failed with exit status 1
MacBook-Pro-de-Jean-Bernard-MONNET:~ jbpomme$
Parmi tout ce que vous faites, avez-vous une solution pour me dépanner.
Meilleurs messages.
JB Monnet
Bonjour,
je n'ai pas essayé sur Lion, seulement sur Snow Leopard. Mais as tu installé Xcode? Il est possible que cela ne marche pas, même avec Xcode. Il y a en effet eu de nombreux changements sous Lion et tout ne sera pas directement compatible....
Bon courage