status-desktop/README.md

77 lines
1.4 KiB
Markdown
Raw Normal View History

2020-05-06 17:58:52 +00:00
# nim-status-client
2020-05-06 17:40:00 +00:00
2020-05-06 17:51:37 +00:00
Experiments calling status-go from nim, inspired in [nim-stratus](https://github.com/status-im/nim-stratus) by [@arnetheduck](https://github.com/arnetheduck)
2020-05-06 17:40:00 +00:00
![Image](screenRec.gif)
### 1. Install nim 1.2.0
```
# linux
2020-05-08 14:51:32 +00:00
apt-get install nim
# macos
brew install nim
2020-05-06 17:40:00 +00:00
```
### 2. Install QT, and add it to the PATH
```
# Linux
2020-05-06 17:40:00 +00:00
export PATH=$PATH:/path/to/Qt/5.14.2/gcc_64/bin
# macos
export PATH=$PATH:/path/to/Qt/5.14.2/clang_64/bin
```
### 3. Clone and build DOtherside
2020-05-08 14:51:32 +00:00
For Linux:
```
sudo apt-get install build-essential libgl1-mesa-dev
sudo apt-get install doxygen
```
```
2020-05-06 17:40:00 +00:00
git clone https://github.com/filcuc/DOtherSide
cd DOtherSide
mkdir build && cd build
cmake ..
make
```
2020-05-06 17:40:00 +00:00
### 4. Setup Library Path
2020-05-06 17:40:00 +00:00
```
2020-05-06 17:40:00 +00:00
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/dotherside/build/lib
```
### 5. Copy libstatus to repo
Copy `libstatus.a` to the root folder. Can be obtained from `status-react/result` by executing `make status-go-desktop`.
**macos:** rename `libstatus.a` to `libstatus.dylib` _before_ copying over. Alternatively, modify `desktop/default.nix` to output `libstatus.dylib` before copying over.
2020-05-06 17:40:00 +00:00
### 6. Install nim dependencies
2020-05-06 17:40:00 +00:00
Ignore errors about `nim_status_client` failing to build.
```
nimble install
```
2020-05-06 17:40:00 +00:00
### 7. Build `nim-status-client`
2020-05-06 17:40:00 +00:00
```
# linux
2020-05-06 21:26:32 +00:00
make build
2020-05-06 21:43:35 +00:00
# macos
2020-05-06 21:43:35 +00:00
make build-osx
```
2020-05-06 21:43:35 +00:00
### 8. Run the app
```
2020-05-06 17:51:37 +00:00
./nim_status_client
2020-05-06 17:40:00 +00:00
```