SDWebImage trial version compilation: libwebp / src / utils / random.c not found

On MacOS Mavericks, I am trying to compile the SDWebImage demo.

I checked the latest version with

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

and opened SDWebImage Demo.xcodeproj in Xcode 5.0.2.

The construction of the project, however, is not performed (here is a full-size screenshot ):

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

enter image description here

Where can I get this random.c?

Or is it possibly possible to configure SDWebImage without webP support, and then I will not need it?

UPDATE:

I noticed that libwebp is the "git submodule" of the "SDWebImage" project, because when I checked SourceTree again, I saw:

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

Unfortunately, I do not know git yet, but I also have to read on it - why this submodule was not loaded when I cloned "SDWebImage" ...

+4
3

:

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

...

SDWebImage github , , "Vendors" , ,

SDWebImage sumbodule:

  • : git submodule add git@github.com:<username>/example.git path/to/submodule
  • git status , , . , .gitmodules, , .

Now, to solve my problem, I did the following to update every submodule that even has submodules :

  • Type: git submodule update --init --recursivefrom repo directory
  • Commit changes
  • Push to remote
+1
source

All Articles