SDWebImage的源代码无法运行的问题

从github上下的SDWebImage源文件编译不通过,最后google到了解决方案:

https://github.com/rs/SDWebImage/issues/447


原因就是libwebp是作为一个git的submodules存在的。

点击github网站上的download zip按钮下载的zip文件中没有libwebp的源文件。

解决办法如下:

下面都以Users/USER_NAME/Downloads/这个目录为准:

1、cd ~/download

2、mkdir test

3、cd test

4、git clone https://github.com/rs/SDWebImage.git


下面两步是关键步骤:

5、一定要进到SDWebImage这个子目录下:

    cd SDWebImage

6、下载submodule

git submodule update --init --recursive 

猜你喜欢

转载自blog.csdn.net/gaoyp/article/details/19916849