wechat-devtools icon indicating copy to clipboard operation
wechat-devtools copied to clipboard

deepin使用docker构建项目有问题,麻烦大佬帮我看一下问题出在哪里。

Open caoyuhub opened this issue 5 years ago • 5 comments

dockerfile文件内容

FROM ubuntu:16.04 MAINTAINER xxx ENV DISPLAY=unix$DISPLAY ENV LANG=C.UTF-8

RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list RUN apt-get clean RUN apt-get update

RUN apt-get install -y libglib2.0-dev RUN apt-get install -y libnss3 RUN apt-get install -y libx11-dev RUN apt-get install -y libx11-xcb1 RUN apt-get install -y libxcomposite1 RUN apt-get install -y libxcursor1 RUN apt-get install -y libxdamage1 RUN apt-get install -y libxext-dev RUN apt-get install -y libxi-dev RUN apt-get install -y libxtst-dev RUN apt-get install -y libcups2-dev RUN apt-get install -y libxss1 RUN apt-get install -y libxrandr2 RUN apt-get install -y libasound2-dev RUN apt-get install -y libatk1.0-0 RUN apt-get install -y libpango-1.0-0 RUN apt-get install -y libcairo2-dev RUN apt-get install -y libatspi2.0-dev RUN apt-get install -y libgtk2.0-dev RUN apt-get install -y libgtk-3-dev

ADD wechat-devtools-1.03.2006090.tar.gz /wechat-devtools ADD GBK.ttf /usr/share/fonts/wechat/gbk.ttf

CMD "/etc/init.d/dbus start" ENTRYPOINT ["/wechat-devtools/bin/wechat-devtools"]

跑起来过后 一直卡在这里 image

日志一直报错: [1:112:0828/100533.547012:ERROR:object_proxy.cc(619)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files

是不是容器里面的DBus版本不对哦?

caoyuhub avatar Aug 28 '20 10:08 caoyuhub

我吧Ubuntu的镜像换成最新的,可以打开项目。 但是模拟器和真机测试都不能用,预览可以用。

caoyuhub avatar Aug 28 '20 10:08 caoyuhub

根据#13的回报,和我估计的情况,应该可能和libstdc++版本有关,我提供的release版本里,native module的libstdc++版本为glibcxx_3.4.26。建议你检查一下docker内部的libstdc++的版本。如果版本不相符的话,node原生模块的加载会报错,导致vseditor加载失败,右侧的编辑界面就出不来了。这个问题的解决方案有两个,一个是更新docker里面的libstdc++,但这个库是非常基础的c++运行时,单独更新这玩意不太现实。另一个是找一个新一点的docker系统版本,16年的ubuntu可能的确会c++版本比较老。此外还有一个方法就是在docker内部的构造过程中调用一次tools/rebuild_node_modules命令,强制在docker内部重新使用npm和gyp编译全新的原生模块。

dragonation avatar Aug 28 '20 14:08 dragonation

大佬快弄一个docker版本的出来吧 我实在是弄不出来了。

caoyuhub avatar Aug 31 '20 10:08 caoyuhub

大佬快弄一个docker版本的出来吧 我实在是弄不出来了。

正在弄,应该很快会发布,这两天会先发布1.03.2008270版本

dragonation avatar Sep 04 '20 08:09 dragonation

我看了一下你报的问题,你卡在了缺少upower支持上,一个检测电源用量的包,用来显示模拟器中的剩余电量。

dragonation avatar Sep 05 '20 13:09 dragonation