Keaun

Results 13 comments of Keaun

https://github.com/RT-Thread/rt-thread/pull/3578 , 可以看一下这个 PR, 欢迎提出解决方案。

https://club.rt-thread.org/ask/question/430005.html ![image](https://user-images.githubusercontent.com/44889940/162853700-f6bd0502-a496-41dc-8bb4-29451d4e6d9f.png) @mysterywolf 我怀疑是 Cubemx 操作有问题,你看上面那个帖子,usb cdc 就是好使得,我们 udb 的 usb 也一直是好使的

I use cython to generate. So file, it seems to work normally : ``` .../files/python $ python setup.py build_ext running build_ext building 'hello' extension aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g...

> You should try `bdist_nuitka` target then. How do I use bdist_nuitka ?

I successfully generated the `.so` file on Android using Nuitka, and it can be imported and works: ![image](https://user-images.githubusercontent.com/44889940/126269436-e71b0ebe-c0d2-4069-ae29-bad23b8badb0.png) ```shell (venv) ~/python/udb-tools $ venv/bin/python -m nuitka --module --output-dir=out --clang --show-scons --include-package=nuitka_test...

I just modified the backend.scons file: ![image](https://user-images.githubusercontent.com/44889940/126285511-3be6599b-ac90-44d7-9382-5db7f9100e36.png)

`mv nuitka_test.cpython-39. so nuitka_test. so` just for ease of use .

if not use `--package` mode, the module will be not found, i don't know why: ``` ~/python/udb-tools $ venv/bin/python -m nuitka --module --output-dir=out --clang --show-scons nuitka_test Nuitka-Options:INFO: Used command line...

not linking python: ```shell (venv) ~/python/out $ nm nuitka_test.cpython-39.so -gD U PyArg_ParseTuple U PyArg_ParseTupleAndKeywords U PyArg_UnpackTuple U PyAsyncGen_Type U PyBaseObject_Type U PyBool_Type U PyBuffer_Release U PyByteArray_FromObject U PyByteArray_FromStringAndSize U PyByteArray_Type...

Differences between the two .so files ![image](https://user-images.githubusercontent.com/44889940/126579195-4a492eff-8732-47d5-a62a-456bef0a4b49.png) ![image](https://user-images.githubusercontent.com/44889940/126579166-60f49d46-0ad2-414c-b70e-fc9125ba8d4c.png)