Help with iPhone sample code
I'm trying to build this iPhone sample:
http://trac.pjsip.org/repos/wiki/Getting-Started/iPhone
but I'm having trouble since I am new to both iPhone development and 开发者_开发问答the Mac world. From the Build Preparation section, I've downloaded the source code, but step 2 here is to "set [my] config_site.h" to a particular value. Do I just double-click this file in Finder and change it there? I can't actually find this file anywhere in the source.
The next section (Building PJSIP) says to "Just run:" this:
$ cd /path/to/your/pjsip/dir
$ ./configure-iphone
$ make dep && make clean && make
but I don't have any idea what it means to "just run" something on a Mac. I also don't have any idea what path to use or how to get my downloaded source from Finder into a path location somewhere.
Help!
Yes you can just edit config_site.h from the finder, although you'll need to create it first. You'll need to run the terminal app to do the rest, its in the Utilities folder of the Application directory.
Assuming your code path is: dev/ios/pjsip you would type:
cd dev/ios/pjsip
./configure-iphone
make dep && make clean && make
You'll then need to follow the rest of the instructions on building for the simulator etc...
If you're really new to development I would recommend doing everything through XCode projects rather than command line make files.
精彩评论