Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No libwebp in Vendors dir #447

Closed
MaciejGad opened this issue Jul 9, 2013 · 16 comments
Closed

No libwebp in Vendors dir #447

MaciejGad opened this issue Jul 9, 2013 · 16 comments

Comments

@MaciejGad
Copy link

After downloading repository in zip, I tried to compile examples, and I've got this error:

clang: error: no such file or directory: '/Users/bazyl/Desktop/SDWebImage-master/Vendors/libwebp/src/dec/webp.c'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

beacuse there isn't libwebp in Vendors dir. It will be nice to have working examples out of the box after download zip, but also it can be mention in README.md in section Installation to manually download libwebp and place in Vendors dictionary

@lukegeiger
Copy link

Any idea on where to download libwebp? Also agree that it would be nice to have an out of the box working example...

@MaciejGad
Copy link
Author

@lukejgeger I've cloned from repo http://git.chromium.org/webm/libwebp.git
git clone http://git.chromium.org/webm/libwebp.git

@lukegeiger
Copy link

@MaciejGad Cool. Thanks for the heads up.

@shifu
Copy link
Contributor

shifu commented Jul 29, 2013

It's setup as submodules. You can clone with submodules to make it work out of the box.

@rs
Copy link
Member

rs commented Jul 29, 2013

Problem is for people who hit the Github's "Download" button. When downloaded that way, submodule aren't fetched and the .gitmodules file is missing.

@pkishino
Copy link

pkishino commented Aug 6, 2013

actually the submodule doesnt seem to be working properly as I did clone it and the files still didnt get added.. so right now cloning this and trying to run will not build..

@rs
Copy link
Member

rs commented Aug 6, 2013

Try to add the --recursive option

@pkishino
Copy link

pkishino commented Aug 6, 2013

no luck so far, it tries to fetch it but keeps saying up to date

@pinkcity699
Copy link

in terminal type this one.

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

@pkishino
Copy link

pkishino commented Aug 6, 2013

finally using pods it seems to work

@shiqiang124
Copy link

git submodule update --init --recursive ,then Cloning into 'Vendors/libwebp'..., but waiting waiting ,and not down.

@bpoplauschi
Copy link
Member

Please use Cocoapods, if the git clone + git submodule init doesn't work for you.

@sekmo
Copy link

sekmo commented Mar 30, 2015

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

@bpoplauschi
Copy link
Member

Great @sekmo

@pathfinder1989
Copy link

@bpoplauschi when pod install error:

Installing libwebp (0.5.0)

[!] Error installing libwebp
[!] /usr/bin/git clone https://chromium.googlesource.com/webm/libwebp /var/folders/0c/rt1dny3d64qfrncb1yq22_rc0000gn/T/d20161103-3177-11xvrzp --template= --single-branch --depth 1 --branch v0.5.0

Cloning into '/var/folders/0c/rt1dny3d64qfrncb1yq22_rc0000gn/T/d20161103-3177-11xvrzp'...
fatal: unable to access 'https://chromium.googlesource.com/webm/libwebp/': Failed to connect to chromium.googlesource.com port 443: Operation timed out

@buvtopcc
Copy link

cd SDWebImage/SDWebImage Dir and run 'git submodule update --init --recursive', It's correctly clone libwebp and worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests