Hi,
I am newbie using webrtc. When I build the Webrtc, I got a linking problem.
The build command is below:
ninja -C out/Default
The build error context:
ninja: Entering directory `out/Default'
[263/2512] LINK ./genmacro
FAILED: genmacro
TOOL_VERSION=1494398103 ../../build/toolchain/mac/linker_driver.py ../../third_party/llvm-build/Release+Asserts/bin/clang++ -stdlib=libc++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.9 -Wl,-ObjC -Wl,-pie -Werror -o "./genmacro" -Wl,-filelist,"./genmacro.rsp"
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Traceback (most recent call last):
File "../../build/toolchain/mac/linker_driver.py", line 229, in <module>
Main(sys.argv)
File "../../build/toolchain/mac/linker_driver.py", line 79, in Main
subprocess.check_call(compiler_driver_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['../../third_party/llvm-build/Release+Asserts/bin/clang++', '-stdlib=libc++', '-arch', 'x86_64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk', '-mmacosx-version-min=10.9', '-Wl,-ObjC', '-Wl,-pie', '-Werror', '-o', './genmacro', '-Wl,-filelist,./genmacro.rsp']' returned non-zero exit status 1
The c++ lib is installed in my system. What's the problem?
Thanks for you help.
Henry.