maple.be.ratchet
This commit is contained in:
parent
4f6dd94cfc
commit
db2afdd709
18
README.md
18
README.md
|
@ -427,7 +427,7 @@ so [ 47%] Linking CXX executable test_ratchet
|
|||
python3.9 -c build/temp.linux-x86_64-3.9/_libolm.c -o build/temp.linux-x86_64-3.9/build/temp.linux-x86_64-3.9/_libolm.o -I../include
|
||||
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-z,relro -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.9/build/temp.linux-x86_64-3.9/_libolm.o -lolm -o build/lib.linux-x86_64-3.9/_libolm.abi3.so -L../build
|
||||
```
|
||||
### the 'olm' system library that was built is here - ~/maple/olm/build/libolm.so.3.2.12
|
||||
### note - `the 'olm' system library that was built is here` - ~/maple/olm/build/libolm.so.3.2.12
|
||||
```
|
||||
dr1p in 🌐 SAISABER in maple on main [?] via 🐍 v3.9.2
|
||||
❯ ls -al ~/maple/olm/build|grep libolm
|
||||
|
@ -435,7 +435,7 @@ so [ 47%] Linking CXX executable test_ratchet
|
|||
lrwxrwxrwx 16 dr1p 5 Oct 18:01 libolm.so.3 -> libolm.so.3.2.12
|
||||
---> .rwxr-xr-x 206k dr1p 5 Oct 18:01 libolm.so.3.2.12
|
||||
```
|
||||
### the 'python' bindings are here - ~/maple/olm/python/build/lib.linux-x86_64-3.9 ( HOWEVER ) we will be installing this differently
|
||||
### note - `the 'python' bindings are here` - ~/maple/olm/python/build/lib.linux-x86_64-3.9
|
||||
```
|
||||
dr1p in 🌐 SAISABER in python/build/lib.linux-x86_64-3.9 on master
|
||||
❯ fd
|
||||
|
@ -451,8 +451,8 @@ so [ 47%] Linking CXX executable test_ratchet
|
|||
olm/session.py
|
||||
olm/utility.py
|
||||
```
|
||||
# E - `enter maple's root directory and activate that virtual environment so when we install olm bindings they are in the right place and then enable this library in our nio client`
|
||||
- activate maple virtualenv
|
||||
# E - `enter maple's root directory to activate that virtual environment, this is so when we go to install these 'olm python bindings' they will be attached correctly. finally, we have to enable all these things we done for the 'nio' matrix api client`
|
||||
### activate the maple virtualenv
|
||||
- cd ~/maple && source env/bin/activate
|
||||
```
|
||||
dr1p in 🌐 SAISABER in ~ via 🐍 v3.9.2
|
||||
|
@ -461,7 +461,7 @@ so [ 47%] Linking CXX executable test_ratchet
|
|||
### install our 'olm' bindings
|
||||
- cd ~/maple/olm/python && pip install .
|
||||
```
|
||||
dr1p in 🌐 SAISABER in maple on main [?] via 🐍 v3.9.2 (env)
|
||||
dr1p in 🌐 SAISABER in maple on main [?] via 🐍 v3.9.2 (env) <- virtualenv activated
|
||||
❯ cd ~/maple/olm/python && pip install .
|
||||
Processing /home/dr1p/maple/olm/python
|
||||
Preparing metadata (setup.py) ... done
|
||||
|
@ -478,7 +478,7 @@ so [ 47%] Linking CXX executable test_ratchet
|
|||
Installing collected packages: pycparser, cffi, python-olm
|
||||
Successfully installed cffi-1.15.1 pycparser-2.21 python-olm-3.2.12
|
||||
```
|
||||
# 3 - `activate 'olm' - really we are switch over from one 'nio' client to an entirely different 'nio' client but this one is based in this 'olm' library`
|
||||
# 3 - `to enable 'olm' is really just switch over from build of 'nio' to a different build of 'nio'. this new one is purposely based in this 'olm' library`
|
||||
- pip install "matrix-nio[e2e]"
|
||||
```
|
||||
dr1p in 🌐 SAISABER in olm/python on master via 🐍 v3.9.2 (env) took 5s
|
||||
|
@ -528,7 +528,8 @@ so [ 47%] Linking CXX executable test_ratchet
|
|||
Installing collected packages: peewee, atomicwrites
|
||||
Successfully installed atomicwrites-1.4.1 peewee-3.15.3
|
||||
```
|
||||
# F - `how i knew this stuff actually worked is my lack of having placed the 'olm' system library in the right place when starting a maple instance`
|
||||
---
|
||||
# F - note: `how i knew these changes actually worked was my lack of having placed the 'olm system library' in the right place before starting a maple instance - so it crashed`
|
||||
```
|
||||
dr1p in 🌐 SAISABER in ~ via 🐍 v3.9.2 (env)
|
||||
❯ deactivate && cd ~/maple && bash maple
|
||||
|
@ -559,6 +560,7 @@ so [ 47%] Linking CXX executable test_ratchet
|
|||
from _libolm import ffi, lib # type: ignore
|
||||
ImportError: libolm.so.3: cannot open shared object file: No such file or directory
|
||||
```
|
||||
---
|
||||
# G - `copy 'olm' library to /usr/lib and create the symbolic links to it`
|
||||
- sudo cp ~/maple/olm/build/libolm.so.3.2.12 /usr/lib
|
||||
```
|
||||
|
@ -570,7 +572,7 @@ so [ 47%] Linking CXX executable test_ratchet
|
|||
lrwxrwxrwx 25 root 5 Oct 19:14 /usr/lib/libolm.so.3 -> /usr/lib/libolm.so.3.2.12
|
||||
.rwxr-xr-x 206k root 5 Oct 19:13 /usr/lib/libolm.so.3.2.12
|
||||
```
|
||||
|
||||
---
|
||||
# H - `test - start maple and see if the olm'd version of 'nio' crashes, it doesn't so we are done`
|
||||
```
|
||||
dr1p in 🌐 SAISABER in maple on main [?] via 🐍 v3.9.2
|
||||
|
|
Loading…
Reference in New Issue