[Asterisk-Users] patch to build h323 without recompiling pwlib, ...

Michel michel.linux at tiscali.be
Sat Dec 25 15:59:01 MST 2004


Heya,

I changed the Makefile of the h323-channel-makefile (I downloaded cvs of 
a couple of hours ago) so that I don't have to rebuild pwlib and 
openh323, but can use the precompiled versions. I'm using pwlib 1.8.3 
and openh323 1.15.2. There aren't many changes. I replaced OPENH323DIR 
with OPENH323INC ,which points to /usr/include/openh323 for me and 
OPENH323LIB, which points to /usr/lib for me. The variable OPENH323DIR 
is still there after teh patch, but can be removed I think.
That's it I think. I just assigned the variable PWLIBDIR, the value /usr 
, that worked for me.

The Makefile I'm talking about is: channels/h323/Makefile

Anyway, this way I don't have to recompile those libraries, but can use 
the installed ones ... I'll attach the patch and hope it will get 
through, but the above explanation says it all I think.

greetz,

Michel Brabants
-------------- next part --------------
--- Makefile	2004-12-25 19:56:45.000000000 +0100
+++ ../../../../Makefile-h323	2004-12-25 19:55:59.000000000 +0100
@@ -1,11 +1,13 @@
 # include the Makefile of OpenH323 
 
 ifndef OPENH323DIR
-OPENH323DIR=$(HOME)/openh323
+OPENH323DIR=/
+OPENH323INC=/usr/include/openh323
+OPENH323LIB=/usr/lib
 endif
 
 ifndef PWLIBDIR
-PWLIBDIR=$(HOME)/pwlib
+PWLIBDIR=/usr
 endif
 
 ifndef ASTERISKDIR
@@ -41,7 +43,7 @@
 CFLAGS += -D_REENTRANT -D_GNU_SOURCE
 CFLAGS += -I../../include
 CFLAGS += -I$(PWLIBDIR)/include 
-CFLAGS += -I$(OPENH323DIR)/include -Wno-missing-prototypes
+CFLAGS += -I$(OPENH323INC) -Wno-missing-prototypes
 
 all:	depend libchanh323.a
 
@@ -64,13 +66,13 @@
 endif
 
 chan_h323.so:	
-	$(CXX)  -g -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib  -lpt_linux_x86_r -L$(OPENH323DIR)/lib -lh323_linux_x86_r -L/usr/lib $(CHANH323LIB)
+	$(CXX)  -g -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib  -lpt_linux_x86_r -L$(OPENH323LIB) -lh323_linux_x86_r -L/usr/lib $(CHANH323LIB)
 
 chan_h323_d.so:	chan_h323.o ast_h323.o
-	$(CXX)     -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib  -lpt_linux_x86_d -L$(OPENH323DIR)/lib -lh323_linux_x86_d -L/usr/lib $(CHANH323LIB)
+	$(CXX)     -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib  -lpt_linux_x86_d -L$(OPENH323LIB) -lh323_linux_x86_d -L/usr/lib $(CHANH323LIB)
 
 chan_h323_s.so:	chan_h323.o ast_h323.o
-	$(CXX)  -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib  -lpt_linux_x86_r_s -L$(OPENH323DIR)/lib -lh323_linux_x86_r_s -L/usr/lib $(CHANH323LIB)
+	$(CXX)  -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib  -lpt_linux_x86_r_s -L$(OPENH323LIB) -lh323_linux_x86_r_s -L/usr/lib $(CHANH323LIB)
 clean:
 	rm -f *.o *.so core.* libchanh323.a .depend
 


More information about the asterisk-users mailing list