UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. GMNX
    G
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 7
    • Groups 0

    GMNX

    @GMNX

    1
    Reputation
    246
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    GMNX Unfollow Follow

    Best posts made by GMNX

    • [SOLVED]How to Import Python library to clickable?

      Hello, I'm new to ubuntu touch, and want to learn it as my Student project.
      So I installed Clickable and create example project like other newborn programmer do, "Hello World"
      Now it run smoothly with command clickable --desktop

      I want to improve it step by step. The first step that I want is import another python library into my .py
      but it got this
      0_1528172604624_Selection_152.png

      can you tell me the proper way to import python module and include it when build the click file?
      thank you

      posted in App Development python clickable
      G
      GMNX

    Latest posts made by GMNX

    • RE: VoIP app with PJSIP

      @3arn0wl I don't know, seems uMatriks can't use my Asterisk Server. Is uMatriks must use their own server to log in into the App?
      0_1531805924938_photo_2018-07-17_11-59-25.resized.jpg

      @advocatux Thanks, I hope VoIP using SIP URI can be added into phone account. So people naturally can using VoIP service in ubuntu phone without using third party App. Like in Xiaomi MIUI
      0_1531805090068_Untitled 1.png

      @hummlbach I'm using One Plus One(Bacon), you have the same result when I see in your MyCroft Status.
      About Pulseaudio, I need more time to research PJSIP using PulseAudio. Is that more stable than ALSA? or Ubuntu Touch in default using PulseAudio rather than ALSA?

      Did anyone know where I can get Sound in/out mechanism in Ubuntu Touch ? It seems different from another Ubuntu flavor

      posted in App Development
      G
      GMNX
    • VoIP app with PJSIP

      This thread is further discussion from my early thread
      I need to create VoIP Application in Ubuntu Touch, since it using Linux Kernel. I assume it's possible to create App with existing VoIP library that run on linux. My choice is PJSIP, since it's still on active development and many SIP sever using this library.
      So I follow to build this library in linux environment. It can build smoothly without error. But the problem happened when I run the executable binary, system forced to reboot.
      0_1531727883626_gmnx@Chaosmatic: ~_172.png

      I compare this with my Raspberry that run PJSIP too, the output message stopped before it can show available device with ALSA. I reproduce the crash and capture the system log before it reboot. Got something like this
      0_1531728093205_gmnx@Chaosmatic: ~_175.png

      I didn't know why ALSA can't found valid playback route from source to sink
      and this is the output when I'm using aplay -l and arecord -l

      phablet@ubuntu-phablet:~$ aplay -l
      **** List of PLAYBACK Hardware Devices ****
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 0: MultiMedia1 (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 1: MultiMedia2 (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 2: CS-Voice (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 3: VoIP (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 4: MultiMedia3 (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 5: SLIMBUS_0 Hostless (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 6: INT_FM Hostless (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 7: AFE-PROXY RX msm-stub-rx-7 []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 10: AUXPCM Hostless (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 11: SLIMBUS_1 Hostless (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 12: SLIMBUS_3 Hostless (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 13: SLIMBUS_4 Hostless (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 14: VoLTE (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 15: MultiMedia5 (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 20: QCHAT (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 21: HDMI_RX_HOSTLESS (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 22: Voice2 (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 23: INT_HFP_BT Hostless (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 33: SLIMBUS_2 Hostless Playback taiko_rx2-33 []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 35: MultiMedia9 (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 36: VoWLAN (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 37: (Internal BT-SCO Playback) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 39: (Internal FM Playback) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 41: (AFE Playback) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 43: (AUX PCM Playback) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 44: (AUX PCM Capture) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 45: (Sec AUX PCM Playback) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 46: (Sec AUX PCM Capture) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 47: (Slimbus Playback) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 49: (Slimbus1 Playback) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 51: (Slimbus3 Playback) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 53: (Slimbus4 Playback) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 57: (Voice Farend Playback) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 58: (Voice2 Farend Playback) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      
      phablet@ubuntu-phablet:~$ arecord -l
      **** List of CAPTURE Hardware Devices ****
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 0: MultiMedia1 (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 1: MultiMedia2 (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 2: CS-Voice (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 3: VoIP (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 5: SLIMBUS_0 Hostless (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 6: INT_FM Hostless (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 8: AFE-PROXY TX msm-stub-tx-8 []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 10: AUXPCM Hostless (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 11: SLIMBUS_1 Hostless (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 12: SLIMBUS_3 Hostless (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 13: SLIMBUS_4 Hostless (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 14: VoLTE (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 15: MultiMedia5 (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 16: Listen 1 Audio Service (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 20: QCHAT (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 22: Voice2 (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 23: INT_HFP_BT Hostless (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 25: Listen 2 Audio Service (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 26: Listen 3 Audio Service (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 27: Listen 4 Audio Service (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 28: Listen 5 Audio Service (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 29: Listen 6 Audio Service (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 30: Listen 7 Audio Service (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 31: Listen 8 Audio Service (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 32: Slimbus4 Capture taiko_vifeedback-32 []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 34: SLIMBUS_2 Hostless Capture taiko_tx2-34 []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 35: MultiMedia9 (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 36: VoWLAN (*) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 38: (Internal BT-SCO Capture) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 40: (Internal FM Capture) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 42: (AFE Capture) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 43: (AUX PCM Playback) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 44: (AUX PCM Capture) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 45: (Sec AUX PCM Playback) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 46: (Sec AUX PCM Capture) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 48: (Slimbus Capture) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 50: (Slimbus1 Capture) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 52: (Slimbus3 Capture) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 54: (Voice Uplink Capture) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 55: (Voice Downlink Capture) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: msm8974taikomtp [msm8974-taiko-mtp-snd-card], device 56: (Slimbus5 Capture) []
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      
      

      Have anyone successfully build VoIP library in Ubuntu Touch?

      posted in App Development voip
      G
      GMNX
    • RE: [SOLVED]How to Import Python library to clickable?

      @hummlbach said in How to Import Python library to clickable?:
      The question about Python Library is SOLVED, with apt-get install on get_libs.py

      maybe I need to open new thread, about "How to check Crash Log in Ubuntu Touch?"
      OR
      "Create VoIP application with PJSIP in Ubuntu Touch"

      the Strace log didn't show me exactly what make the system reboot. this show me the technique to see what happen before system crashed
      since I'm using SSH to my phone, I follow the SSH step

      1. Log into phone using clickable shell
      2. Open another tab. Run clickable shell
      3. in tab 2 run tail -f /var/log/syslog to see system log in realtime
      4. Reproduce the crash in tab 1
      5. Watch any error messages in the tab 2

      Now I need to move to another thread to discuss it, and close this Thread as Solved

      posted in App Development
      G
      GMNX
    • RE: [SOLVED]How to Import Python library to clickable?

      thank @hummlbach
      I'm already finish build the library straight to device.
      I connect it with clickable shell
      remount the root folder sudo mount -o remount,rw /
      Downloading the dependency using apt-get
      Download the source code
      Make and install it

      It build flawlessly, but sadly the library not working properly. It crash when I'm running it, and suddenly make the phone reboot itself.
      In which log I need to see what's happening before the system crash and rebooted?

      this what I got in host computer after the Phone crashed. No error message showing
      0_1531208470949_gmnx@Chaosmatic: ~_172.png

      posted in App Development
      G
      GMNX
    • RE: [SOLVED]How to Import Python library to clickable?

      Thanks for your hint @bhdouglass
      So, if the library in the repo. we can use the get_libs.py

      But, if I need library that using C++ as their backend and bundling it with swig to create Python Library. How do I build this kind of library?
      is there any special tools to crosscompiling into Touch? or we can use any tools based on the Architecture ?

      posted in App Development
      G
      GMNX
    • RE: [SOLVED]How to Import Python library to clickable?

      Clickable generate project files like this:

      *- clickable.json
      *- hello_world.desktop.in
      *- CMakeLists.txt
      *- hello_world.apparmor
      *- manifest.json.in
      assets/
       - logo.svg
      build/
      * - #this where you get the .click file
      po/
       - hello_world.gmnx.pot
       - CMakeLists.txt
      python-lib/
       - #shared object for target platform (.so file). there is python and pyotherside in this folder
      qml/
       - hello_world.py #the python logic is here
       - Main.qml
      

      it's different structure from the link that you shared
      0_1528177437828_Selection_153.png

      I can't find script folder and get_libs.py

      posted in App Development
      G
      GMNX
    • [SOLVED]How to Import Python library to clickable?

      Hello, I'm new to ubuntu touch, and want to learn it as my Student project.
      So I installed Clickable and create example project like other newborn programmer do, "Hello World"
      Now it run smoothly with command clickable --desktop

      I want to improve it step by step. The first step that I want is import another python library into my .py
      but it got this
      0_1528172604624_Selection_152.png

      can you tell me the proper way to import python module and include it when build the click file?
      thank you

      posted in App Development python clickable
      G
      GMNX