Set Up Linux for C++ App Development

Development of C++ apps on Linux is supported for:

  • Amazon Fire TV
  • Android Touch
  • Android TV
  • Roku with You.i Roku Cloud
  • Samsung TV (Tizen)
  • LG TV (webOS)

Linux is one of the three available development platforms for You.i Platform. See Choose a Development Platform for a complete list of target platforms and associated development platforms.

The instructions below offer a detailed list of mandatory and optional installation components.


Before you get going, there are a few third-party tools to install.

Install DKMS for VirtualBox

If you’re using VirtualBox to run a Linux guest on a macOS or Windows host, you must install the DKMS package, which allows resolution scaling.

sudo apt-get install virtualbox-guest-dkms

Install GCC for Linux

You.i C++ projects on Linux require GCC 7.4.x to compile correctly. To verify your default version of GCC, run gcc --version. If the displayed version is 7.4.x, you can install the next dependency as you don’t need to update GCC. Otherwise, if the displayed version is not GCC 7.4.x, use apt-get to install and set GCC 7.4.x as the default version.

sudo apt-get update
sudo apt-get install build-essential software-properties-common gcc g++ -y

Confirm the installed GCC version using gcc --version.

Install GLES Rendering Libraries

Install GLES rendering libraries to render 2D and 3D graphics.

sudo apt-get install xorg-dev libglu1-mesa-dev libxml2-dev
sudo apt-get install libegl1-mesa-dev libgles2-mesa-dev

General Dependencies

Install the recommended versions of Yarn, Watchman, Node.js, CMake, and Ruby (including ruby-build).

When installed, update your PATH variable to include the newly installed packages.

Optional Third-Party Tools

The following tools are optional, but most developers need them. We suggest you install them.

Install You.i Platform

Install the You.i TV command line interface tool. Then, using your provided API key, install You.i Platform.

yarn global add youi-cli
youi-tv login    # Enter your API key or user name when prompted.
youi-tv install 6.15.0 # If asked, accept most recent version of Babel or other dependencies

Our CLI comes with a special command, youi-tv doctor, that verifies the availability and versions of third party tools on your system. Use youi-tv doctor to identify any dependency mismatches. Install any missing tools or versions and run doctor again to verify.

What’s Next

Congratulations, you’ve completed the You.i Platform installation for your development platform.

If you’re creating a Roku app, you need to configure environment variables.

Now you can build and generate your first app.