owt-client-native icon indicating copy to clipboard operation
owt-client-native copied to clipboard

build-win.py cannot find lib.exe

Open jianjunz opened this issue 5 years ago • 4 comments

Following error reported while running build-win.py on Windows 10 1909.

'lib.exe' is not recognized as an internal or external command

jianjunz avatar Jan 15 '20 02:01 jianjunz

你好 我也遇到这个问题 你怎么解决的

liubin123456 avatar Apr 09 '20 10:04 liubin123456

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)

LordTrololo avatar Jan 15 '22 11:01 LordTrololo

A workaround is using Visual Studio Developer Command Prompt.

jianjunz avatar Jan 16 '22 02:01 jianjunz

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)

LordTrololo avatar Jan 17 '22 09:01 LordTrololo