GPUImage的導(dǎo)入
下載GPUImage,地址:https://github.com/BradLarson/GPUImage
把GPUImage.xcodeproj 拖到你的Xcode project
在app的target依賴設(shè)置里面添加GPUImage.a作為Target Dependency
在build phase的Link Binary With Libraries, 把libGPUImage.a加進來.
添加下面這些系統(tǒng)framework:
CoreMedia
CoreVideo
OpenGLES
AVFoundation
QuartzCore
頭文件搜索路徑: project's build settings, 把GPUImage的source和source下的iOS目錄加到搜索路徑里, 使用相對路徑和遞歸.
包含下面這個頭文件:#import "GPUImage.h"
target-build setting里面,other linker flags 里面添加 -fobjc-arc -ObjC 這兩項
再最后一步老是提示找不到GPUImage.h,source加入的搜索路徑?jīng)]有問題,一直編譯不了,原來路徑后面需要設(shè)置recursive。如下圖:

就是遞歸的方式搜索。
開源框架GPUImage 的簡單說明:http://tieba.baidu.com/p/3515140538 http://www.mamicode.com/info-detail-1163935.html