一.? 使用CocoaPods
? ? ? pod? 'GPUImage'
二. 手動集成
? ? ? ? https://github.com/BradLarson/GPUImage
? ? ? ? 1.下載官網(wǎng)master丐一,其中framework文件夾為我們需要的資源拔稳,包括.xcodeproj文件。
? ? ? ? 2.導(dǎo)入工程匿又,在項目的根目錄下創(chuàng)建的GPUImage這個文件夾,framework 在GPUImage這個文件夾下
? ? ? ? 3.設(shè)置依賴汽烦。Linked Frameworks and Libraries. 添加
? ? ? ? libGPUImage.a
? ? ? ? CoreMedia
? ? ? ? CoreVideo
? ? ? ? OpenGLES
? ? ? ? AVFoundation
? ? ? ? QuartzCore
? ? ? ? 4.Build Settings -> Header Search Paths 添加GPUImage的路徑
? ? ? ? 添加的路徑為 GPUImage/framework 枷餐。注意,路徑需要選擇recursive馍佑!
? ? ? ? other linker flags 里面添加
? ? ? ? -fobjc-arc? ? ?
? ? ? ? -ObjC
? ? ? 三.手動集成,使用libGPUImage.a
? ? ? 1.下載
? ? ? https://github.com/licl19/GPUImage.git
? ? ? 2.將GPUImage文件夾直接導(dǎo)入梨水。
? ? ? 3.#import "GPUImage.h" 拭荤,引用頭文件,編譯通過疫诽。