create an app to ubuntu touch



  • Hello,

    how can i create an app to ubuntu touch ?
    and ubuntu store

    100% free IDE and software



  • I guess you already look at http://docs.ubports.com/en/latest/appdev/index.html?

    No specific IDE needed, but i recomment using clickable toolkit for a starter template, and easy deploy, test.
    I personaly use the clickable ide qtcreator feature that can give you full code completion and code navigation.
    There are also resources on Youtube that help you get started.

    Enjoy 🙂



  • Hello,

    I have installed (sudo apt install ubuntu-sdk)
    Then i run "clickable ide qtcreator" i got this here:
    No builder was specified, would you like to auto detect the builder [y/N]:

    Y:
    Auto detected builder to be "pure"
    There are spaces in the current path, this will cause errors in the build process
    N:
    Not auto detecting builder

    something i do wrong?

    i am pretty new to this ubuntu touch. 🙂



  • @007fred50 said in create an app to ubuntu touch:

    There are spaces in the current path, this will cause errors in the build process

    If i where you, i would change spaces by underscores on this path name. (and maybe on any paths)



  • Foudn out to create project is:
    Comamnd: (clickable init)
    i got a problem here

    but end of create:

    fredy@fredy-TUF-Gaming-FA706IU-FX706IU:~/Desktop/ubuntu touch/demo$ clickable init
    You've cloned /home/fredy/.cookiecutters/ut-app-meta-template before. Is it okay to delete and re-clone it? [yes]: 
    Cloning into 'ut-app-meta-template'...
    remote: Enumerating objects: 304, done.
    remote: Counting objects: 100% (304/304), done.
    remote: Compressing objects: 100% (127/127), done.
    remote: Total 304 (delta 178), reused 285 (delta 159), pack-reused 0
    Receiving objects: 100% (304/304), 65.52 KiB | 0 bytes/s, done.
    Resolving deltas: 100% (178/178), done.
    Checking connectivity... done.
    Select Template:
    1 - QML Only
    2 - C++
    3 - Python
    4 - HTML
    5 - Go
    6 - Rust
    Choose from 1, 2, 3, 4, 5, 6 [1]: 1
    Title [App Title]: Demo
    Description [A short description of your app]: Demo 
    App Name [appname]: Demo
    Namespace [demo]: 
    Maintainer Name [demo]: 
    Maintainer Email [demo@demo.dk]: 
    Select License:
    1 - GNU General Public License v3
    2 - MIT license
    3 - BSD license
    4 - ISC license
    5 - Apache Software License 2.0
    6 - Not open source
    Choose from 1, 2, 3, 4, 5, 6 [1]: 
    Copyright Year [2020]: 
    Git Tag Versioning [n]: 
    Save as Default [n]: Y
    DEBUG:clickable:Encountered an unknown error
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/clickable/__init__.py", line 275, in main
        clickable.run(args.commands, args)
      File "/usr/lib/python3/dist-packages/clickable/__init__.py", line 259, in run
        cmd.run(command_arg)
      File "/usr/lib/python3/dist-packages/clickable/commands/create.py", line 58, in run
        config_file=config_file,
      File "/usr/lib/python3/dist-packages/cookiecutter/main.py", line 140, in cookiecutter
        output_dir=output_dir
      File "/usr/lib/python3/dist-packages/cookiecutter/generate.py", line 327, in generate_files
        generate_file(project_dir, infile, context, env)
      File "/usr/lib/python3/dist-packages/cookiecutter/generate.py", line 177, in generate_file
        with io.open(outfile, 'w', encoding='utf-8') as fh:
    FileNotFoundError: [Errno 2] No such file or directory: '/home/fredy/Desktop/ubuntu touch/demo/Demo/clickable.json'
    Encountered an unknown error: [Errno 2] No such file or directory: '/home/fredy/Desktop/ubuntu touch/demo/Demo/clickable.json'
    CRITICAL:clickable:Encountered an unknown error: [Errno 2] No such file or directory: '/home/fredy/Desktop/ubuntu touch/demo/Demo/clickable.json'
    If you believe this is a bug, please file a report at https://gitlab.com/clickable/clickable/issues with the log file located at /home/fredy/.clickable/clickable.log
    CRITICAL:clickable:If you believe this is a bug, please file a report at https://gitlab.com/clickable/clickable/issues with the log file located at /home/fredy/.clickable/clickable.log
    

    sorry, how can i fix that error?



  • sorry i foudn out how to create new project, i forgot sudo start of the command



  • sudo should never be necessary when working with Clickable. I guess the spaces in your path caused the issue. If it persists even without spaces, please file a bug. I'd also suggest you have a look at the Clickable Documentation.

    The sudo apt install ubuntu-sdk does not help. Clickable comes with its own docker images containing everything it needs.


Log in to reply