You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mynewt.apache.org by Greg Strange <gr...@synapse.com> on 2017/06/10 00:47:11 UTC

Cannot resolve dependency

Hi,

I'm new to mynewt. I went through the quick start and have successfully
installed mynewt, and have built and run the blinky project targeted to a
NRF52 board.

As a next step I decided to copy the ble peripheral sample project into my
own apps directory as a starting point for a simple BLE project. After
doing so though the project will not build and I get this error:

*Building target targets/nrf52_blep*
*Error: Could not resolve package dependency: @apache-mynewt-core/kernel/os
; depender: kernel/os*



A little more background....  When I say "copy the ble peripheral sample
project", what I did is copy apache-mynewt-core/apps/bleprph into apps, and
renamed it "blep" because it's easier to type. I edited pkg.yml and added
@apache-mynewt-core to all the dependencies so that pkg.yml now looks like
this:

pkg.name: apps/blep
pkg.type: app
pkg.description: Simple BLE peripheral application.
pkg.author: "Apache Mynewt <de...@mynewt.incubator.apache.org>"
pkg.homepage: "http://mynewt.apache.org/"
pkg.keywords:

pkg.deps:
    - "@apache-mynewt-core/boot/split"
    - "@apache-mynewt-core/kernel/os "
    - "@apache-mynewt-core/mgmt/imgmgr"
    - "@apache-mynewt-core/mgmt/newtmgr"
    - "@apache-mynewt-core/mgmt/newtmgr/transport/ble"
    - "@apache-mynewt-core/net/nimble/controller"
    - "@apache-mynewt-core/net/nimble/host"
    - "@apache-mynewt-core/net/nimble/host/services/ans"
    - "@apache-mynewt-core/net/nimble/host/services/gap"
    - "@apache-mynewt-core/net/nimble/host/services/gatt"
    - "@apache-mynewt-core/net/nimble/host/store/ram"
    - "@apache-mynewt-core/net/nimble/transport/ram"
    - "@apache-mynewt-core/sys/console/full"
    - "@apache-mynewt-core/sys/log/full"
    - "@apache-mynewt-core/sys/stats/full"
    - "@apache-mynewt-core/sys/sysinit"
    - "@apache-mynewt-core/sys/id"


I also created a nrf52 target for blep.

Am I missing something?  If I point my target to the original bleprph
project in the apache-mynewt-core directory, it builds fine.  But if I move
it to my own apps directory I cannot get it to build.

Any ideas?

Thanks



*Greg Strange *
Software Engineering Program Lead

*Synapse Product Development*
A Cambridge Consultants Company
mail 1511 6th Ave Suite 400, Seattle, WA 98101
direct 206-832-1269 ext. 3505 <206-832-1269,3505> | office 206-381-0898 |
mobile 206-240-5605
greg@synapse.com | http://www.synapse.com

This email and any files transmitted with it are confidential. Unauthorized
publication, use or dissemination of this email is prohibited.
Please consider the environment before printing.

Re: Cannot resolve dependency

Posted by Greg Strange <gr...@synapse.com>.
The trailing space was it, thanks! I figured it would be something simple
like that.

*Greg Strange *
Software Engineering Program Lead

*Synapse Product Development*
A Cambridge Consultants Company
mail 1511 6th Ave Suite 400, Seattle, WA 98101
direct 206-832-1269 ext. 3505 <206-832-1269,3505> | office 206-381-0898 |
mobile 206-240-5605
greg@synapse.com | http://www.synapse.com

This email and any files transmitted with it are confidential. Unauthorized
publication, use or dissemination of this email is prohibited.
Please consider the environment before printing.

On Fri, Jun 9, 2017 at 6:03 PM, Sterling Hughes <
sterling.hughes.public@gmail.com> wrote:

