Adding a Python dependency to app/*
- From: Yosua Alvin Adi Soetrisno <yosuaalvin mti13 mail ugm ac id>
- To: hans breuer org, dia-list gnome org
- Subject: Adding a Python dependency to app/*
- Date: Sat, 13 Jun 2015 12:09:18 +0700
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
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]