Bonjour tout le monde,
J'ai un petit soucis lors de l'installation de l'application "app-conference".
Voic en détails les commandes tapéés avec les résultats obtenus afin que de comprendre le problème.
Tout d'abord:
1) J'ai télécharché les sources sur le lien http://appconference.svn.sourceforge.net/
2) Ensuite j'ai téléchargé le patch "appconference-asterisk1.8.patch.tar.gz" pour la version 1.8 que tu trouve ici: http://sourceforge.net/tracker/?func...49&atid=915722
3)Après avoir décompresser les sources et le patch. Je me suis positioner dans le dossier des sources et j'ai tapé le code suivant:
Code:
patch < ../chemin/vers/fichier.patch
Et là , voila ce que j'obtiens dans un premier temps:
Code:
patching file app_conference.c
patching file app_conference.h
patching file cli.c
patching file Makefile
patching file conference.c
patching file frame.c
patching file member.c
can't find file to patch at input line 1151
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur appconference-svn//libspeex/speex_preprocess.h appconference-my//libspeex/speex_preprocess.h
|--- appconference-svn//libspeex/speex_preprocess.h 2008-05-05 11:14:12.000000000 +1000
|+++ appconference-my//libspeex/speex_preprocess.h 2010-09-19 18:25:28.349303485 +0200
--------------------------
File to patch:
Comme je ne sais pas ce qu 'il faut mettre je tepe sur "entrer" et là j'obtiens ceci:
Code:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
Ceci-dit, après cela, j'ai essayé de compiler app_conference avec make&&make install mais j'obtiens aussi une erreur que voici.
Code:
make: svnversion : commande introuvable
cc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -MD -MP -g -fPIC -DAST16 -I../asterisk/include -D_REENTRANT -D_GNU_SOURCE -DREVISION=\"\" -DCRYPTO -Ilibspeex -DSILDET=2 -c -o app_conference.o app_conference.c
make: svnversion : commande introuvable
make: svnversion : commande introuvable
make: svnversion : commande introuvable
En faite, lors de la compilation des executables app_conference.o et app_conference.c, il me dit qu'il ne trouve pas la commande svnversion.
Cependant, dans mon projet je n'utilise pas de svnversion car je ne m'y connais pas.
J'ai tout de même essayé de résoudre le problème en modifiant le Makefile de l'application app-conference. En effet, dans le Readme on nous demande de modifier le Makefiel mais je ne savais pas ce qu'il fallait mofifier.
Voila le fichier makefile ci-dessous:
Code PHP:
# $Id: Makefile 889 2007-08-09 14:42:48Z sbalea $
#
# Makefile, based on the Asterisk Makefile, Coypright (C) 1999, Mark Spencer
#
# Copyright (C) 2002,2003 Junghanns.NET GmbH
#
# Klaus-Peter Junghanns <kapejod@ns1.jnetdns.de>
#
# This program is free software and may be modified and
# distributed under the terms of the GNU Public License.
#
.EXPORT_ALL_VARIABLES:
#
# app_conference defines which can be passed on the command-line
#
INSTALL_PREFIX :=
INSTALL_MODULES_DIR := $(INSTALL_PREFIX)/usr/lib/asterisk/modules
ASTERISK_INCLUDE_DIR ?= ../asterisk/include
REVISION = $(shell svnversion -n .)
# turn app_conference debugging on or off ( 0 == OFF, 1 == ON )
APP_CONFERENCE_DEBUG ?= 0
# 0 = OFF 1 = astdsp 2 = speex
SILDET := 2
#
# app_conference objects to build
#
OBJS = app_conference.o conference.o member.o frame.o cli.o
TARGET = app_conference.so
#
# standard compile settings
#
PROC = $(shell uname -m)
INSTALL = install
INCLUDE = -I$(ASTERISK_INCLUDE_DIR)
DEBUG := -g
CFLAGS = -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -MD -MP $(DEBUG)
CPPFLAGS = $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE -DREVISION=\"$(REVISION)\"
#CFLAGS += -O2
#CFLAGS += -O3 -march=pentium3 -msse -mfpmath=sse,387 -ffast-math
# PERF: below is 10% faster than -O2 or -O3 alone.
#CFLAGS += -O3 -ffast-math -funroll-loops
# below is another 5% faster or so.
#CFLAGS += -O3 -ffast-math -funroll-all-loops -fsingle-precision-constant
#CFLAGS += -mcpu=7450 -faltivec -mabi=altivec -mdynamic-no-pic
# adding -msse -mfpmath=sse has little effect.
#CFLAGS += -O3 -msse -mfpmath=sse
#CFLAGS += $(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi)
CFLAGS += $(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi)
CFLAGS += -fPIC
CPPFLAGS += -DCRYPTO
#
# Uncomment this if you want G.729A support (need to have the actual codec installed
#
# CPPFLAGS += -DAC_USE_G729A
ifeq ($(APP_CONFERENCE_DEBUG), 1)
CPPFLAGS += -DAPP_CONFERENCE_DEBUG
endif
#
# additional flag values for silence detection
#
ifeq ($(SILDET), 2)
OBJS += libspeex/preprocess.o libspeex/misc.o libspeex/smallft.o
CPPFLAGS += -Ilibspeex -DSILDET=2
endif
ifeq ($(SILDET), 1)
CPPFLAGS += -DSILDET=1
endif
OSARCH=$(shell uname -s)
ifeq (${OSARCH},Darwin)
SOLINK=-dynamic -bundle -undefined suppress -force_flat_namespace
else
SOLINK=-shared -Xlinker -x
endif
DEPS += $(subst .o,.d,$(OBJS))
#
# targets
#
all: $(TARGET)
.PHONY: clean
clean:
$(RM) $(OBJS) $(DEPS)
.PHONY: distclean
distclean: clean
$(RM) $(TARGET)
$(TARGET): $(OBJS)
$(CC) -pg $(SOLINK) -o $@ $(OBJS)
vad_test: vad_test.o libspeex/preprocess.o libspeex/misc.o libspeex/smallft.o
$(CC) $(PROFILE) -o $@ $^ -lm
install:
$(INSTALL) -m 755 $(TARGET) $(INSTALL_MODULES_DIR)
# config: all
# cp conf.conf /etc/asterisk/
-include $(DEPS)
Si quelqu'un pourrait m'aider ce serait vraiment gentil car là c'est au dessus de mes compétences.
Merci,