AgoraIO-Extensions / Electron-SDK

Electron wrapper around the Agora RTC SDKs for Windows/macOS
MIT License
158 stars 74 forks source link

Issue while running npm install #639

Closed tapasya closed 2 years ago

tapasya commented 2 years ago

npm ERR! code 1 npm ERR! path //node_modules/agora-electron-sdk npm ERR! command failed npm ERR! command sh -c just install npm ERR! [13:16:00] ■ started 'install' npm ERR! [13:16:00] ■ switching to ia32 npm ERR! [13:16:00] x no macos lib specified npm ERR! [13:16:00] x Error detected while running 'install' npm ERR! [13:16:00] x ------------------------------------ npm ERR! [13:16:00] x Error: no macos lib specified npm ERR! at //node_modules/agora-electron-sdk/scripts/synclib.js:190:23 npm ERR! at new Promise ()

below is the config in package.json "agora_electron": { "prebuilt": false, "electron_version": "16.0.6", "platform": "darwin" }

tapasya commented 2 years ago

after adding below to agora_electron "lib_sdk_mac": "https://download.agora.io/sdk/release/Agora_Native_SDK_for_Mac_v3_6_0_1_FULL.zip"

installation fails with below error

1690 error Undefined symbols for architecture x86_64: 1690 error "_main", referenced from: 1690 error implicit entry/start for main executable 1690 error ld: symbol(s) not found for architecture x86_64 1690 error clang: error: linker command failed with exit code 1 (use -v to see invocation) 1690 error make: *** [Release/VideoSource] Error 1

RoJoHub commented 2 years ago

At present, the refactored version of agora-electron-sdk has been launched, which is suitable for Electron 5~16 (to laterst) version

It should be noted that this version is currently an engineering version,

Install on NPM: agora-electron-sdk@3.5.0-rc.3-iris.1123-build.1 Example(Demo): https://github.com/AgoraIO-Community/Agora-Electron-Quickstart/tree/master/Agora-Electron-API-Example-Iris Preview Documentation: https://docs-preprod.agora.io/cn/Video/API%20Reference/electron/v3.4.0/API/rtc_api_overview.html

tapasya commented 2 years ago

with agora-electron-sdk@3.5.0-rc.3-iris.1123-build.1 I get the below error

ERROR in node_modules/agora-electron-sdk/types/Renderer/IRender.d.ts:3:28 - error

ERROR in node_modules/agora-electron-sdk/types/Renderer/IRender.d.ts:3:28 - error TS1149: File name '//node_modules/agora-electron-sdk/types/Renderer/type.d.ts' differs from already included file name '//node_modules/agora-electron-sdk/types/renderer/type.d.ts' only in casing.

import { VideoFrame } from "./type";

also can you share an angular electron example ?

plutoless commented 2 years ago

@tapasya we would suggest you to use prebuilt: true to download a prebuilt instead of building everything from scratch yourself.

RoJoHub commented 2 years ago

We fixed this on the alpha release on January 12th Please use npm install agora-electron-sdk@3.5.0-rc.3-iris.112-build.1