mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:51:20 +02:00
Create ubuntu specific documentation based on https://forums.highfidelity.com/t/how-to-compile-a-stable-build-of-the-linux-server-stack-on-ubuntu-16-04-lts/11528/16 and tested yesterday.
This commit is contained in:
parent
b35d696077
commit
f692a2e4bf
1 changed files with 90 additions and 1 deletions
|
@ -1,7 +1,96 @@
|
||||||
|
# Linux build guide
|
||||||
|
|
||||||
Please read the [general build guide](BUILD.md) for information on dependencies required for all platforms. Only Linux specific instructions are found in this file.
|
Please read the [general build guide](BUILD.md) for information on dependencies required for all platforms. Only Linux specific instructions are found in this file.
|
||||||
|
|
||||||
### Qt5 Dependencies
|
## Qt5 Dependencies
|
||||||
|
|
||||||
Should you choose not to install Qt5 via a package manager that handles dependencies for you, you may be missing some Qt5 dependencies. On Ubuntu, for example, the following additional packages are required:
|
Should you choose not to install Qt5 via a package manager that handles dependencies for you, you may be missing some Qt5 dependencies. On Ubuntu, for example, the following additional packages are required:
|
||||||
|
|
||||||
libasound2 libxmu-dev libxi-dev freeglut3-dev libasound2-dev libjack0 libjack-dev libxrandr-dev libudev-dev libssl-dev
|
libasound2 libxmu-dev libxi-dev freeglut3-dev libasound2-dev libjack0 libjack-dev libxrandr-dev libudev-dev libssl-dev
|
||||||
|
|
||||||
|
## Ubuntu 16.04 specific build guide
|
||||||
|
|
||||||
|
### Prepare environment
|
||||||
|
|
||||||
|
Install qt:
|
||||||
|
```bash
|
||||||
|
wget http://debian.highfidelity.com/pool/h/hi/hifi-qt5.6.1_5.6.1_amd64.deb
|
||||||
|
sudo dpkg -i hifi-qt5.6.1_5.6.1_amd64.deb
|
||||||
|
```
|
||||||
|
|
||||||
|
Install build dependencies:
|
||||||
|
```bash
|
||||||
|
sudo apt-get install libasound2 libxmu-dev libxi-dev freeglut3-dev libasound2-dev libjack0 libjack-dev libxrandr-dev libudev-dev libssl-dev
|
||||||
|
```
|
||||||
|
|
||||||
|
To compile interface in a server you must install:
|
||||||
|
```bash
|
||||||
|
sudo apt -y install libpulse0 libnss3 libnspr4 libfontconfig1 libxcursor1 libxcomposite1 libxtst6 libxslt1.1
|
||||||
|
```
|
||||||
|
|
||||||
|
Install build tools:
|
||||||
|
```bash
|
||||||
|
sudo apt install cmake
|
||||||
|
```
|
||||||
|
|
||||||
|
### Get code and checkout the tag you need
|
||||||
|
|
||||||
|
Clone this repository:
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/highfidelity/hifi.git
|
||||||
|
```
|
||||||
|
|
||||||
|
To compile a RELEASE version checkout the tag you need getting a list of all tags:
|
||||||
|
```bash
|
||||||
|
git fetch -a
|
||||||
|
git tags
|
||||||
|
```
|
||||||
|
|
||||||
|
Then checkout last tag with:
|
||||||
|
```bash
|
||||||
|
git checkout tags/RELEASE-6819
|
||||||
|
```
|
||||||
|
|
||||||
|
Or go to the highfidelity download page (https://highfidelity.com/download) to get the release version. For example, if there is a BETA 6731 type:
|
||||||
|
```bash
|
||||||
|
git checkout tags/RELEASE-6731
|
||||||
|
```
|
||||||
|
|
||||||
|
### Compiling
|
||||||
|
|
||||||
|
Create the build directory:
|
||||||
|
```bash
|
||||||
|
mkdir -p hifi/build
|
||||||
|
cd hifi/build
|
||||||
|
```
|
||||||
|
|
||||||
|
Prepare makefiles:
|
||||||
|
```bash
|
||||||
|
cmake -DQT_CMAKE_PREFIX_PATH=/usr/local/Qt5.6.1/5.6/gcc_64/lib/cmake ..
|
||||||
|
```
|
||||||
|
|
||||||
|
Start compilation and get a cup of coffee:
|
||||||
|
```bash
|
||||||
|
make domain-server assignment-client interface
|
||||||
|
```
|
||||||
|
|
||||||
|
In a server does not make sense to compile interface
|
||||||
|
|
||||||
|
### Running the software
|
||||||
|
|
||||||
|
Running domain server:
|
||||||
|
```bash
|
||||||
|
./domain-server/domain-server
|
||||||
|
```
|
||||||
|
|
||||||
|
Running assignment client:
|
||||||
|
```bash
|
||||||
|
./assignment-client/assignment-client -n 6
|
||||||
|
```
|
||||||
|
|
||||||
|
Running interface:
|
||||||
|
```bash
|
||||||
|
./interface/interface
|
||||||
|
```
|
||||||
|
|
||||||
|
Go to localhost in running interface.
|
||||||
|
|
Loading…
Reference in a new issue