GPUImage开源项目地址:https://github.com/BradLarson/GPUImage

GPUImage使用说明:https://github.com/BradLarson/GPUImage#adding-the-framework-to-your-ios-project

 

1、导入项目需要的系统库

  • CoreMedia
  • CoreVideo
  • OpenGLES
  • AVFoundation
  • QuartzCore

2、添加项目头文件寻找地址

  在项目属性→Build Setting→Search Paths→Header Search Paths中

  添加项目的地址如:GPUImage-master/framework,并将属性置为recursive

3、在需要使用的地方引入头文件 

#import "GPUImage.h"

  如果出现"Unknown class GPUImageView in Interface Builder"错误,则添加 -ObjC 指令Other Linker Flags的编译命令指令中

4、加入编译后的库

  在Link Binary With Libraries 中添加libGPUImage.a

相关文章:

  • 2021-10-14
  • 2021-09-18
  • 2021-05-10
  • 2021-12-31
  • 2021-07-22
  • 2021-10-30
  • 2021-05-27
猜你喜欢
  • 2022-12-23
  • 2021-10-16
  • 2021-11-18
  • 2022-03-02
  • 2021-11-24
  • 2021-11-08
相关资源
相似解决方案