Closed thepatrick closed 10 years ago
I updated the build script to create third_party
before anything else. Can you retry?
@thepatrick I pushed 0.0.19 to npm, could you try installing again?
FWIW, npm install
of 0.0.20 using 10.9.2 and Xcode 5.1 worked for me
For me too thanks
I get
node-pre-gyp install --fallback-to-build
node-pre-gyp http GET https://wrtc-binaries.s3.amazonaws.com/wrtc/v0.0.20/Release/wrtc-v0.0.20-node-v11-darwin-x64.tar.gz node-pre-gyp http 404 https://wrtc-binaries.s3.amazonaws.com/wrtc/v0.0.20/Release/wrtc-v0.0.20-node-v11-darwin-x64.tar.gz node-pre-gyp ERR! Source compile required: 404 status code downloading tarball
:(
@piyushranjan There isn't a precompiled binary for mac yet, so you'll have to build it when you install the module.
@modeswitch If you provide directions, I would be happy to build precompiled binaries for Mac
"npm install" in v0.0.20 fails on ARM Linux (Raspberry Pi), too.
Anyone have any insight on how to install this stack on Darwin platform?
@TomKaltz Can you open a new issue with some more details about what's failing?
Thomass-MacBook-Pro-2:wrtc Thomas$ sudo npm install wrtc
/
> wrtc@0.0.40 install /Users/Thomas/WebstormProjects/wrtc/node_modules/wrtc
> node-gyp rebuild
ACTION Run build script /dev/null
TARGET_ARCH=x64 PLATFORM=darwin CONFIGURATION=Release PYTHON=python2
: Preparing directories ...
: Cloning depot_tools ...
Cloning into 'depot_tools'...
POST git-upload-pack (189 bytes)
POST git-upload-pack (198 bytes)
remote: Sending approximately 14.46 MiB ...
remote: Counting objects: 809, done
remote: Finding sources: 100% (809/809)
remote: Total 809 (delta 77), reused 439 (delta 77)
Receiving objects: 100% (809/809), 2.74 MiB | 3.16 MiB/s, done.
Resolving deltas: 100% (77/77), done.
Checking connectivity... done.
: Cloning libwebrtc ...
Cloning into 'libwebrtc'...
POST git-upload-pack (220 bytes)
POST git-upload-pack (229 bytes)
remote: Counting objects: 7555, done.
remote: Compressing objects: 100% (6430/6430), done.
remote: Total 7555 (delta 951), reused 6476 (delta 796)
Receiving objects: 100% (7555/7555), 37.29 MiB | 3.40 MiB/s, done.
Resolving deltas: 100% (951/951), done.
Checking connectivity... done.
Checking out files: 100% (7024/7024), done.
: Generating build scripts ...
Updating projects from gyp files...
: Building libwebrtc ...
ninja: Entering directory `out/Release'
ninja: error: '../../chromium/src/third_party/boringssl/src/crypto/aes/aes.c', needed by 'obj/chromium/src/third_party/boringssl/src/crypto/aes/boringssl.aes.o', missing and no known rule to make it
ERROR: 1 null
make: *** [/dev/null] Error 255
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/Thomas/WebstormProjects/wrtc/node_modules/wrtc
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! wrtc@0.0.40 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wrtc@0.0.40 install script.
npm ERR! This is most likely a problem with the wrtc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls wrtc
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "wrtc"
npm ERR! cwd /Users/Thomas/WebstormProjects/wrtc
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
Ah my issue is the exact one being discussed in https://github.com/js-platform/libwebrtc/issues/1
@TomKaltz Ah, that's good news. I don't have a mac, so I need help debugging these issues. Can you start by checkout out libwebrtc and trying a manual build? We'll need to inspect some of the generated ninja files. Build instructions are in the bug you linked.
@TomKaltz I'm also in #webrtc on freenode, if you want to chat today.
@modeswitch i get the following error when i try to install node-webrtc on mac http://pastebin.com/vgHaDxFn
Do you have all the prerequisites installed? I don't have a mac, so this may be difficult to debug.
Sorry @modeswitch it turned out that xcode was not installed despite having xcode developer tools installed. Problem solved.
OSX 10.11 - Xcode 7.0.1 (7A1001)
expected a type nullable unknown property attribute 'nullable'
> node-pre-gyp install --fallback-to-build
ACTION Run build script /dev/null
TARGET_ARCH=x64 PLATFORM=darwin CONFIGURATION=Release PYTHON=python MODULE_PATH=/Users/xxx/node_modules/wrtc/build/wrtc/v0.0.58/Release/node-v14-darwin-x64
: Preparing directories ...
: Cloning depot_tools ...
Cloning into 'depot_tools'...
POST git-upload-pack (170 bytes)
POST git-upload-pack (179 bytes)
remote: Counting objects: 936, done
remote: Finding sources: 100% (936/936)
remote: Total 936 (delta 84), reused 519 (delta 84)
Receiving objects: 100% (936/936), 4.68 MiB | 1.71 MiB/s, done.
Resolving deltas: 100% (84/84), done.
Checking connectivity... done.
: Cloning libwebrtc ...
Cloning into 'libwebrtc'...
POST git-upload-pack (170 bytes)
POST git-upload-pack (179 bytes)
remote: Counting objects: 11018, done.
remote: Compressing objects: 100% (8730/8730), done.
remote: Total 11018 (delta 1804), reused 9928 (delta 1651), pack-reused 0
Receiving objects: 100% (11018/11018), 18.21 MiB | 1.71 MiB/s, done.
Resolving deltas: 100% (1804/1804), done.
Checking connectivity... done.
: Updating clang ...
Trying to download prebuilt clang
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 20.6M 100 20.6M 0 0 1527k 0 0:00:13 0:00:13 --:--:-- 1641k
clang 218707 unpacked
: Generating build scripts ...
Updating projects from gyp files...
2015-10-05 00:17:56.595 xcodebuild[20263:120409] [MT] PluginLoading: Required plug-in compatibility UUID 0420B86A-AA43-4792-9ED0-6FE0F2B16A13 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2015-10-05 00:17:56.603 xcodebuild[20264:120411] [MT] PluginLoading: Required plug-in compatibility UUID 0420B86A-AA43-4792-9ED0-6FE0F2B16A13 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin' not present in DVTPlugInCompatibilityUUIDs
: Building libwebrtc ...
ninja: Entering directory `out/Release'
[419/630] OBJCXX obj/webrtc/base/rtc_base.iosfilesystem.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/webrtc/base/rtc_base.iosfilesystem.o.d -DV8_DEPRECATION_WARNINGS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -DCHROMIUM_BUILD -DCR_CLANG_REVISION=218707 -DUSE_LIBJPEG_TURBO=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1 -DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY -DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE -DDONT_EMBED_BUILD_METADATA -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_WIFI_BOOTSTRAPPING=1 -DENABLE_LOAD_COMPLETION_HACKS=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DEXPAT_RELATIVE_PATH -DWEBRTC_MODULE_UTILITY_VIDEO -DWEBRTC_POSIX -DWEBRTC_MAC -DFEATURE_ENABLE_SSL -DLOGGING=1 -DUSE_WEBRTC_DEV_BRANCH -DSSL_USE_OPENSSL -DHAVE_OPENSSL_SSL_H -DCARBON_DEPRECATED=YES -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -D_FORTIFY_SOURCE=2 -Igen -I../.. -I../../third_party/jsoncpp/overrides/include -I../../third_party/jsoncpp/source/include -I../../chromium/src/third_party/jsoncpp/overrides/include -I../../chromium/src/third_party/jsoncpp/source/include -I../../chromium/src/third_party/boringssl/src/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -O2 -gdwarf-2 -fvisibility=hidden -Werror -Wnewline-eof -mmacosx-version-min=10.6 -arch x86_64 -Wall -Wendif-labels -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-selector-type-mismatch -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -std=c++11 -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -fno-threadsafe-statics -fcolor-diagnostics -fno-strict-aliasing -Wobjc-missing-property-synthesis -fobjc-call-cxx-cdtors -c ../../webrtc/base/iosfilesystem.mm -o obj/webrtc/base/rtc_base.iosfilesystem.o
In file included from ../../webrtc/base/iosfilesystem.mm:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:19:21: error: expected a type
- (id)copyWithZone:(nullable NSZone *)zone;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:25:28: error: expected a type
- (id)mutableCopyWithZone:(nullable NSZone *)zone;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:32:4: error: expected a type
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder; // NS_DESIGNATED_INITIALIZER
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:53:4: error: expected a type
- (nullable id)replacementObjectForCoder:(NSCoder *)aCoder;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:54:4: error: expected a type
- (nullable id)awakeAfterUsingCoder:(NSCoder *)aDecoder NS_REPLACES_RECEIVER;
^
In file included from ../../webrtc/base/iosfilesystem.mm:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:9:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRange.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h:17:4: error: expected a type
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h:30:42: error: expected a type
+ (NSValue *)valueWithNonretainedObject:(nullable id)anObject;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h:31:12: error: unknown property attribute 'nullable'
@property (nullable, readonly) id nonretainedObjectValue;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h:33:32: error: expected a type
+ (NSValue *)valueWithPointer:(nullable const void *)pointer;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h:34:12: error: unknown property attribute 'nullable'
@property (nullable, readonly) void *pointerValue;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h:42:4: error: expected a type
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h:81:38: error: expected a type
- (NSString *)descriptionWithLocale:(nullable id)locale;
^
In file included from ../../webrtc/base/iosfilesystem.mm:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:12:23: error: expected ';' after @class
@class NSData, NSArray<ObjectType>, NSDictionary<KeyType, ObjectType>, NSCharacterSet, NSURL, NSError, NSLocale;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:12:24: error: cannot find protocol declaration for 'ObjectType'
@class NSData, NSArray<ObjectType>, NSDictionary<KeyType, ObjectType>, NSCharacterSet, NSURL, NSError, NSLocale;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:12:35: error: expected unqualified-id
@class NSData, NSArray<ObjectType>, NSDictionary<KeyType, ObjectType>, NSCharacterSet, NSURL, NSError, NSLocale;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:82:4: error: expected a type
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:109:123: error: expected a type
- (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask range:(NSRange)compareRange locale:(nullable id)locale; // locale arg used to be a dictionary pre-Leopard. We now accept NSLocale. Assumes the current locale if non-nil and non-NSLocale. nil continues to mean canonical compare, which doesn't depend on user's locale choice.
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:147:123: error: expected a type
- (NSRange)rangeOfString:(NSString *)searchString options:(NSStringCompareOptions)mask range:(NSRange)searchRange locale:(nullable NSLocale *)locale NS_AVAILABLE(10_5, 2_0);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:151:37: error: expected a type
- (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)searchSet;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[419/630] CXX obj/webrtc/base/rtc_base.httpserver.o
ninja: build stopped: subcommand failed.
ERROR: 1 null
+1 hthetiot. I'm having the same issue and am not able to find a fix.
npm install wrtc npm WARN package.json rover-project@0.0.0 No description npm WARN package.json rover-project@0.0.0 No README data \
wrtc@0.0.58 install /Users/faraaznishtar/Developer/Rover-Control/node_modules/wrtc node-pre-gyp install --fallback-to-build
ACTION Run build script /dev/null TARGET_ARCH=x64 PLATFORM=darwin CONFIGURATION=Release PYTHON=python MODULE_PATH=/Users/faraaznishtar/Developer/Rover-Control/node_modules/wrtc/build/wrtc/v0.0.58/Release/node-v14-darwin-x64 : Preparing directories ... : Cloning depot_tools ... Cloning into 'depot_tools'... POST git-upload-pack (155 bytes) POST git-upload-pack (164 bytes) remote: Counting objects: 937, done remote: Finding sources: 100% (937/937) remote: Total 937 (delta 86), reused 520 (delta 86) Receiving objects: 100% (937/937), 4.68 MiB | 1.33 MiB/s, done. Resolving deltas: 100% (86/86), done. Checking connectivity... done. : Cloning libwebrtc ... Cloning into 'libwebrtc'... POST git-upload-pack (155 bytes) POST git-upload-pack (164 bytes) remote: Counting objects: 11018, done. remote: Compressing objects: 100% (8730/8730), done. remote: Total 11018 (delta 1804), reused 9928 (delta 1651), pack-reused 0 Receiving objects: 100% (11018/11018), 18.21 MiB | 3.11 MiB/s, done. Resolving deltas: 100% (1804/1804), done. Checking connectivity... done. Checking out files: 100% (10144/10144), done. : Updating clang ... Trying to download prebuilt clang % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:09 --:--:-- 0curl: (7) Failed to connect to commondatastorage.googleapis.com port 443: Operation timed out Did not find prebuilt clang at r218707, building CMake needed to build clang; please install ERROR: 1 null
make: *\ [/dev/null] Error 255
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/faraaznishtar/Developer/Rover-Control/node_modules/wrtc/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 15.0.0
gyp ERR! command "/usr/local/Cellar/node/0.12.7/bin/node" "/Users/faraaznishtar/Developer/Rover-Control/node_modules/wrtc/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/faraaznishtar/Developer/Rover-Control/node_modules/wrtc/build/wrtc/v0.0.58/Release/node-v14-darwin-x64/wrtc.node" "--module_name=wrtc" "--module_path=/Users/faraaznishtar/Developer/Rover-Control/node_modules/wrtc/build/wrtc/v0.0.58/Release/node-v14-darwin-x64"
gyp ERR! cwd /Users/faraaznishtar/Developer/Rover-Control/node_modules/wrtc
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/0.12.7/bin/node /Users/faraaznishtar/Developer/Rover-Control/node_modules/wrtc/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/faraaznishtar/Developer/Rover-Control/node_modules/wrtc/build/wrtc/v0.0.58/Release/node-v14-darwin-x64/wrtc.node --module_name=wrtc --module_path=/Users/faraaznishtar/Developer/Rover-Control/node_modules/wrtc/build/wrtc/v0.0.58/Release/node-v14-darwin-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.
npm ERR! wrtc@0.0.58 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wrtc@0.0.58 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the wrtc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls wrtc
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /Users/faraaznishtar/Developer/Rover-Control/npm-debug.log
+1 same errors on OS X 10.11 and Xcode 7.0.1:
...
: Building libwebrtc ...
ninja: Entering directory `out/Release'
[308/630] CC obj/chromium/src/third_party/boringssl/mac-x86_64/crypto/bn/boringssl.modexp512-x86_64.[308/630] CC obj/chromium/src/third_party/boringssl/mac-x86_64/crypto/bn/boringssl.modexp512-x86_64.[314/630] CC obj/chromium/src/third_party/boringssl/mac-x86_64/crypto/modes/boringssl.aesni-gcm-x86_[315/630] CC obj/chromium/src/third_party/boringssl/mac-x86_64/crypto/modes/boringssl.aesni-gcm-x86_[420/630] OBJCXX obj/webrtc/base/rtc_base.iosfilesystem.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/webrtc/base/rtc_base.iosfilesystem.o.d -DV8_DEPRECATION_WARNINGS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -DCHROMIUM_BUILD -DCR_CLANG_REVISION=218707 -DUSE_LIBJPEG_TURBO=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1 -DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY -DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE -DDONT_EMBED_BUILD_METADATA -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_WIFI_BOOTSTRAPPING=1 -DENABLE_LOAD_COMPLETION_HACKS=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DEXPAT_RELATIVE_PATH -DWEBRTC_MODULE_UTILITY_VIDEO -DWEBRTC_POSIX -DWEBRTC_MAC -DFEATURE_ENABLE_SSL -DLOGGING=1 -DUSE_WEBRTC_DEV_BRANCH -DSSL_USE_OPENSSL -DHAVE_OPENSSL_SSL_H -DCARBON_DEPRECATED=YES -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -D_FORTIFY_SOURCE=2 -Igen -I../.. -I../../third_party/jsoncpp/overrides/include -I../../third_party/jsoncpp/source/include -I../../chromium/src/third_party/jsoncpp/overrides/include -I../../chromium/src/third_party/jsoncpp/source/include -I../../chromium/src/third_party/boringssl/src/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -O2 -gdwarf-2 -fvisibility=hidden -Werror -Wnewline-eof -mmacosx-version-min=10.6 -arch x86_64 -Wall -Wendif-labels -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-selector-type-mismatch -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -std=c++11 -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -fno-threadsafe-statics -fcolor-diagnostics -fno-strict-aliasing -Wobjc-missing-property-synthesis -fobjc-call-cxx-cdtors -c ../../webrtc/base/iosfilesystem.mm -o obj/webrtc/base/rtc_base.iosfilesystem.o
In file included from ../../webrtc/base/iosfilesystem.mm:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:19:21: error: expected a type
- (id)copyWithZone:(nullable NSZone *)zone;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:25:28: error: expected a type
- (id)mutableCopyWithZone:(nullable NSZone *)zone;
^
...
Same error here as well.
I managed to build it using XCode 6: https://github.com/js-platform/node-webrtc/issues/235#issuecomment-152447773
10.9.3, Xcode 5.0.1, have depot_tools in my path, and I get:
If I
git clone ...
andnpm install
I get an errror about not being able to change into third_party, I created that directory and then it built.