status-desktop/README.md

83 lines
2.2 KiB
Markdown
Raw Normal View History

# Status-desktop
Desktop client for the [Status Network](https://statusnetwork.com/) built with [Nim](https://nim-lang.org/) and [Qt](https://www.qt.io/)
![https://github.com/status-im/nim-status-client/blob/master/screenshot.png](https://github.com/status-im/nim-status-client/blob/master/screenshot.png)
2021-06-24 19:08:47 +00:00
Dev Docs: [https://hackmd.io/@status-desktop/B1naRjxh_/https%3A%2F%2Fhackmd.io%2F%40status-desktop%2FB1eOaf-nd](https://hackmd.io/@status-desktop/B1naRjxh_/https%3A%2F%2Fhackmd.io%2F%40status-desktop%2FB1eOaf-nd)
2022-01-06 19:29:19 +00:00
# CPP App
### Setup `Linux`:
1. conancenter
Execute `conan remote list`. It should return this line among the results.
```
conancenter: https://center.conan.io [Verify SSL: True]
```
If it doesnt, consider upgrading conan with `pip install conan --upgrade` and then executing. `conan remote add -i 0 conancenter https://center.conan.io` . See [conan's documentation](https://docs.conan.io/en/latest/uploading_packages/remotes.html#conancenter) for more info.
2. conan libstdc++11
This applies to linux: the default conan profile does not work, since GCC uses the new C++ ABI since version 5.1 and conan, for compatibility purposes uses the old C++ ABI.
Execute this to update the profile:
```
conan profile update settings.compiler.libcxx=libstdc++11 default
```
3. Install dependencies:
2022-01-06 19:29:19 +00:00
```
cd build
conan install .. -s build_type=Release --build=missing
```
### Setup `OS X`:
1. Create `conan` profile `~/.conan/profiles/clang`:
```
[settings]
compiler=apple-clang
compiler.version=12.0
compiler.libcxx=libc++
arch=x86_64
os=Macos
build_type=Release
[env]
CC=/usr/bin/clang
CXX=/usr/bin/clang++
```
2. Install dependecies:
```
cd build
conan install .. --profile=clang --build=missing
```
### Buid & test & run:
```
conan build ..
ctest -VV -C Release
./status-desktop
```
Instead of `conan build ..` CMake may be used:
```
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
cmake --build . --config Release
```
### Setup for `iPadOs`:
run `status-tablets.pro` from Qt Creator.
### Setup for `Android`:
1. Install android SDK and NDK(`21.0.6113669`):
2. run `status-tablets.pro` from Qt Creator
3. Add to `Build environment variables` variable `ANDROID_SDK` with path/to/android/sdk