Changes between Version 10 and Version 11 of Getting_Started_Using
- Timestamp:
- Jan 15, 2010 3:57:16 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Getting_Started_Using
v10 v11 12 12 {{{$ ./configure && make dep && make}}} 13 13 1. Create a directory outside the PJSIP sources for your project and place your source files there. 14 1. Create a file named '''Makefile''' in your source directory. If you have PJ '''version 0.5.10.2''' or later, you can use this template for your Makefile: 14 1. Create a file named '''Makefile''' in your source directory: 15 1. If you have PJ '''version 1.6''' or later, '''and''' you run ''make install'', '''and''' you have '''pkg-config''' tool, you can use this template for your Makefile: 16 {{{ 17 # If your application is in a file named myapp.cpp or myapp.c 18 # this is the line you will need to build the binary. 19 all: myapp 20 21 myapp: myapp.cpp 22 $(CC) -o $@ $< `pkg-config --cflags --libs libpjproject` 23 24 clean: 25 rm -f myapp.o myapp 26 }}} 27 1. Otherwise if you have PJ '''version 0.5.10.2''' or later, you can use this template for your Makefile: 15 28 {{{ 16 29 #Modify this to point to the PJSIP location. … … 19 32 include $(PJBASE)/build.mak 20 33 21 CC = $( APP_CC)22 LDFLAGS = $( APP_LDFLAGS)23 LDLIBS = $( APP_LDLIBS)24 CFLAGS = $( APP_CFLAGS)34 CC = $(PJ_CC) 35 LDFLAGS = $(PJ_LDFLAGS) 36 LDLIBS = $(PJ_LDLIBS) 37 CFLAGS = $(PJ_CFLAGS) 25 38 CPPFLAGS= ${CFLAGS} 26 39 … … 35 48 rm -f myapp.o myapp 36 49 }}} 37 1. Otherwise if you have PJ '''version 0.5.10.1''' or older, you can use this template for your Makefile:50 1. Otherwise if you have PJ '''version 0.5.10.1''' or older, you can use this template for your Makefile: 38 51 {{{ 39 52 # Modify this to point to the PJSIP location.