mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 04:28:49 +03:00
Update readme and travis for lmdb
This commit is contained in:
parent
8d05073547
commit
bda856d7ae
3 changed files with 29 additions and 14 deletions
|
@ -3,4 +3,4 @@
|
||||||
sudo add-apt-repository -y ppa:beineri/opt-qt58-trusty
|
sudo add-apt-repository -y ppa:beineri/opt-qt58-trusty
|
||||||
sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
|
sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
|
||||||
sudo apt-get update -qq
|
sudo apt-get update -qq
|
||||||
sudo apt-get install -qq -y qt58base qt58tools cmake
|
sudo apt-get install -qq -y qt58base qt58tools cmake liblmdb-dev
|
||||||
|
|
|
@ -20,7 +20,7 @@ matrix:
|
||||||
before_install:
|
before_install:
|
||||||
- if [ $TRAVIS_OS_NAME == linux ]; then ./.ci/linux/gtest.sh; fi
|
- if [ $TRAVIS_OS_NAME == linux ]; then ./.ci/linux/gtest.sh; fi
|
||||||
install:
|
install:
|
||||||
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install qt5; fi
|
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install qt5 lmdb; fi
|
||||||
- if [ $TRAVIS_OS_NAME == osx ]; then export CMAKE_PREFIX_PATH=/usr/local/opt/qt5; fi
|
- if [ $TRAVIS_OS_NAME == osx ]; then export CMAKE_PREFIX_PATH=/usr/local/opt/qt5; fi
|
||||||
- if [ $TRAVIS_OS_NAME == linux ]; then ./.ci/linux/install-deps.sh; fi
|
- if [ $TRAVIS_OS_NAME == linux ]; then ./.ci/linux/install-deps.sh; fi
|
||||||
before_script:
|
before_script:
|
||||||
|
|
39
README.md
39
README.md
|
@ -15,13 +15,13 @@ but you can of course receive and send messages in the rooms that you are a memb
|
||||||
|
|
||||||
#### Arch Linux
|
#### Arch Linux
|
||||||
```bash
|
```bash
|
||||||
$ pacaur -S nheko-git
|
pacaur -S nheko-git
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Gentoo Linux
|
#### Gentoo Linux
|
||||||
```bash
|
```bash
|
||||||
$ sudo layman -a matrix
|
sudo layman -a matrix
|
||||||
$ sudo emerge -a nheko
|
sudo emerge -a nheko
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Windows
|
#### Windows
|
||||||
|
@ -33,6 +33,7 @@ You can find a NSIS installer [here](https://ci.appveyor.com/project/mujx/nheko/
|
||||||
- Qt5 (5.7 or greater). Qt 5.7 adds support for color font rendering with
|
- Qt5 (5.7 or greater). Qt 5.7 adds support for color font rendering with
|
||||||
Freetype, which is essential to properly support emoji.
|
Freetype, which is essential to properly support emoji.
|
||||||
- CMake 3.1 or greater.
|
- CMake 3.1 or greater.
|
||||||
|
- [LMDB](https://symas.com/lightning-memory-mapped-database/).
|
||||||
- A compiler that supports C++11.
|
- A compiler that supports C++11.
|
||||||
- Clang 3.3 (or greater).
|
- Clang 3.3 (or greater).
|
||||||
- GCC 4.8 (or greater).
|
- GCC 4.8 (or greater).
|
||||||
|
@ -40,29 +41,29 @@ You can find a NSIS installer [here](https://ci.appveyor.com/project/mujx/nheko/
|
||||||
##### Arch Linux
|
##### Arch Linux
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo pacman -S qt5-base qt5-tools cmake gcc fontconfig
|
sudo pacman -S qt5-base qt5-tools cmake gcc fontconfig lmdb
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Gentoo Linux
|
##### Gentoo Linux
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo emerge -a ">=dev-qt/qtgui-5.7.1" media-libs/fontconfig
|
sudo emerge -a ">=dev-qt/qtgui-5.7.1" media-libs/fontconfig
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Ubuntu 14.04
|
##### Ubuntu (e.g 14.04)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo add-apt-repository ppa:beineri/opt-qt58-trusty
|
sudo add-apt-repository ppa:beineri/opt-qt58-trusty
|
||||||
$ sudo add-apt-repository ppa:george-edison55/cmake-3.x
|
sudo add-apt-repository ppa:george-edison55/cmake-3.x
|
||||||
$ sudo apt-get update
|
sudo apt-get update
|
||||||
$ sudo apt-get install qt58base qt58tools cmake
|
sudo apt-get install qt58base qt58tools cmake liblmdb-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
##### OSX (Xcode 7 or later)
|
##### OSX (Xcode 7 or later)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ brew update
|
brew update
|
||||||
$ brew install qt5
|
brew install qt5 lmdb
|
||||||
```
|
```
|
||||||
|
|
||||||
N.B. you will need to pass `-DCMAKE_PREFIX_PATH=/usr/local/opt/qt5`
|
N.B. you will need to pass `-DCMAKE_PREFIX_PATH=/usr/local/opt/qt5`
|
||||||
|
@ -70,6 +71,20 @@ to cmake to point it at your qt5 install (tweaking the path as needed)
|
||||||
|
|
||||||
### Building
|
### Building
|
||||||
|
|
||||||
|
Clone the repo with its submodules
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone --recursive https://github.com/mujx/nheko
|
||||||
|
```
|
||||||
|
or
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/mujx/nheko
|
||||||
|
cd nheko
|
||||||
|
git submodule update --init
|
||||||
|
```
|
||||||
|
|
||||||
|
and then use the following
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release # Default is Debug.
|
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release # Default is Debug.
|
||||||
make -C build
|
make -C build
|
||||||
|
|
Loading…
Reference in a new issue