OpenTok Linux SDK

The OpenTok Linux SDK lets you use Vonage Video API-powered video sessions in apps you build for Linux.

The OpenTok Linux SDK supports applications written in C/C++.

Important Notes

  • Version 2.35.1+ of the SDK only supports systems with GLIBC 2.38 or higher on armv7 and arm64 architectures.
  • Version 2.33.0 of the SDK removes support for Debian 12.

Interoperability

Apps written with the OpenTok Linux SDK 2.35.1 can interoperate with OpenTok apps written with version 2.33+ of the OpenTok client SDKs:

  • OpenTok.js
  • OpenTok Android SDK
  • OpenTok iOS SDK
  • OpenTok Windows SDK
  • OpenTok macOS SDK
  • OpenTok Linux SDK
  • OpenTok React Native SDK

Installation

Debian package

The OpenTok Linux SDK for x86_64 (adm64) architecture is available as a Debian package. We support Debian 13 (trixie). We maintain our own Debian repository on packagecloud. Follow these steps to install the packages from our repository.

  • Add packagecloud repository:

    curl -s https://packagecloud.io/install/repositories/tokbox/debian/script.deb.sh | sudo bash
  • Install the OpenTok Linux SDK packages.

    sudo apt-get install libopentok-dev

tgz packages

The OpenTok Linux SDK for armv7 and arm64 architectures is available as a tgz package via a direct download in the OpenTok developer center. There is also a package for x86_64.

  • For x86_64 architecture, find the tgz package here.

  • For armv7 architecture, find the tgz package here.

  • For arm64 architecture, find the tgz package here.

You can download any of those packages and use them in your applications.

After extracting the packages the folder with the contents contains a handy CMakeLists.txt file the developer can use if CMake is used in the application. The developer would need to add it via the ADD_SUBDIRECTORY() command, add $<TARGET_PROPERTY:libopentok,INTERFACE_INCLUDE_DIRECTORIES> to the list of include folders with the INCLUDE_DIRECTORIES() command and finally add libopentok to the list of target link libraries.

  ADD_SUBDIRECTORY(<absolute-path-to-package-folder> ${CMAKE_CURRENT_BINARY_DIR}/libopentok)

  # ...

  INCLUDE_DIRECTORIES(<other-include-directories> $<TARGET_PROPERTY:libopentok,INTERFACE_INCLUDE_DIRECTORIES>)

  # ...

  ADD_EXECUTABLE(${PROJECT_NAME} <sources>)
  TARGET_LINK_LIBRARIES(${PROJECT_NAME} <other-libraries> libopentok)

System Requirements

The OpenTok Linux SDK works on desktops and laptops running Debian 13 (amd64). In addition to a Debian package, we provide tgz packages for development on other platforms and architectures such as armv7 and arm64. However, Vonage Support staff can only diagnose and troubleshoot issues that are reproducible on desktops or laptops running Debian (amd64).

Learning to Build

To get started building with the OpenTok Linux SDK, explore the sample applications and refer to the API reference for detailed information on available classes and methods.

Code Samples

For sample code, go to the vonage-linux-sdk-samples repo at GitHub.

Documentation & More Information

See the OpenTok Linux SDK API reference and the OpenTok developer guides.

For a list of new features and known issues, see the release notes.