UBUNTU Install

The follow is a minimal set of install instructions for installing NGL with Ubuntu (tested on 20 LTS) and using vcpkg for extra libs. You will also need to install Qt 5.x and add it to your path.

Getting Started

The following libs needs to be installed using apt

sudo apt-get install -y curl build-essential mesa-common-dev  libxinerama-dev  libglu1-mesa-dev  libxcursor-dev libxrandr-dev libxrandr-dev libxi-dev libxxf86vm-dev

Install vcpkg

vcpkg is a tool which allows you to install libraries under windows. I use this to help install the required libraries for NGL. Follow the install instructions here https://github.com/microsoft/vcpkg. It is important to install this in the root of your home directory to ensure this is correct open terminal and type cd ~ before running the commands to install vcpkg. NGL will use $HOME/vcpkg in all the build scripts to ensure things are in the correct locations.

Once vcpkg is installed the following libraries need to be added.

cd vcpkg
.\vcpkg install gtest
.\vcpkg install glm
.\vcpkg install glfw3

Setting up pkg-config

To setup the vcpkg tools for working with pkg-config add the following to the .bashrc

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/vcpkg/installed/x64-linux/lib

NGL should now buld.

Next