sipums uses perl. It doesn't need any python package, no python.h
required...
-----Original Message-----
From: ser die [mailto:serdiehard@yahoo.com]
Sent: Wednesday, September 01, 2004 11:42 PM
To: Richard
Cc: serusers(a)lists.iptel.org
Subject: RE: [Sems] ivr with sems and ser
no richard,
i have checked twice that s your Makefile only
i think it could not able to detect where is the
Python.h
but i tried to give the correct settins with
the python default settings according to my system
still it gives then same old error
with regards
serdiehard
--- Richard <richard(a)o-matrix.org> wrote:
do you save the file to
./answer_machine/plug-in/ivr/Makefile
Look like you are still using the old makefile.
-----Original Message-----
From: ser die [mailto:serdiehard@yahoo.com]
Sent: Wednesday, September 01, 2004 11:15 PM
To: Richard
Subject: RE: [Sems] ivr with sems and ser
richard
it still gives the error
as
[root@server ivr]# make
g++ -c -o Ivr.o Ivr.cpp
In file included from Ivr.cpp:22:
IvrPython.h:32:20: Python.h: No such file or
directory
IvrPython.h:33:21: compile.h: No such file or
directory
--- Richard <richard(a)o-matrix.org> wrote:
I attached the makefile I used.
Let me know if there is any problem.
-----Original Message-----
From: sems-bounces(a)lists.iptel.org
[mailto:sems-bounces@lists.iptel.org] On Behalf Of
ser die
Sent: Tuesday, August 31, 2004 8:09 PM
To: serusers(a)lists.iptel.org; sems(a)lists.iptel.org
Subject: [Sems] ivr with sems and ser
in order to use the ivr with perl suppory i tried
to
comment the python modules from the makefile
so which instrtucion do i need to comment
****************************************************
plug_in_name = ivr
#
# Python specific
# (no need to change this if you want to use
perl)
#
# PYTHON_VERSION might also be 2.2
# do a ls /usr/include/python2.3/Python.h to see
if
it's there
PYTHON_VERSION = 2.2
# adjust to point to python include path
# can also be /usr/include/python$(PYTHON_VERSION)
# look for Python.h in the specified path
# Python prefix is what you configured python with
# if you built from source (e.g. ./configure
--with-prefix=/usr/local)
# on debian it's often /usr, on SuSE /usr/local
PYTHON_PREFIX = /usr/local
PYTHON_DIR =
$(PYTHON_PREFIX)/include/python$(PYTHON_VERSION)
PYTHON_LIBDIR =
$(PYTHON_PREFIX)/lib/python$(PYTHON_VERSION)
# put used Python modules from lib-dynload here,
e.g.
time, mysql, _cvs.so etc.
PYTHON_DYNLOAD_MODULES =
$(PYTHON_LIBDIR)/lib-dynload/time.so
PYTHON_module_cflags = -I$(PYTHON_DIR)
PYTHON_module_ldflags = -L$(PYTHON_LIBDIR)/config
-lpython$(PYTHON_VERSION)
$(PYTHON_DYNLOAD_MODULES)
#
# perl specific
#
# uncomment the next lines if you want to script
the
ivr with perl scripts
# put used Perl modules here, e.g. time, mysql
etc.
PERL_DYNLOAD_MODULES =
/usr/lib/perl/5.8/auto/IO/IO.so
/usr/lib/perl/5.8/auto/Fcntl/Fcntl.so \
/usr/lib/perl/5.8/auto/Socket/Socket.so
/usr/local/lib/perl/5.8.3/auto/DBI/DBI.so \
/usr/lib/perl/5.8/auto/Sys/Hostname/Hostname.so
/usr/lib/perl/5.8/auto/Sys/Syslog/Syslog.so \
/usr/lib/perl/5.8/auto/Sys/Syslog/Syslog.so
/usr/lib/perl5/auto/Date/Calc/Calc.so \
/usr/lib/perl/5.8/auto/MIME/Base64/Base64.so
/usr/lib/perl/5.8/auto/POSIX/POSIX.so \
/usr/lib/perl/5.8/auto/Time/HiRes/HiRes.so
/usr/lib/perl/5.8/auto/Cwd/Cwd.so \
/usr/lib/perl5/auto/Bit/Vector/Vector.so
/usr/lib/perl5/auto/DBD/mysql/mysql.so
PERL_module_ldflags = `perl -MExtUtils::Embed -e
ldopts` -DPERL_IMPLICIT_CONTEXT
$(PERL_DYNLOAD_MODULES)
PERL_module_cflags = -DIVR_PERL `perl
-MExtUtils::Embed -e ccopts `
-DPERL_IMPLICIT_CONTEXT
#
# flite text to speech
#
# uncomment the next lines if you want to have
flite
text-to-speech (ivr.say("Hello there");
)
FLITE_DIR = /usr/src/flite-1.2-release
ALT_FLITE_DIR = /usr/include/flite
IVR_TTS_module_ldflags = -L$(FLITE_DIR)/lib -lm
-lflite_cmu_us_kal -lflite_usenglish \
-lflite_cmulex -lflite
IVR_TTS_module_cflags = -I$(FLITE_DIR)/include
-I$(ALT_FLITE_DIR) -DIVR_WITH_TTS
LOCAL_INCLUDES = -I$(FLITE_DIR)/lang/usenglish
LD_FLAGS = -ldl -lpthread -lutil -lm -Xlinker
--export-dynamic -Xlinker --no-strip-discarded
module_ldflags = -ldl -lpthread -lutil -lm
-Xlinker
--export-dynamic \
$(PYTHON_module_ldflags) \
$(IVR_TTS_module_ldflags) \
$(PERL_module_ldflags)
# for perl support:
# -DIVR_PERL `perl -MExtUtils::Embed -e ccopts `
# for flite text-to-speech support -DIVR_WITH_TTS
module_cflags = \
$(PYTHON_module_cflags) \
$(IVR_TTS_module_cflags) \
$(PERL_module_cflags)
include ../Makefile.app_module
****************************************************
so when i tried to use the coomand make i get
the
eroor
as
IVR_mthr_usleep'
Ivr.cpp:352: invalid use of undefined type `struct
IvrMediaEvent'
Ivr.h:63: forward declaration of `struct
IvrMediaEvent'
Ivr.cpp:352: `DBG' cannot be used as a function
Ivr.cpp:353: invalid use of undefined type `struct
IvrMediaEvent'
Ivr.h:63: forward declaration of `struct
IvrMediaEvent'
Ivr.cpp:353: `usleep' cannot be used as a function
Ivr.cpp:354: `DBG' cannot be used as a function
make: *** [Ivr.o] Error 1
with regards
serdiehard
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter
now.
http://promotions.yahoo.com/goldrush
_______________________________________________
Sems mailing list
sems(a)lists.iptel.org
http://lists.iptel.org/cgi-bin/mailman/listinfo/sems
ATTACHMENT part 2 application/octet-stream
name=Makefile
_______________________________
Do you Yahoo!?
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.