Changes between Version 10 and Version 11 of Getting_Started_Using


Ignore:
Timestamp:
Jan 15, 2010 3:57:16 PM (15 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Getting_Started_Using

    v10 v11  
    1212    {{{$ ./configure && make dep && make}}} 
    1313 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. 
     19all: myapp 
     20 
     21myapp: myapp.cpp 
     22        $(CC) -o $@ $< `pkg-config --cflags --libs libpjproject` 
     23 
     24clean: 
     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: 
    1528{{{ 
    1629#Modify this to point to the PJSIP location. 
     
    1932include $(PJBASE)/build.mak 
    2033 
    21 CC      = $(APP_CC) 
    22 LDFLAGS = $(APP_LDFLAGS) 
    23 LDLIBS  = $(APP_LDLIBS) 
    24 CFLAGS  = $(APP_CFLAGS) 
     34CC      = $(PJ_CC) 
     35LDFLAGS = $(PJ_LDFLAGS) 
     36LDLIBS  = $(PJ_LDLIBS) 
     37CFLAGS  = $(PJ_CFLAGS) 
    2538CPPFLAGS= ${CFLAGS} 
    2639 
     
    3548        rm -f myapp.o myapp 
    3649}}} 
    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: 
    3851{{{ 
    3952# Modify this to point to the PJSIP location.