1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
qTox/INSTALL.md

146 lines
5.7 KiB
Markdown
Raw Normal View History

2014-09-03 20:59:00 +08:00
##Dependencies
2014-09-03 18:54:41 +08:00
| Name | Version | Modules |
|--------------|-------------|-------------------------------- |
| Qt | >= 5.2.0 | core, gui, network, widget, xml |
| GCC/MinGW | >= 4.6 | C++11 enabled |
| Tox Core | most recent | core, av |
| OpenCV | >= 2.4.9 | core, highgui |
| OpenAL Soft | >= 1.16.0 | |
2014-09-03 20:59:00 +08:00
##Windows
2014-09-03 18:54:41 +08:00
2014-09-03 20:59:00 +08:00
###Qt
2014-09-03 18:54:41 +08:00
Download the Qt online installer for Windows from [qt-project.org](http://qt-project.org/downloads).
While installation you have to assemble your Qt toolchain. Take the most recent version of Qt compiled with MinGW.
Although the installer provides its own bundled MinGW compiler Toolchain its recommend installing it separately because Qt is missing MSYS which is needed to compile and install OpenCV and OpenAL. Thus you can - if needed - deselect the tab "Tools".
The following steps assume that Qt is installed at "C:\Qt". If you decided to choose another location, replace corresponding parts.
2014-09-03 18:54:41 +08:00
2014-09-03 20:59:00 +08:00
###MinGW
2014-09-03 18:54:41 +08:00
Download the MinGW installer for Windows from [sourceforge.net](http://sourceforge.net/projects/mingw/files/Installer/).
Make sure to install MSYS (a set of Unix tools for Windows).
The following steps assume that MinGW is installed at "C:\MinGW". If you decided to choose another location, replace corresponding parts.
2014-09-03 18:54:41 +08:00
###Setting up Path
2014-09-03 18:54:41 +08:00
Add MinGW/MSYS binaries to the system path to make them globally accessible.
Open Control Panel -> System and Security -> System -> Advanced system settings -> Environment Variables...
In the second box search for the PATH variable and press Edit...
The input box "Variable value:" should already contain some directories. Each directory is separated with a semicolon.
Extend the input box by adding ";C:\MinGW\bin;C:\MinGW\msys\1.0\bin". The very first semicolon must only be added if it is missing.
2014-09-03 18:54:41 +08:00
2014-09-03 20:59:00 +08:00
###Cloning the Repository
2014-09-03 18:54:41 +08:00
Clone the repository (https://github.com/tux3/qTox.git) with your preferred Git client. [SmartGit](http://www.syntevo.com/smartgit/) is very nice for this task.
The following steps assume that you cloned the repository at "C:\qTox". If you decided to choose another location, replace corresponding parts.
2014-09-03 18:54:41 +08:00
2014-09-03 20:59:00 +08:00
###Tox Core
2014-09-03 18:54:41 +08:00
2014-09-03 19:02:38 +08:00
[jenkins.libtoxcore.so](http://jenkins.libtoxcore.so/job/libtoxcore-win32-i686/lastSuccessfulBuild/artifact/libtoxcore-win32-i686.zip)
2014-09-03 19:37:29 +08:00
provides a prebuild package of Tox Core. Download this package and extract its content to "C:\qTox\libs". You may have to create the directory "libs".
If you prefer to compile Tox Core on your own follow the instructions at https://github.com/irungentoo/toxcore/blob/master/INSTALL.md#windows
2014-09-03 20:59:00 +08:00
###OpenCV
2014-09-03 19:37:29 +08:00
Unfortunately there are no prebuild packages for OpenCV compiled with MinGW. Thus, you have to create your own.
First of all download and install the most recent version of CMake from
[cmake.org](http://www.cmake.org/cmake/resources/software.html).
Afterwards download the source archive of OpenCV from [http://opencv.org](http://opencv.org/downloads.html). It's recommended to download the Linux/Mac package because the Windows package is bloated with useless binaries. The Linux/Mac package only contains the sources and works perfectly on Windows.
Extract the content of the source archive to "C:\qTox\libs". Furthermore, create a new directory named "opencv-build" in "C:\qTox\libs".
Now you should have the two directories "opencv-x.y.z" where x.y.z is the version of OpenCV and "opencv-build" inside your "C:\qTox\libs" directory.
Run CMake (cmake-gui) and set up the input boxes "Where is the source code:" and "Where to build the binaries" with "C:\qTox\libs\opencv-x.y.z" and "C:\qTox\libs\opencv-build". Press configure and choose "MSYS Makefiles" in the drop down menu and "Use default native compilers". Press "Finish" to start configuration. TODO
2014-09-03 19:37:29 +08:00
2014-09-03 20:59:00 +08:00
###OpenAL Soft
2014-09-03 19:37:29 +08:00
2014-09-03 18:54:41 +08:00
2014-09-03 20:59:00 +08:00
##Linux
2014-09-03 20:40:18 +08:00
Most of the dependencies should be available through your package manger.
2014-09-03 20:22:00 +08:00
2014-09-04 19:04:53 +08:00
###Cloning the Repository
2014-09-03 20:22:00 +08:00
In order to clone the qTox repository you need Git.
Debian:
```bash
sudo apt-get install git
```
Ubuntu:
```bash
sudo apt-get install git
```
Arch Linux:
```bash
sudo pacman -S git
```
Fedora:
```bash
yum install git
```
2014-09-04 19:04:53 +08:00
Afterwards open a new Terminal, change to a directory of your choice and clone the repository:
2014-09-03 20:40:18 +08:00
```bash
2014-09-04 19:04:53 +08:00
cd /home/user/qTox
2014-09-03 20:40:18 +08:00
git clone https://github.com/tux3/qTox.git qTox
```
The following steps assumes that you cloned the repository at "/home/user/qTox". If you decided to choose another location, replace corresponding parts.
2014-09-03 20:59:00 +08:00
###GCC, Qt, OpenCV and OpanAL Soft
2014-09-03 20:22:00 +08:00
Debian:
```bash
2014-09-03 20:52:09 +08:00
sudo apt-get install build-essential qt5-qmake qt5-default libopenal-dev libopencv-dev
2014-09-03 20:22:00 +08:00
```
Ubuntu:
```bash
2014-09-03 20:52:09 +08:00
sudo apt-get install build-essential qt5-qmake qt5-default libopenal-dev libopencv-dev
2014-09-03 20:22:00 +08:00
```
Arch Linux:
```bash
2014-09-03 20:52:09 +08:00
sudo pacman -S base-devel qt5 opencv openal
2014-09-03 20:22:00 +08:00
```
Fedora:
```bash
yum groupinstall "Development Tools"
2014-09-03 20:52:09 +08:00
yum install qt-devel qt-doc qt-creator opencv-devel openal-soft-devel
2014-09-03 20:22:00 +08:00
```
2014-09-03 20:59:00 +08:00
###Tox Core
2014-09-03 20:22:00 +08:00
First of all install the dependencies of Tox Core.
Debian:
```bash
sudo apt-get install libtool autotools-dev automake checkinstall check yasm libopus-dev libvpx-dev
```
Ubuntu:
```bash
sudo apt-get install libtool autotools-dev automake checkinstall check yasm libopus-dev libvpx-dev
```
Arch Linux: (Arch Linux provides the package "tox-git" in AUR)
```bash
sudo pacman -S yasm opus vpx
```
Fedora:
```bash
yum install libtool autoconf automake check check-devel
```
2014-09-03 20:40:18 +08:00
2014-09-03 20:22:00 +08:00
Now you can either follow the instructions at https://github.com/irungentoo/toxcore/blob/master/INSTALL.md#unix or use the "bootstrap.sh" script located at "/home/user/qTox".
2014-09-03 20:40:18 +08:00
The script will automatically download and install Tox Core and libsodium to "/home/user/qTox/libs":
```bash
2014-09-03 20:56:45 +08:00
cd /home/user/qTox
2014-09-03 20:40:18 +08:00
./bootstrap.sh # use -h or --help for more information
```