Adding a Python dependency to app/* (was: Re: dia-list Digest, Vol 132, Issue 2)



First of all: please try to be specific in the subject line as proposed in the digest mail you got and cited:

> On Apr 3, 2015 7:00 PM, <dia-list-request gnome org
> <mailto:dia-list-request gnome org>> wrote:
>     When replying, please edit your Subject line so it is more specific
>     than "Re: Contents of dia-list digest..."

Am 03.04.2015 um 14:59 schrieb Yosua Alvin Adi Soetrisno:
I've installed python2-dev, but i haven't try python3-dev, i use ubuntu
12.04, outside dia folder i have been succeed to compile c file with gcc,
but when code inserted inside commands.c in folder dia/app, make have error
like commands.c:17:20: fatal error: Python.h: No such file or directory,
Must i installed python3-dev?

To me this does not look like a missing package, but just a missing include. dia/app/Makefile.am is not prepared to just
#include <Python.h>

With Dia's source code dependencies are organized: only the PyDia plug-in (plug-ins/python/*) should include Python.h so that Dia core can be built without Python.

If you still insist to put your modification into app/disp_callbacks.c - you have to adpat app/Makefile.am to provide the Python include path. You could use the file plug-ins/python/Makefile.am as example.

But please be aware that a direct dependency from app/* to Python will disqualify your modification for upstream inclusion.

HTH,
        Hans

-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it.                -- Dilbert


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]