<p dir="ltr">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,<br>
Must i installed python3-dev?</p>
<div class="gmail_quote">On Apr 3, 2015 7:00 PM,  <<a href="mailto:dia-list-request@gnome.org">dia-list-request@gnome.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send dia-list mailing list submissions to<br>
        <a href="mailto:dia-list@gnome.org">dia-list@gnome.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://mail.gnome.org/mailman/listinfo/dia-list" target="_blank">https://mail.gnome.org/mailman/listinfo/dia-list</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:dia-list-request@gnome.org">dia-list-request@gnome.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:dia-list-owner@gnome.org">dia-list-owner@gnome.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of dia-list digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: dia-list Digest, Vol 132, Issue 1 (Yosua Alvin Adi Soetrisno)<br>
   2. Re: dia-list Digest, Vol 132, Issue 1 (Octavio Alvarez)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 3 Apr 2015 09:48:43 +0700<br>
From: Yosua Alvin Adi Soetrisno <<a href="mailto:yosuaalvin.mti13@mail.ugm.ac.id">yosuaalvin.mti13@mail.ugm.ac.id</a>><br>
To: <a href="mailto:dia-list@gnome.org">dia-list@gnome.org</a>, <a href="mailto:alvarezp@alvarezp.ods.org">alvarezp@alvarezp.ods.org</a><br>
Subject: Re: dia-list Digest, Vol 132, Issue 1<br>
Message-ID:<br>
        <CAFZkH6TQSq-eaD7akCdZz_1dG-903-LBN-U7zfcLJV=<a href="mailto:j9SvRjg@mail.gmail.com">j9SvRjg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I add some line to disp_callback.c like this<br>
static void<br>
add_custom_menu_item (GtkMenu *menu)<br>
{<br>
  GtkWidget *menu_item = gtk_menu_item_new_with_label(_("Custom Link"));<br>
  g_signal_connect(GTK_OBJECT(menu_item), "activate",<br>
G_CALLBACK(call_python_callback), NULL);<br>
  gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);<br>
  gtk_widget_show(menu_item);<br>
}<br>
and i add some line to commands.c like this<br>
#include <Python.h><br>
...<br>
void<br>
call_python_callback (GtkAction *action)<br>
{<br>
    Py_SetProgramName("Testing"); /* optional but recommended */<br>
    Py_Initialize();<br>
<br>
    FILE *fp = fopen("tree.py", "r");<br>
    if (fp == NULL)<br>
        return 2;<br>
<br>
    PyRun_SimpleFile(fp, "tree.py");<br>
    Py_Finalize();<br>
<br>
    fclose(fp);<br>
    return 0;<br>
}<br>
When i make the compilation<br>
commands.c:17:20: fatal error: Python.h: No such file or directory<br>
How to solve that thanks<br>
<br>
On Thu, Apr 2, 2015 at 7:00 PM, <<a href="mailto:dia-list-request@gnome.org">dia-list-request@gnome.org</a>> wrote:<br>
<br>
> Send dia-list mailing list submissions to<br>
>         <a href="mailto:dia-list@gnome.org">dia-list@gnome.org</a><br>
><br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
>         <a href="https://mail.gnome.org/mailman/listinfo/dia-list" target="_blank">https://mail.gnome.org/mailman/listinfo/dia-list</a><br>
> or, via email, send a message with subject or body 'help' to<br>
>         <a href="mailto:dia-list-request@gnome.org">dia-list-request@gnome.org</a><br>
><br>
> You can reach the person managing the list at<br>
>         <a href="mailto:dia-list-owner@gnome.org">dia-list-owner@gnome.org</a><br>
><br>
> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of dia-list digest..."<br>
><br>
><br>
> Today's Topics:<br>
><br>
>    1. DIA extend properties (Yosua Alvin Adi Soetrisno)<br>
>    2. Re: DIA extend properties (Michael Ross)<br>
>    3. Re: DIA extend properties (Octavio Alvarez)<br>
><br>
><br>
> ----------------------------------------------------------------------<br>
><br>
> Message: 1<br>
> Date: Thu, 2 Apr 2015 00:21:24 +0700<br>
> From: Yosua Alvin Adi Soetrisno <<a href="mailto:yosuaalvin.mti13@mail.ugm.ac.id">yosuaalvin.mti13@mail.ugm.ac.id</a>><br>
> To: <a href="mailto:dia-list@gnome.org">dia-list@gnome.org</a><br>
> Subject: DIA extend properties<br>
> Message-ID:<br>
>         <<br>
> <a href="mailto:CAFZkH6QiCST4-GtvdAE45omgL4emsLCFVRdLtHSOTJ5ChkCpSA@mail.gmail.com">CAFZkH6QiCST4-GtvdAE45omgL4emsLCFVRdLtHSOTJ5ChkCpSA@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> Let me introduce myself I'm Yosua from Gadjah Mada University, I'm still on<br>
> progress working my master thesis. I'd like to develop OpenERP module based<br>
> on DIA OpenERP Interface. My problem is I can't extend default object<br>
> properties with custom data type like properties list. I want to ask how to<br>
> compile DIA with make, but there is some customization in dispcallback.c<br>
> with include Python.h, i want to extend some right click properties with<br>
> custom Python GTK Window, so i linked it with C script<br>
> Thanks before, I've referenced by Lars Causen to ask in mailing list<br>
> Regards Yosua Alvin<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="https://mail.gnome.org/archives/dia-list/attachments/20150402/462e7627/attachment.html" target="_blank">https://mail.gnome.org/archives/dia-list/attachments/20150402/462e7627/attachment.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 2<br>
> Date: Wed, 1 Apr 2015 15:11:45 -0400<br>
> From: Michael Ross <<a href="mailto:michael.e.ross@gmail.com">michael.e.ross@gmail.com</a>><br>
> To: discussions about usage and development of dia<br>
>         <<a href="mailto:dia-list@gnome.org">dia-list@gnome.org</a>><br>
> Subject: Re: DIA extend properties<br>
> Message-ID:<br>
>         <CANNQeoLcA=<br>
> <a href="mailto:7QELc3KdMQ6ufEODckFPykrtUcQwNQtMEXGSG39A@mail.gmail.com">7QELc3KdMQ6ufEODckFPykrtUcQwNQtMEXGSG39A@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> Your message is received, but I do not know the answer.  Someone will write<br>
> back who does know.<br>
><br>
> On Wed, Apr 1, 2015 at 1:21 PM, Yosua Alvin Adi Soetrisno <<br>
> <a href="mailto:yosuaalvin.mti13@mail.ugm.ac.id">yosuaalvin.mti13@mail.ugm.ac.id</a>> wrote:<br>
><br>
> > Let me introduce myself I'm Yosua from Gadjah Mada University, I'm still<br>
> > on progress working my master thesis. I'd like to develop OpenERP module<br>
> > based on DIA OpenERP Interface. My problem is I can't extend default<br>
> object<br>
> > properties with custom data type like properties list. I want to ask how<br>
> to<br>
> > compile DIA with make, but there is some customization in dispcallback.c<br>
> > with include Python.h, i want to extend some right click properties with<br>
> > custom Python GTK Window, so i linked it with C script<br>
> > Thanks before, I've referenced by Lars Causen to ask in mailing list<br>
> > Regards Yosua Alvin<br>
> ><br>
> > _______________________________________________<br>
> > dia-list mailing list<br>
> > <a href="mailto:dia-list@gnome.org">dia-list@gnome.org</a><br>
> > <a href="https://mail.gnome.org/mailman/listinfo/dia-list" target="_blank">https://mail.gnome.org/mailman/listinfo/dia-list</a><br>
> > FAQ at <a href="http://live.gnome.org/Dia/Faq" target="_blank">http://live.gnome.org/Dia/Faq</a><br>
> > Main page at <a href="http://live.gnome.org/Dia" target="_blank">http://live.gnome.org/Dia</a><br>
> ><br>
> ><br>
> ><br>
><br>
><br>
> --<br>
> To invent, you need a good imagination and a pile of junk.<br>
> Thomas A. Edison<br>
> <<a href="http://www.brainyquote.com/quotes/quotes/t/thomasaed125362.html" target="_blank">http://www.brainyquote.com/quotes/quotes/t/thomasaed125362.html</a>><br>
><br>
> A public-opinion poll is no substitute for thought.<br>
> *Warren Buffet*<br>
><br>
> Michael E. Ross<br>
> <a href="tel:%28919%29%20585-6737" value="+19195856737">(919) 585-6737</a> Land<br>
> <a href="tel:%28919%29%20576-0824" value="+19195760824">(919) 576-0824</a> <<a href="https://www.google.com/voice/b/0?pli=1#phones" target="_blank">https://www.google.com/voice/b/0?pli=1#phones</a>> Google<br>
> Phone<br>
> <a href="tel:%28919%29%20631-1451" value="+19196311451">(919) 631-1451</a> Cell<br>
><br>
> <a href="mailto:michael.e.ross@gmail.com">michael.e.ross@gmail.com</a><br>
> <<a href="mailto:michael.e.ross@gmail.com">michael.e.ross@gmail.com</a>><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="https://mail.gnome.org/archives/dia-list/attachments/20150401/d30455d8/attachment.html" target="_blank">https://mail.gnome.org/archives/dia-list/attachments/20150401/d30455d8/attachment.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> Message: 3<br>
> Date: Wed, 01 Apr 2015 23:19:49 -0700<br>
> From: Octavio Alvarez <<a href="mailto:alvarezp@alvarezp.ods.org">alvarezp@alvarezp.ods.org</a>><br>
> To: discussions about usage and development of dia<br>
>         <<a href="mailto:dia-list@gnome.org">dia-list@gnome.org</a>><br>
> Subject: Re: DIA extend properties<br>
> Message-ID: <<a href="mailto:551CDF85.8060408@alvarezp.ods.org">551CDF85.8060408@alvarezp.ods.org</a>><br>
> Content-Type: text/plain; charset=windows-1252<br>
><br>
> On 01/04/15 10:21, Yosua Alvin Adi Soetrisno wrote:<br>
> > I want to ask how to compile DIA with make<br>
><br>
> Hi.<br>
><br>
> What happens when you try it?<br>
><br>
><br>
><br>
> ------------------------------<br>
><br>
> Subject: Digest Footer<br>
><br>
> _______________________________________________<br>
> dia-list mailing list<br>
> <a href="mailto:dia-list@gnome.org">dia-list@gnome.org</a><br>
> <a href="https://mail.gnome.org/mailman/listinfo/dia-list" target="_blank">https://mail.gnome.org/mailman/listinfo/dia-list</a><br>
><br>
><br>
> ------------------------------<br>
><br>
> End of dia-list Digest, Vol 132, Issue 1<br>
> ****************************************<br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://mail.gnome.org/archives/dia-list/attachments/20150403/8f9946f6/attachment.html" target="_blank">https://mail.gnome.org/archives/dia-list/attachments/20150403/8f9946f6/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 02 Apr 2015 20:21:36 -0700<br>
From: Octavio Alvarez <<a href="mailto:alvarezp@alvarezp.ods.org">alvarezp@alvarezp.ods.org</a>><br>
To: <a href="mailto:dia-list@gnome.org">dia-list@gnome.org</a><br>
Subject: Re: dia-list Digest, Vol 132, Issue 1<br>
Message-ID: <<a href="mailto:551E0740.1040908@alvarezp.ods.org">551E0740.1040908@alvarezp.ods.org</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
On 02/04/15 19:48, Yosua Alvin Adi Soetrisno wrote:<br>
> When i make the compilation<br>
> commands.c:17:20: fatal error: Python.h: No such file or directory<br>
> How to solve that thanks<br>
<br>
If you are on a Debian-based system try installing python3-dev. In other<br>
systems there should be a similar package related to Python development<br>
headers.<br>
<br>
Best regards.<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
dia-list mailing list<br>
<a href="mailto:dia-list@gnome.org">dia-list@gnome.org</a><br>
<a href="https://mail.gnome.org/mailman/listinfo/dia-list" target="_blank">https://mail.gnome.org/mailman/listinfo/dia-list</a><br>
<br>
<br>
------------------------------<br>
<br>
End of dia-list Digest, Vol 132, Issue 2<br>
****************************************<br>
</blockquote></div>