owt-client-native
owt-client-native copied to clipboard
build-win.py cannot find lib.exe
Following error reported while running build-win.py on Windows 10 1909.
'lib.exe' is not recognized as an internal or external command
你好 我也遇到这个问题 你怎么解决的
I also get the following error (Windows 10):
FileNotFoundError: [WinError 2] The system cannot find the file specified
It happens in the build-win.py in this part
def _mergelibs(arch, scheme, ssl_root):
out_lib = OUT_LIB % {'scheme': scheme}
if os.path.exists(os.path.join(OUT_PATH, out_lib)):
os.remove(os.path.join(OUT_PATH, out_lib))
libs = _getlibs(arch, scheme, ssl_root)
command = ['lib.exe', '/OUT:out\%s' % out_lib]
command.extend(libs)
subprocess.call(command, cwd=HOME_PATH)
A workaround is using Visual Studio Developer Command Prompt.
I managed to work around this by adding the path to lib.exe to environment variables. So now I manage to get the owt-debug.lib.
Of course I still couldn't use it because of LNK2019 dependencie problems (socket.io, openssl, intel msdk...).
For example, right now I am trying to solve:
owt-debug.lib(time_utils.obj) : error LNK2019: unresolved external symbol __imp_timeGetTime referenced in function "__int64 __cdecl rtc::SystemTimeNanos(void)" (?SystemTimeNanos@rtc@@YA_JXZ)