ubuntu 安装flash插件
sudo apt install flashplugin-installer
sudo apt install flashplugin-installer
http://exmplayer.sourceforge.net/downloads.html
#Ubuntu 20.04
sudo add-apt-repository ppa:exmplayer-dev/exmplayer-qt5
#old
sudo add-apt-repository ppa:exmplayer-dev/exmplayer
sudo apt-get update
sudo apt-get install exmplayer
安装配置 mbpfan 风扇控制器: https://github.com/linux-on-mac/mbpfan
mbpfan.service文件从github获取。
sudo apt-get install mbpfan
sudo cp mbpfan.service /etc/systemd/system/
sudo systemctl enable mbpfan.service
sudo systemctl daemon-reload
sudo systemctl start mbpfan.service
安装最新的tlp电源管理。
sudo apt install tlp
sudo systemctl enable tlp.service
sudo systemctl daemon-reload
sudo systemctl start mbpfan.service
sudo tlp start
libwebsockets-i86.a libwebsockets-x86_64.a
libwebsockets-arm32.a libwebsockets-arm64.a
macOS 10.14之后不支持交叉编译32位程序。退求其次,虚拟机装ubunut来解决问题。
ubunut 64系统,默认不带32相关头文件和库,需要
sudo apt-get install libc6-dev-i386
sudo apt-get install linux-libc-dev:i386
之后就能正确交叉编译了。
D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat
msvcbuild.bat
D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat
msvcbuild.bat gc64
需要用到 https://github.com/leetal/ios-cmake
修改common/almalloc.cpp ,屏蔽下面的代码
//#define ALIGNED_ALLOC_AVAILABLE (__STDC_VERSION__ >= 201112L || __cplusplus >= 201703L)
aligned_alloc 在ios13支持,早期的iOS会crash
let attachment = this.goblin.getAttachment('head-bb', "head")
let slot = this.goblin.findSlot("head-bb")
let arr = {}
let data = attachment.computeWorldVertices(slot, 0, attachment.worldVerticesLength, arr, 0, 2)
cc.log(arr)