close search

Add Messaging, Voice, and Authentication to your apps with Vonage Communications APIs

Visit the Vonage API Developer Portal

OpenTok Linux SDK

OpenTok Linux SDK

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

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

System requirements

The OpenTok Linux SDK works on desktops and laptops running Debian 9 and 10 (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).

Using the SDK

Debian package

The OpenTok Linux SDK for x86_64 (adm64) architecture is available as a Debian package. For Debian we support Debian 9 (strech) and 10 (buster). We maintain our own Debian repository on Bintray. For Debian 10, follow these steps to install the packages from our repository.

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.

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> 0.019180759866058272lt;TARGET_PROPERTY:libopentok,INTERFACE_INCLUDE_DIRECTORIES>)

  # ...

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

Sample Applications

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