wechat_web_devtools icon indicating copy to clipboard operation
wechat_web_devtools copied to clipboard

编译wxml文件错误

Open pz9042 opened this issue 6 years ago • 6 comments

操作系统:Ubuntu 18.04 wine:wine-4.0.2

报错信息:/home/pengzhen/.config/wechat_web_devtools/WeappVendor/wcc.exe: MZ����@���: not found /home/pengzhen/.config/wechat_web_devtools/WeappVendor/wcc.exe: Syntax error: word unexpected (expecting ")")

wine wcc.exe 
Wechat WXML Compiler, version v0.5vv_20190312_syb_scopedata
Usage: Z:\home\pengzhen\.config\wechat_web_devtools\WeappVendor\wcc.exe [-d] [-o OUTPUT] [-xc XComponentDefine] [-om XComponentDefine] [-cb [callback.js...]] <FILES... | -s <SINGLE_FILE>
  Options:
  -d: output code for debug
  -o: output destination (default stdout)
 -xc: output simplified code for custom component
 -cc: output compelete code for custom component
  -s: read from stdin
 -ds: insert debug wxs info
 -cb: add life cycle callback

~/.config/wechat_web_devtools/WeappVendor文件夹下,文件正常。安装wine是按照winehq官网安装的。 宿主目录下,有文件夹 .wine,没有.wine32

pz9042 avatar Aug 29 '19 02:08 pz9042

I experienced this issue as well

otboss avatar Aug 30 '19 08:08 otboss

I experienced this issue as well

I have give up wine, and use virtualBox.

pz9042 avatar Aug 30 '19 09:08 pz9042

Greetings, I found the solution, what worked for me was the following:

sudo apt-get install wine-binfmt sudo update-binfmts --import /usr/share/binfmts/wine

dpkg --add-architecture i386
&& wget -nc https://dl.winehq.org/wine-builds/winehq.key
&& apt-key add winehq.key
&& apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
&& apt-get update
&& apt-get install -y --no-install-recommends --allow-unauthenticated winehq-stable

This solution was found in the wine section of the readme file

otboss avatar Sep 02 '19 13:09 otboss

Greetings, I found the solution, what worked for me was the following:

sudo apt-get install wine-binfmt sudo update-binfmts --import /usr/share/binfmts/wine

dpkg --add-architecture i386 && wget -nc https://dl.winehq.org/wine-builds/winehq.key && apt-key add winehq.key && apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' && apt-get update && apt-get install -y --no-install-recommends --allow-unauthenticated winehq-stable

This solution was found in the wine section of the readme file

I deployed it according to your configuration, but there will still be such a bug. :(

UZIhuhuhu avatar Sep 29 '19 13:09 UZIhuhuhu

ubutntu 16.04 wine-4.19 但是不能确定,这条命令有没有影响 WINEARCH=win64 WINEPREFIX=~/.wine winecfg

不知道是不是字体问题,我运行了以下步骤之后就正常了 下载https://github.com/kakkoyun/linux.files/raw/master/fonts/Consolas.ttf 至/usr/local/share/fonts or ~/.fonts sudo fc-cache -f重建字体缓存 确认字体安装成功 sudo fc-list|grep Consol .fonts/Consolas.ttf: Consolas:style=Regular 重启微信开发者工具

YUANDLI avatar Nov 15 '19 04:11 YUANDLI

问候,我找到了解决方案,对我有用的是:

sudo apt-get install wine-binfmt sudo update-binfmts --import / usr / share / binfmts / wine

dpkg --add-architecture i386 && wget -nc https://dl.winehq.org/wine-builds/winehq.key && apt-key添加winehq.key && apt-add-repository'deb https:// dl。 winehq.org/wine-builds/ubuntu/bionic main' && apt-get update && apt-get install -y --no-install-recommends --allow-unauthenticated winehq-stable

在自述文件的wine部分中找到了此解决方案

thank you very much! 此答案解决了我的问题。按答案执行下来,重新./bin/wxdt install ,再./bin/wxdt 运行。刚打开wine会提示下载一些包,安装完后就不报这个编译错误了。我的系统是ubuntu20.04 wine版本是5.02。

Fofade avatar Nov 09 '20 10:11 Fofade