[gl2ps] Python binding for gl2ps.

Marco Bonifazi marcobonifazi at gmail.com
Mon Aug 21 21:59:58 CEST 2006


You can find here my notes about it.
http://www.bonifazi.eu/appunti/2006/03/creare-gl2ps-in-python-con-swig-in.html#links

I translate for you, it is for windows.


   - Download gl2ps from www.geuz.org/*gl2ps*/<http://www.geuz.org/gl2ps/>
   - Download from www.swig.org
   - Create the interface gl2ps.i, you can download
this<http://www.marcobonifazi.it/appunti/gl2ps/gl2ps.i>
   - Digit Swig command: swig -python gl2ps.i
   - It will create a file gl2ps_wrap.c and a file gl2ps.py, enbody
   gl2ps_wrap.c in sources downloaded of gl2ps, create a project (ad example
   withn Dev C++). This is a Dev project file
dev:gl2ps_sw.dev<http://www.marcobonifazi.it/appunti/gl2ps/gl2ps_sw.dev>.
   The file gl2ps.py is to be used in your Python project
   - Compile Dev project gl2ps with gl2ps_wrap.c, take the dll and put it
   in %PYTHON_DIR%\Dlls
   - Use gl2ps.py in Python

I think you can use interface file also for linux.

In short words you must to create the library and the Python file which is
not sufficient if alone.

This is a little old version (not last gl2ps, but I remember that only one
line of interface file had to changed using new type of gl2ps that I took
from gl2ps.h), I haven't now the newest, I can take it for you next days.



On 8/21/06, Clovis Goldemberg <clovis at pea.usp.br> wrote:
>
> Does anyone have a Python 2.4 binding for the new GL2PS version (1.3.1) ?
> It seems that an "gl2ps.pyd" existed in the past for Python2.2. At least
> this is mentioned
> in the 'http://pyopengl.sourceforge.net/pydoc/OpenGL.gl2ps.html' link.
> Thanks.
>
>
>
> _______________________________________________
> gl2ps mailing list
> gl2ps at geuz.org
> http://www.geuz.org/mailman/listinfo/gl2ps
>



-- 
Marco Bonifazi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geuz.org/pipermail/gl2ps/attachments/20060821/515da4fd/attachment.htm


More information about the gl2ps mailing list