> Hi,
>
> On 10 Jun 2017, at 8:01, Christopher Collins wrote:
>
> On Fri, Jun 09, 2017 at 05:59:26PM -0700, Christopher Collins wrote:
>>
>>> By the way, there is an unfortunate bug in the current version of newt.
>>> The dependency resolution error message gets the depender name wrong; it
>>> prints the dependee package instead!
>>>
>>
>> I forgot to mention that this bug has since been fixed in the master
>> branch.
>>
>
> We should probably also trim unprintable characters, or at least warn
> about them.  Even better would be a best fit on available packages in the
> warning.
>
> Thoughts?
>
> We don’t need to do right away, but if folks agree, let’s just have a JIRA
> issue to track.
>
> Sterling
>

Re: Cannot resolve dependency

Posted by Sterling Hughes <st...@gmail.com>.
Hi,

On 10 Jun 2017, at 8:01, Christopher Collins wrote:

> On Fri, Jun 09, 2017 at 05:59:26PM -0700, Christopher Collins wrote:
>> By the way, there is an unfortunate bug in the current version of 
>> newt.
>> The dependency resolution error message gets the depender name wrong; 
>> it
>> prints the dependee package instead!
>
> I forgot to mention that this bug has since been fixed in the master
> branch.

We should probably also trim unprintable characters, or at least warn 
about them.  Even better would be a best fit on available packages in 
the warning.

Thoughts?

We don’t need to do right away, but if folks agree, let’s just have 
a JIRA issue to track.

Sterling

Re: Cannot resolve dependency

Posted by Christopher Collins <ch...@runtime.io>.
On Fri, Jun 09, 2017 at 05:59:26PM -0700, Christopher Collins wrote:
> By the way, there is an unfortunate bug in the current version of newt.
> The dependency resolution error message gets the depender name wrong; it
> prints the dependee package instead!

I forgot to mention that this bug has since been fixed in the master
branch.

Chris

Re: Cannot resolve dependency

Posted by Christopher Collins <ch...@runtime.io>.
Hi Greg,

On Fri, Jun 09, 2017 at 05:47:11PM -0700, Greg Strange wrote:
> Hi,
> 
> I'm new to mynewt. I went through the quick start and have successfully
> installed mynewt, and have built and run the blinky project targeted to a
> NRF52 board.
> 
> As a next step I decided to copy the ble peripheral sample project into my
> own apps directory as a starting point for a simple BLE project. After
> doing so though the project will not build and I get this error:
> 
> *Building target targets/nrf52_blep*
> *Error: Could not resolve package dependency: @apache-mynewt-core/kernel/os
> ; depender: kernel/os*
> 
> 
> 
> A little more background....  When I say "copy the ble peripheral sample
> project", what I did is copy apache-mynewt-core/apps/bleprph into apps, and
> renamed it "blep" because it's easier to type. I edited pkg.yml and added
> @apache-mynewt-core to all the dependencies so that pkg.yml now looks like
> this:
> 
> pkg.name: apps/blep
> pkg.type: app
> pkg.description: Simple BLE peripheral application.
> pkg.author: "Apache Mynewt <de...@mynewt.incubator.apache.org>"
> pkg.homepage: "http://mynewt.apache.org/"
> pkg.keywords:
> 
> pkg.deps:
>     - "@apache-mynewt-core/boot/split"
>     - "@apache-mynewt-core/kernel/os "

I believe the issue is caused by the trailing space above.

>     - "@apache-mynewt-core/mgmt/imgmgr"
>     - "@apache-mynewt-core/mgmt/newtmgr"
>     - "@apache-mynewt-core/mgmt/newtmgr/transport/ble"
>     - "@apache-mynewt-core/net/nimble/controller"
>     - "@apache-mynewt-core/net/nimble/host"
>     - "@apache-mynewt-core/net/nimble/host/services/ans"
>     - "@apache-mynewt-core/net/nimble/host/services/gap"
>     - "@apache-mynewt-core/net/nimble/host/services/gatt"
>     - "@apache-mynewt-core/net/nimble/host/store/ram"
>     - "@apache-mynewt-core/net/nimble/transport/ram"
>     - "@apache-mynewt-core/sys/console/full"
>     - "@apache-mynewt-core/sys/log/full"
>     - "@apache-mynewt-core/sys/stats/full"
>     - "@apache-mynewt-core/sys/sysinit"
>     - "@apache-mynewt-core/sys/id"
> 
> 
> I also created a nrf52 target for blep.
> 
> Am I missing something?  If I point my target to the original bleprph
> project in the apache-mynewt-core directory, it builds fine.  But if I move
> it to my own apps directory I cannot get it to build.

