[ 
https://issues.apache.org/jira/browse/MYNEWT-658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kumar Amit Mehta updated MYNEWT-658:
------------------------------------
    Description: 
There are two problems with the NimBLE application tutorial [1]

i)  newt build ble_tgt fails.

<snip>
$ newt build ble_tgt
Building target targets/ble_tgt
Error: Could not resolve package dependency: @apache-mynewt-core/libs/baselibc; 
depender: apps/ble_app
<snip>

ii) After fixing the package dependency problem (see below) build fails as 
os_init() expects an argument.

<snip>
Error: apps/ble_app/src/main.c: In function 'main':
apps/ble_app/src/main.c:6:5: error: too few arguments to function 'os_init'
     os_init();
<snip>

Proposed solution:
i) Fix apps/ble_app/pkg.yml
<snip> 
pkg.deps:
    - "@apache-mynewt-core/kernel/os"
    - "@apache-mynewt-core/hw/hal"
    - "@apache-mynewt-core/libc/baselibc"
    - "@apache-mynewt-core/sys/log/full"
    - "@apache-mynewt-core/sys/stats/full"
    - "@apache-mynewt-core/sys/console/full"
    - "@apache-mynewt-core/net/nimble/transport/ram"
    - "@apache-mynewt-core/net/nimble/controller"
    - "@apache-mynewt-core/net/nimble/host"
<snip>

ii) Replace os_init() with os_init(NULL)
 
[1] http://mynewt.apache.org/latest/network/ble/nimble_setup/ (version: latest*)

* Both latest and v0.9.0 seem to be same.

  was:
There are two problems with the NimBLE application tutorial [1]

i)  newt build ble_tgt fails.

<snip>
]$ newt build ble_tgt
Building target targets/ble_tgt
Error: Could not resolve package dependency: @apache-mynewt-core/libs/baselibc; 
depender: apps/ble_app
<snip>

ii) After fixing the package dependency problem (see below) build fails as 
os_init() expects an argument.

<snip>
Error: apps/ble_app/src/main.c: In function 'main':
apps/ble_app/src/main.c:6:5: error: too few arguments to function 'os_init'
     os_init();
<snip>

Proposed solution:
i) Fix apps/ble_app/pkg.yml
<snip> 
pkg.deps:
    - "@apache-mynewt-core/kernel/os"
    - "@apache-mynewt-core/hw/hal"
    - "@apache-mynewt-core/libc/baselibc"
    - "@apache-mynewt-core/sys/log/full"
    - "@apache-mynewt-core/sys/stats/full"
    - "@apache-mynewt-core/sys/console/full"
    - "@apache-mynewt-core/net/nimble/transport/ram"
    - "@apache-mynewt-core/net/nimble/controller"
    - "@apache-mynewt-core/net/nimble/host"
<snip>

ii) Replace os_init() with os_init(NULL)
 
[1] http://mynewt.apache.org/latest/network/ble/nimble_setup/ (version: latest*)

* Both latest and v0.9.0 seem to be same.


> Build failure when following the tutorial on setting up NimBLE application
> --------------------------------------------------------------------------
>
>                 Key: MYNEWT-658
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-658
>             Project: Mynewt
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: v1_0_0_beta2
>         Environment: Linux, Native
>            Reporter: Kumar Amit Mehta
>            Assignee: Aditi Hilbert
>            Priority: Minor
>              Labels: documentation
>
> There are two problems with the NimBLE application tutorial [1]
> i)  newt build ble_tgt fails.
> <snip>
> $ newt build ble_tgt
> Building target targets/ble_tgt
> Error: Could not resolve package dependency: 
> @apache-mynewt-core/libs/baselibc; depender: apps/ble_app
> <snip>
> ii) After fixing the package dependency problem (see below) build fails as 
> os_init() expects an argument.
> <snip>
> Error: apps/ble_app/src/main.c: In function 'main':
> apps/ble_app/src/main.c:6:5: error: too few arguments to function 'os_init'
>      os_init();
> <snip>
> Proposed solution:
> i) Fix apps/ble_app/pkg.yml
> <snip> 
> pkg.deps:
>     - "@apache-mynewt-core/kernel/os"
>     - "@apache-mynewt-core/hw/hal"
>     - "@apache-mynewt-core/libc/baselibc"
>     - "@apache-mynewt-core/sys/log/full"
>     - "@apache-mynewt-core/sys/stats/full"
>     - "@apache-mynewt-core/sys/console/full"
>     - "@apache-mynewt-core/net/nimble/transport/ram"
>     - "@apache-mynewt-core/net/nimble/controller"
>     - "@apache-mynewt-core/net/nimble/host"
> <snip>
> ii) Replace os_init() with os_init(NULL)
>  
> [1] http://mynewt.apache.org/latest/network/ble/nimble_setup/ (version: 
> latest*)
> * Both latest and v0.9.0 seem to be same.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to