pristineio / webrtc-build-scripts

A set of build scripts useful for building WebRTC libraries for Android and iOS.
BSD 3-Clause "New" or "Revised" License
1.13k stars 447 forks source link

ninja: error: unknown target 'libWebRTC_objc' #120

Open divyamML opened 9 years ago

divyamML commented 9 years ago

getting this during dance

ArikYa commented 9 years ago

can you attach the build output? not sure where it is failing

divyamML commented 9 years ago

now I see below error for all architectures

____ running 'download_from_google_storage --no_resume --platform=darwin --no_auth --bucket chromium-luci -d src/tools/luci-go/mac64' in '/Users/divyam/pristineio/webrtc-build-scripts/ios/webrtc/src/chromium' Error: Command 'download_from_google_storage --no_resume --platform=darwin --no_auth --bucket chromium-luci -d src/tools/luci-go/mac64' returned non-zero exit status 1 in /Users/divyam/pristineio/webrtc-build-scripts/ios/webrtc/src/chromium /Users/divyam/pristineio/webrtc-build-scripts/ios/depot_tools/external_bin/gsutil/gsutil_4.7/gsutil/third_party/boto/boto/pyami/config.py:72: UserWarning: Unable to load AWS_CREDENTIAL_FILE () warnings.warn('Unable to load AWS_CREDENTIAL_FILE (%s)' % full_path) Copying gs://chromium-luci/e3a5852f682eeb31cef1c887c2a84777d7fae53d... OSError: Permission denied.

0> Downloading src/tools/luci-go/mac64/isolate... 0> /Users/divyam/pristineio/webrtc-build-scripts/ios/depot_tools/external_bin/gsutil/gsutil_4.7/gsutil/third_party/boto/boto/pyami/config.py:72: UserWarning: Unable to load AWS_CREDENTIAL_FILE () warnings.warn('Unable to load AWS_CREDENTIAL_FILE (%s)' % full_path) Copying gs://chromium-luci/e3a5852f682eeb31cef1c887c2a84777d7fae53d... OSError: Permission denied.

Error: Command '/usr/bin/python -u src/sync_chromium.py --target-revision f8d6ba9efdddfb3aa0dfc01cd579f500a2de0b8d' returned non-zero exit status 2 in /Users/divyam/pristineio/webrtc-build-scripts/ios/webrtc Hook '/usr/bin/python -u src/sync_chromium.py --target-revision f8d6ba9efdddfb3aa0dfc01cd579f500a2de0b8d' took 15.59 secs Running ninja ninja: Entering directory `out_ios_arm64_v8a/Release-iphoneos/' ninja: fatal: chdir to 'out_ios_arm64_v8a/Release-iphoneos/' - No such file or directory Running libtool error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/divyam/pristineio/webrtc-build-scripts/ios/webrtc/src/out_ios_arm64_v8a/Release-iphoneos/*.a (No such file or directory) Running strip error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: can't open file: /Users/divyam/pristineio/webrtc-build-scripts/ios/webrtc/libjingle_peerconnection_builds/libWebRTC-9716-ios-arm64_v8a-Release.a (No such file or directory) .gclient file in parent directory /Users/divyam/pristineio/webrtc-build-scripts/ios/webrtc might not be the file you want to use

ArikYa commented 9 years ago

It seem to be some permission error. I recommend you completely remove your current directory of WebRTC, update the scripts and try again.

divyamML commented 9 years ago

it's same as https://groups.google.com/forum/#!topic/discuss-webrtc/PZZsXDXBpNM it might not be at my end, anyways will clean and retry

ArikYa commented 9 years ago

That's a very old issue, I'll be surprised if it is still relevant

mark-jimenez-outsourced commented 9 years ago

I'm getting the same error although I think I have a slightly different log. Completely removing the WebRTC directory and running dance again did not help.

This is what I get when running build_apprtc.

___ running '/usr/bin/python -c import os,sys;script = os.path.join("trunk","check_rootdir.py"); = os.system("%s %s" % (sys.executable,script)) if os.path.exists(script) else 0' in '/Users/hanet/Documents/WebRTC/webrtc-build-scripts/ios/webrtc'

____ running '/usr/bin/python -u src/sync_chromium.py --target-revision f8d6ba9efdddfb3aa0dfc01cd579f500a2de0b8d' in '/Users/hanet/Documents/WebRTC/webrtc-build-scripts/ios/webrtc' Chromium already up to date: f8d6ba9efdddfb3aa0dfc01cd579f500a2de0b8d

____ running '/usr/bin/python src/setup_links.py' in '/Users/hanet/Documents/WebRTC/webrtc-build-scripts/ios/webrtc'

____ running '/usr/bin/python src/third_party/instrumented_libraries/scripts/download_binaries.py' in '/Users/hanet/Documents/WebRTC/webrtc-build-scripts/ios/webrtc'

____ running 'download_from_google_storage --directory --recursive --num_threads=10 --no_auth --bucket chromium-webrtc-resources src/resources' in '/Users/hanet/Documents/WebRTC/webrtc-build-scripts/ios/webrtc'

____ running '/usr/bin/python src/webrtc/build/gyp_webrtc -Dextra_gyp_flag=0' in '/Users/hanet/Documents/WebRTC/webrtc-build-scripts/ios/webrtc' Updating projects from gyp files... Hook '/usr/bin/python src/webrtc/build/gyp_webrtc -Dextra_gyp_flag=0' took 17.57 secs Running ninja ninja: Entering directory `out_ios_armeabi_v7a/Debug-iphoneos/' ninja: error: unknown target 'libWebRTC_objc' Running libtool error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/hanet/Documents/WebRTC/webrtc-build-scripts/ios/webrtc/src/out_ios_armeabi_v7a/Debug-iphoneos/*.a (No such file or directory)

ArikYa commented 9 years ago

@mark-jimenez-outsourced can you try using the 2 step instructions (calling get_webrtc and build_webrtc)?

divyamML commented 9 years ago

That doesn't work either. Can you try a clean build and see if it works for you ?

mark-jimenez-outsourced commented 9 years ago

Ditto with @divyamML , get_webrtc and build_webrtc doesn't work either. I'm on OSX 10.10.4 if that helps.

ArikYa commented 9 years ago

Can you let me know what are the reproduction steps? It's working for me

divyamML commented 9 years ago

start a fresh new checkout and you will see the error when you'd try to build

if you use an existing (working) checkout then probably because of no absolute clean you don't see it

meetakshay99 commented 9 years ago

Any update on how to fix this? I am too getting this error.

pochuang commented 8 years ago

I got this error today!

timkoma commented 8 years ago

same here

ai-rex commented 8 years ago

https://github.com/pristineio/webrtc-build-scripts/blob/06c047a01f835c09618172cb823a9a01e4b31d37/ios/insert_two_lines_after_text.py#L7

The string FIND can not be found in $WEBRTC/src/webrtc/webrtc_examples.gyp

See pull requests for detail.

lboquan commented 8 years ago

Again with revision 11025. I found the following lines in webrtc_examples.gyp:

['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { 'targets': [ { 'target_name': 'apprtc_common', 'type': 'static_library', 'dependencies': [ '<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_default', '../talk/libjingle.gyp:libjingle_peerconnection_objc', ],

That looks like the strings in FIND except for the target_name. Does that mean the file 'insert_two_lines_after_text.py' is not required anymore?

lancelot-koh commented 8 years ago

same error here, anyone can help on this issue. thanks