@rem set python3.8
set path=C:\Python38-32;C:\Python38-32\Scripts;%path%
set PYTHONPATH=C:\Python38-32\DLLs;c:\Python38-32\Lib;
@rem set git
set path=C:\ProgramData\Git\cmd;%path%
@rem set nodejs
set path=C:\nodejs;%path%
@start visual 2019
"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2019.lnk"
import chardet
#chardet.detect(fbs)
#{'encoding': 'utf-8', 'confidence': 0.99, 'language': ''}
import codecs
def convertfile(fn,dc='866',ec='UTF-16'): #866 855 russian
fstr = ''
with open(fn,'rb') as fin:
fstr = fin.read()
ustr = fstr.decode(dc)
with codecs.open(fn,'wb',ec) as fout:
fout.write(ustr)
def get_conv_files(wc4819_log):
with open(wc4819_log,'rb') as fin:
lns = fin.readlines()
wlns = [ln for ln in lns if b'warning C4819:' in ln]
fn_pat = re.compile(b'(?s)(.:.*?)[\(:]')
files = []
for ln in wlns:
if fn_pat.search(ln):
fn = fn_pat.search(ln).groups()[0].strip().decode()
if fn not in files:
files.append(fn)
return files
(3.1)无论是Release|Debug 或 win32|x64 ,在全新生成所有项目产生的信息中,全选复制保存为 C4819.txt文件
fs= get_conv_files(C4819.txt文件路径)
for f in fs:
convertfile(f,'utf8')
D:\B\src\frida\frida-core\src\fruity\fruity-host-session.vala
throw new Error.INVALID_ARGUMENT ("Unable to find app with bundle identifier '%s'", program);
D:\src\frida\frida-core\src\fruity\keyed-archive.vala
throw new Error.PROTOCOL ("Expected dictionary to contain “%s”", key);
A full log can be found at /home/lm/frida/build/tmp-android-arm/frida-gum/meson-logs/meson-log.txt make[1]: *** [Makefile.linux.mk:111:build/frida-android-arm/lib/pkgconfig/frida-gum-1.0.pc] 错误 1 make[1]: 离开目录“/home/lm/frida” make: *** [Makefile:4:core-android-arm] 错误 2