logo
Video Call
On this page

Integrate the SDK

2024-05-06

Prepare the Environment

Before integrating the ZEGO Express SDK, ensure that your development environment meets the following requirements:

  • macOS 11.0 or above.
  • Xcode 15 or above installed.
  • (Optional) CMake installed.
  • (Optional) Qt version 5.9 to 5.15 installed. For more information, please refer to Getting Started with Qt.
  • External devices that support audio and video functions, such as microphones and cameras.

Integrate the SDK

(Optional) Create a New Project

  1. Open Qt Creator and select the "File > New > Project" menu.

  2. In the New Project window, select "Qt Widgets Application" as the project type, enter the project name, select the project storage path, and click "OK".

  3. Choose qmake for compilation and create the project.

Import ZEGO Express SDK

  1. Please download the ZEGO Express SDK from the Download page.

  2. Extract the SDK and copy the "ZegoExpressEngine.xcframework" file from the "release/Library" directory to your project.

Warning

If your project does not support XCFramework, you can treat "ZegoExpressEngine.xcframework" as a folder and directly use the ".dylib" dynamic library and header files inside.

Set Project Properties

Edit the project pro file and add the following content to the pro file:

INCLUDEPATH += $$PWD/../libs/ZegoExpress/mac/ZegoExpressEngine.xcframework/macos-arm64_x86_64/Headers
DEPENDPATH  += $$PWD/../libs/ZegoExpress/mac/ZegoExpressEngine.xcframework/macos-arm64_x86_64/Headers
LIBS += -L$$PWD/../libs/ZegoExpress/mac/ZegoExpressEngine.xcframework/macos-arm64_x86_64/ -lZegoExpressEngine

How to reduce the app size of integrating Native SDK?

Previous

Example Source Code Running Guide

Next

Implementing Video Call

On this page

Back to top