That is a good way to get started with a new app.  I don't anticipate
any more errors after this one is solved.

By the way, there is an unfortunate bug in the current version of newt.
The dependency resolution error message gets the depender name wrong; it
prints the dependee package instead!

Chris

Re: Cannot resolve dependency

Posted by Pierre Kircher <pk...@me.com>.
the space between os and “
> On 10 Jun 2017, at 01:47, Greg Strange <gr...@synapse.com> wrote:
> 
> Hi,
> 
> I'm new to mynewt. I went through the quick start and have successfully
> installed mynewt, and have built and run the blinky project targeted to a
> NRF52 board.
> 
> As a next step I decided to copy the ble peripheral sample project into my
> own apps directory as a starting point for a simple BLE project. After
> doing so though the project will not build and I get this error:
> 
> *Building target targets/nrf52_blep*
> *Error: Could not resolve package dependency: @apache-mynewt-core/kernel/os
> ; depender: kernel/os*
> 
> 
> 
> A little more background....  When I say "copy the ble peripheral sample
> project", what I did is copy apache-mynewt-core/apps/bleprph into apps, and
> renamed it "blep" because it's easier to type. I edited pkg.yml and added
> @apache-mynewt-core to all the dependencies so that pkg.yml now looks like
> this:
> 
> pkg.name: apps/blep
> pkg.type: app
> pkg.description: Simple BLE peripheral application.
> pkg.author: "Apache Mynewt <de...@mynewt.incubator.apache.org>"
> pkg.homepage: "http://mynewt.apache.org/"
> pkg.keywords:
> 
> pkg.deps:
>    - "@apache-mynewt-core/boot/split"
>    - "@apache-mynewt-core/kernel/os "
>    - "@apache-mynewt-core/mgmt/imgmgr"
>    - "@apache-mynewt-core/mgmt/newtmgr"
>    - "@apache-mynewt-core/mgmt/newtmgr/transport/ble"
>    - "@apache-mynewt-core/net/nimble/controller"
>    - "@apache-mynewt-core/net/nimble/host"
>    - "@apache-mynewt-core/net/nimble/host/services/ans"
>    - "@apache-mynewt-core/net/nimble/host/services/gap"
>    - "@apache-mynewt-core/net/nimble/host/services/gatt"
>    - "@apache-mynewt-core/net/nimble/host/store/ram"
>    - "@apache-mynewt-core/net/nimble/transport/ram"
>    - "@apache-mynewt-core/sys/console/full"
>    - "@apache-mynewt-core/sys/log/full"
>    - "@apache-mynewt-core/sys/stats/full"
>    - "@apache-mynewt-core/sys/sysinit"
>    - "@apache-mynewt-core/sys/id"
> 
> 
> I also created a nrf52 target for blep.
> 
> Am I missing something?  If I point my target to the original bleprph
> project in the apache-mynewt-core directory, it builds fine.  But if I move
> it to my own apps directory I cannot get it to build.
> 
> Any ideas?
> 
> Thanks
> 
> 
> 
> *Greg Strange *
> Software Engineering Program Lead
> 
> *Synapse Product Development*
> A Cambridge Consultants Company
> mail 1511 6th Ave Suite 400, Seattle, WA 98101
> direct 206-832-1269 ext. 3505 <206-832-1269,3505> | office 206-381-0898 |
> mobile 206-240-5605
> greg@synapse.com | http://www.synapse.com
> 
> This email and any files transmitted with it are confidential. Unauthorized
> publication, use or dissemination of this email is prohibited.
> Please consider the environment before printing.