Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.43 KB

howto-build-linux.md

File metadata and controls

56 lines (40 loc) · 1.43 KB

Building Ferocious on Linux

Tested on kde Ubuntu 16.04 LTS

Overview

  • Install Qt development environment
  • Install openGL library (dependency of Qt)
  • clone this repo
  • Build inside Qt Creator

Install Qt development environment

Download latest Qt package:

download page

make the installer file executable, eg:

chmod +x qt-opensource-linux-x64-5.8.0.run

run the installer as sudo

sudo ./qt-opensource-linux-x64-5.8.0.run

Install OpenGL library

If QtCreator gives an error such as "cannot find -lGL" when you try to build project, it means that the OpenGL library is not installed. This is a fundamental dependency of Qt 5.x

sudo apt-get install libgl1-mesa-dev

clone this repo

cd ~/wherever-you-put-your-projects
git clone https://github.com/jniemann66/ferocious.git

build inside QtCreator

  • Start QtCreator
  • Choose 'Open File or Project' from the File menu
  • Open 'ferocious.pro'
  • Build the project from the Build menu

or, build from command-line

cd ferocious && path-to-qmake/qmake && make && make clean

... where "ferocious" is the path to the directory containing the ferocious source (including the ferocious.pro file for qmake)

... and path-to-qmake is the path to the directory containing qmake, which will depend on where you installed Qt and which kits you installed. For example: ~/Qt/5.10.1/gcc_64/bin