webkit.js icon indicating copy to clipboard operation
webkit.js copied to clipboard

ninja: error: '../deps/curl/lib/amigaos.c', missing

Open Macil opened this issue 10 years ago • 3 comments

I'm on OS X 10.10, and I'm trying to build webkit.js by following the instructions in the readme. I've run setup.sh and config.sh which both appeared to be successful. (I can use emscripten now.) But build.sh fails:

$ ./build.sh 
building webkit.js (release)
ninja: Entering directory `Release'
ninja: error: '../deps/curl/lib/amigaos.c', needed by 'obj/deps/curl/lib/curl.amigaos.o', missing and no known rule to make it

It looks like the deps/curl directory and a few other directories under deps are empty.

Macil avatar Nov 06 '15 23:11 Macil

Is the deps/curl directory supposed to be a git submodule? git ls-files --stage | grep 160000 implies it is, but git submodule update --init fails because there's no .gitmodules file.

Macil avatar Nov 06 '15 23:11 Macil

I noticed the ".gclient_entries" file has a mapping of directories to git repos. I assume one of the setup.sh/config.sh/build.sh scripts were supposed to read this and automatically do something with it but failed to. I manually cloned the repos to the given directories and it got me past this error at least.

Macil avatar Nov 07 '15 00:11 Macil

Try command: gclient sync

You need to clone depot_tools:

mkdir install-tools
cd install-tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=`pwd`/depot_tools:"$PATH"
which ninja # .../webkit.js/install-tools/depot_tools/ninja
cd ..

derofim avatar Mar 09 '19 18:03 derofim