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 Engine Cloud
  • Samsung TV (Tizen)
  • LG TV (webOS)

Linux is one of the three available development platforms for You.i Engine One. See Install for a complete list of target platforms and associated development platforms.

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

Prerequisites

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 7.4.x for Linux

You.i Engine 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.

  • React Native CLI
  • VLC is needed only if you’re using a video player in a You.i Engine C++ project.

Install You.i Engine One

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

yarn global add youi-cli      
youi-tv login    # Enter your API key or user name when prompted.
youi-tv install 6.7.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 installed the necessary packages and You.i Engine One for your Linux development platform.

Now you can build and generate your first app.