2013年1月29日 星期二

live555 -- Compile and test on MAC and iOS

Below is the test procedure to use live555 on iOS and Mac OSX.

Mac OS X 10.8.2
1. Download file
   http://www.live555.com/liveMedia/public/, What I download is live.2013.01.25.tar.gz
 
2. unzip the file
   $tar -xvf live.2013.01.25.tar.gz 
3. build file
   $ ./genMakefiles macosx
   $ make

4. run the test file
   $ ./testRTSPClient rtsp://192.168.0.3:554/livestream
 
5. and then you can see many logs dump by testRTSPClient   



iPhone Simulator (iOS 6.0)
We already downloaded and compiled the live555 for mac os x. Below is the test procedure to run live555 on iPhone Simulator. 
1. build file
$ make clean
$ ./genMakefiles iphone-simulator
$ make
2. use lipo to check if the library build correctly.
$ lipo -info liveMedia/libliveMedia.a
Note: The architecture should be i386 for iphone-simulator, and x86_64 for macosx.
3. use the library to build a app (to be continue)
For simple usage, we can use VLC or DropCam as an excise.

Reference
  • http://www.live555.com/liveMedia/,here we can find some softwares using live555.
  • http://stackoverflow.com/questions/7830552/how-can-i-show-iphone-simulators-console-on-organizer-like-iphone-device