Sdwebimage: No libwebp in Vendors dir

Created on 9 Jul 2013  路  16Comments  路  Source: SDWebImage/SDWebImage

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

Most helpful comment

in terminal type this one.

git clone --recursive [email protected]:rs/SDWebImage.git

All 16 comments

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

@MaciejGad Cool. Thanks for the heads up.

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

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.

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..

Try to add the --recursive option

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

in terminal type this one.

git clone --recursive [email protected]:rs/SDWebImage.git

finally using pods it seems to work

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

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

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

Great @sekmo

@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

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

Was this page helpful?
0 / 5 - 0 ratings