[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dia-list
Subject:    Adding a Python dependency to app/*
From:       Yosua Alvin Adi Soetrisno <yosuaalvin.mti13 () mail ! ugm ! ac ! id>
Date:       2015-06-13 5:09:18
Message-ID: CAFZkH6TuUA+O1pzf3Ks16fZAvJ4MWkHkyLtRCTv1sH__UOmyng () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I have add several python include like in dia/bindings/Makefile.am in
dia/app/Makefile.am
## Process this file with automake to produce Makefile.in

SUBDIRS = pixmaps

INCLUDES = \
#new python include
$(PYTHON_INCLUDES) \
...
# new Python for Makefile
if WITH_PYTHON
PYTHON_EXTRA_SOURCE = \
dia-python-extra.cpp \
dia-python-extra.h \
$(BUILT_SOURCES)
endif
GCCXMLINC = -I.. -I../lib -I/usr/include/gtk-2.0
-I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/libxml2
-I/usr/include/libart-2.0   -I/usr/include/python2.5 -I/usr/include/libxml2
I also add in app/makefile.msc
...
#new Python Flags
!IFNDEF PYTHON_VERSION
PYTHON_VERSION=23
!ENDIF
!IFNDEF PYTHON
PYTHON = ..\..\..\python$(PYTHON_VERSION)
!ENDIF
CFLAGS = -FImsvc_recommended_pragmas.h \
!IFDEF DEBUG
-D_DEBUG=1 \
!ENDIF
-DHAVE_CONFIG_H $(INCLUDES) \
-I$(PYTHON)\include $(GLIB_CFLAGS) $(GTK2_CFLAGS) $(INTL_CFLAGS) \
$(LIBXML2_CFLAGS)
But still have some error in
make[2]: Entering directory `/home/dia/dia/app'
  CC     commands.o
commands.c:40:20: fatal error: Python.h: No such file or directory
How is the solution?
I'm very appreciate your solution
Thanks,
Regards Yosua Alvin

[Attachment #5 (text/html)]

<div dir="ltr">I have add several python include like in dia/bindings/Makefile.am in  \
<span style="color:rgb(46,52,54);font-family:monospace;font-size:14px;line-height:22.3999996185303px">dia/app/Makefile.am<br></span><div \
style><font color="#2e3436" face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px">## Process this file with \
automake to produce Makefile.in</span></font></div><div style><font color="#2e3436" \
face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px"><br></span></font></div><div \
style><font color="#2e3436" face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px">SUBDIRS = \
pixmaps</span></font></div><div style><font color="#2e3436" face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px"><br></span></font></div><div \
style><font color="#2e3436" face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px">INCLUDES = \
\</span></font></div><div style><font color="#2e3436" face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px">#new python \
include</span></font></div><div style><font color="#2e3436" face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px"><span class="" \
style="white-space:pre">	</span>$(PYTHON_INCLUDES) \</span></font></div><div \
style><font color="#2e3436" face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px"><span class="" \
style="white-space:pre">	...</span></span></font></div><div style><font \
color="#2e3436" face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px"># new Python for \
Makefile</span></font></div><div style><font color="#2e3436" face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px">if \
WITH_PYTHON</span></font></div><div style><font color="#2e3436" \
face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px">PYTHON_EXTRA_SOURCE = \
\</span></font></div><div style><font color="#2e3436" face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px"><span class="" \
style="white-space:pre">	</span>dia-python-extra.cpp \</span></font></div><div \
style><font color="#2e3436" face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px"><span class="" \
style="white-space:pre">	</span>dia-python-extra.h \</span></font></div><div \
style><font color="#2e3436" face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px"><span class="" \
style="white-space:pre">	</span>$(BUILT_SOURCES)</span></font></div><div style><font \
color="#2e3436" face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px">endif</span></font></div><div \
style><font color="#2e3436" face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px">GCCXMLINC = -I.. -I../lib \
-I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 \
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 \
-I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libart-2.0    \
-I/usr/include/python2.5 -I/usr/include/libxml2</span></font></div><div style><font \
color="#2e3436" face="monospace"><span \
style="font-size:14px;line-height:22.3999996185303px">I also add in \
app/makefile.msc</span></font></div><div style><font color="#2e3436" \
face="monospace"><span style="font-size:14px;line-height:22.3999996185303px"><div \
style>...</div><div style>#new Python Flags</div><div style>!IFNDEF \
PYTHON_VERSION</div><div style>PYTHON_VERSION=23</div><div style>!ENDIF</div><div \
style>!IFNDEF PYTHON</div><div style>PYTHON = \
..\..\..\python$(PYTHON_VERSION)</div><div style>!ENDIF</div><div style>CFLAGS = \
-FImsvc_recommended_pragmas.h \</div><div style>!IFDEF DEBUG</div><div style><span \
class="" style="white-space:pre">	</span>-D_DEBUG=1 \</div><div \
style>!ENDIF</div><div style><span class="" \
style="white-space:pre">	</span>-DHAVE_CONFIG_H $(INCLUDES) \</div><div style><span \
class="" style="white-space:pre">	</span>-I$(PYTHON)\include $(GLIB_CFLAGS) \
$(GTK2_CFLAGS) $(INTL_CFLAGS) \</div><div style><span class="" \
style="white-space:pre">	</span>$(LIBXML2_CFLAGS)<br>But still have some error \
in<br><div>make[2]: Entering directory `/home/dia/dia/app&#39;</div><div>   CC       \
commands.o</div><div>commands.c:40:20: fatal error: Python.h: No such file or \
directory<br>How is the solution?<br>I&#39;m very appreciate your \
solution<br>Thanks,<br>Regards Yosua Alvin</div></div></span></font></div><div \
style="color:rgb(46,52,54);font-family:monospace;font-size:14px;line-height:22.3999996185303px"><br></div></div>




_______________________________________________
dia-list mailing list
dia-list@gnome.org
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic