为iphone及iphone simulator编译poco库
摘要:./configure --config=iPhone --prefix=/libs/pocos --static --notests --nosamples#./configure --config=iPhoneSimulator --prefix=/libs/pocos --static --notests --nosamples 由于系统升级到了mac os x 10.7.4,xcode目录也变到了/Applications/Xcode.app,所以要编译iphone版的就要做些修改,找到build/config/iPhone文件打开编辑,修改如下:IPHONE_SDK_VERSION
阅读全文
posted @
2012-05-30 14:02
袁晓平
阅读(367)
推荐(0)
为iphone 及iphone simulator编译boost库
摘要:1 下载boost,解压到/Users/test/Downloads/boost_1_49_02 cd /Users/test/Downloads/boost_1_49_03 打开terminal控制台,键入su然后输入管理员密码,再键入vi ./build.bat4 在控制台里录入以下内容:#! /bin/sh#PREFIX=/libs#echo ${PREFIX}#ls /usr/localecho 'now start install boost.build'#cd tools/build/v2/#chmod +x ./bootstrap.sh#./bootstrap.s
阅读全文
posted @
2012-05-25 22:16
袁晓平
阅读(1193)
推荐(0)
mac os下通过命令行的方式编译c++代码并在xcode里引用
摘要:1编写c++类:c.h #include <stdio.h>class AA {public:void Go();};c.mm#include "c.h"AA::Go() {printf("AA::Go");}2编译刚刚写的类,分两 种运行环境,一种是在模拟器下运行,编译的目标代码架构为i386,一种是在真实iphone ipad里运行,目标代码架构为armv7,我们先编译可以在模拟器里运行的,要用模拟器的gcc编译器,打开命令行,键入命令:cd /program/code/ /Developer/platforms/iPhoneSimula
阅读全文
posted @
2012-05-22 13:18
袁晓平
阅读(2369)
推荐(0)
模拟器与真机下ffmpeg的编译方法(总结版)
摘要:本文由论坛会员sun_t89分享 如果不了解什么是ffmepg,请移步http://ffmpeg.org 先了解下:) 编译ffmepg模拟器版本: 1. 到https://github.com/gabriel/ffmpeg-iphone-build下载ffmpeg-iphone-build 2.先将gas-preprocessor.pl拷贝到/usr/sbin/目录中。 3.到ffmpeg官网上下载ffmpeg源码 4.在终端下定位到ffmpeg的目录运行 ./configure --disable-doc --disable-ffmpeg --disable-ffplay --disab.
阅读全文
posted @
2012-05-04 21:16
袁晓平
阅读(494)
推荐(0)