electron10版本同时集成trtc、artc

  1. 安装32 ele 10.2.0
  2. 安装trtc lastest
  3. cd trtc-sdk:npm run install -- arch=ia32 64位会自动替换成32
  4. 安装剩余ffi等 npm install -s --arch=ia32
  5. cnpm install agora-electron-sdk -s
  6. npm rebuild agora-electron-sdk
    不rebuild会有上下文感知错误卡死,即使app设置了false也一样
  7. npm start

打包:

  1. json
  2. npm cache clean --force
  3. cnpm install --arch=ia32 electron@10.2.0
  4. cnpm install
  5. cd trtc-sdk:npm run install -- arch=ia32
  6. npm start:
    agora_node_ext.node is not a valid Win32 application.
  7. cnpm rebuild
    agora_node_ext.node is not a valid Win32 application.

/////////

  1. json
  2. npm cache clean --force
  3. cnpm install --arch=ia32 electron@10.2.0
  4. cnpm install -s --arch=ia32
  5. cd trtc-sdk:npm run install -- arch=ia32
  6. npm start:
    agora_node_ext.node is not a valid Win32 application.
  7. cnpm rebuild
    agora_node_ext.node is not a valid Win32 application.

////////////
集成:

  1. cnpm install --arch=ia32
  2. cd trtc-sdk:npm run install -- arch=ia32
  3. npm start
    打包:
  4. 删除 dev “agora-electron-sdk”: “latest”
  5. npm run dist
  6. npm start 找不到。 不删除又package.json: The name of the file cannot be resolved by the system.

///////////最终:

  1. npm cache clean -f
  2. npm install agora-electron-sdk@3.4.2 不然出现上一条错误 ,详见下注解1
  3. cnpm install --arch=ia32
  4. cd trtc-sdk:npm run install -- arch=ia32
  5. 删除lock
  6. npm start
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值