ios - 未找到编译 SDWebImage 演示 : libwebp/src/utils/random. c

标签 ios objective-c xcode xcode5 sdwebimage

在 MacOS Mavericks 上,我正在尝试编译 SDWebImage演示。

我已经检查了最新版本

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

并在 Xcode 5.0.2 中打开 SDWebImage Demo.xcodeproj。

但是构建项目失败了(此处为 full-sized screenshot ):

clang: error: no such file or directory: 'SDWebImage/Vendors/libwebp/src/utils/random.c'
clang: error: no input files

enter image description here

请问我从哪里得到这个 random.c?

或者也许可以在没有 webP 支持的情况下配置 SDWebImage,这样我就不需要它了?

更新:

我注意到 libwebp 是“SDWebImage”项目的“git 子模块”——因为当我再次使用 SourceTree 检查时,我看到了:

Submodule 'SDWebImage' (https://github.com/rs/SDWebImage.git) registered for path 'SDWebImage'
Cloning into 'SDWebImage'...
Submodule path 'SDWebImage': checked out '42f97369726f1ee282b40b63616e339adfcb2c8a'
Submodule 'Vendors/libwebp' (http://git.chromium.org/webm/libwebp.git) registered for path 'Vendors/libwebp'
Cloning into 'Vendors/libwebp'...
Submodule path 'Vendors/libwebp': checked out '68e7901da53cbda6ec93ddf93e039346d3c6a531'
Completed successfully

不幸的是,我对 git 还不是很了解,必须阅读它 - 为什么在我克隆“SDWebImage”时没有下载这个子模块...

最佳答案

这对我有用:

git clone --recursive https://github.com/rs/SDWebImage.git

关于ios - 未找到编译 SDWebImage 演示 : libwebp/src/utils/random. c,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21074120/

相关文章:

iOS - 在更新期间调试 NSUserDefault 崩溃的任何建议

来自 Objective C 的 C++ 方法

ios - 为什么 XCode 忽略我的部署目标?

xcode - Codesign 想要访问钥匙串(keychain)中的 key "access",我输入了登录密码,但一直询问我

ios - GoogleMaps for iOS 链接器错误

ios - __weak IBOutlet ivars 需要发布和/或不良做法?

ios - 选择 Collection View 中的单元格到新 Controller

iphone - 为什么在 iOS 中,我们不能在 ViewController 类中声明 "UIAcceleration accelerationCurrent;"实例变量?

ios - 开发了一个框架,无法加载 'x'的底层模块

ios - SpriteKit 暂停和恢复 SKView