Qt for WebAssembly : Application exit (SharedArrayBuffer is not defined)

用Qt开发 WebAssembly,放到nginx里面,用127.0.0.1访问没问题,用局域网IP访问就提示如下:

总结了以下两种解决办法:

        ①:配置 nginx http 头 [ 支持:WebAssembly Qt (single-threaded) ]

        ②:配置 nginx http 头, 给 nginx 配置证书,使用 https [ WebAssembly Qt (single-threaded),WebAssembly Qt (multi-threaded): ]

░░ Subject: Xcale.service 单元已开始启动 ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ Xcale.service 单元已开始启动。 3月 07 06:21:43 orangepi3b chvt_expect.sh[2834]: spawn /usr/bin/sudo /bin/chvt 1 3月 07 06:21:43 orangepi3b chvt_expect.sh[2834]: couldn't execute "/usr/bin/sudo /bin/chvt 1": no such file or directory 3月 07 06:21:43 orangepi3b chvt_expect.sh[2834]: while executing 3月 07 06:21:43 orangepi3b chvt_expect.sh[2834]: "spawn $command" 3月 07 06:21:43 orangepi3b chvt_expect.sh[2834]: (file "/home/orangepi/Desktop/Up/build-Xcale-Aarch64-Debug/chvt_expect.sh" line 11) 3月 07 06:21:43 orangepi3b systemd[1]: Xcale.service: Control process exited, code=exited, status=1/FAILURE ░░ Subject: Unit process exited ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ An ExecStartPre= process belonging to unit Xcale.service has exited. ░░ ░░ The process' exit code is 'exited' and its exit status is 1. 3月 07 06:21:43 orangepi3b echo[2838]: [30B blob data] 3月 07 06:21:43 orangepi3b systemd[1]: Xcale.service: Failed with result 'exit-code'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ The unit Xcale.service has entered the 'failed' state with result 'exit-code'. 3月 07 06:21:43 orangepi3b systemd[1]: Failed to start Qt Application Xcale. ░░ Subject: Xcale.service 单元已失败 ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ Xcale.service 单元已失败。 ░░ ░░ 结果为“failed”。
最新发布
03-08
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值