[riot-users] [Riot] Include external library

Ludwig Knüpfer ludwig.knuepfer at fu-berlin.de
Mon Jan 2 18:30:51 CET 2017


Hello,

It says why it fails:
Error: No build/ directory found. Did you run configure?
Makefile:45: recipe for target 'configured' failed



Am 2. Januar 2017 18:16:50 MEZ schrieb Alberto Ciolini <albertociolini92 at gmail.com>:
>I did as show link that you sent me, but when i try to flash a program
>(simple hello world with "include <broccoli.h>) on OpenMote i see this:
>
>"make" -C /home/ciolo/RIOT/pkg/broccoli
>rm -Rf
>/home/ciolo/RIOT/examples/hello-world/bin/pkg/openmote-cc2538/broccoli
>mkdir -p
>/home/ciolo/RIOT/examples/hello-world/bin/pkg/openmote-cc2538/broccoli
>/home/ciolo/RIOT/dist/tools/git/git-cache clone "
>https://github.com/bro/broccoli"
>"765eab50f7796fdb3c308fe9232cd7891f098c67"
>"/home/ciolo/RIOT/examples/hello-world/bin/pkg/openmote-cc2538/broccoli"
>+ local REMOTE=https://github.com/bro/broccoli
>+ local SHA1=765eab50f7796fdb3c308fe9232cd7891f098c67
>+ basename https://github.com/bro/broccoli
>+ local REMOTE_NAME=broccoli
>+ local
>TARGET_PATH=/home/ciolo/RIOT/examples/hello-world/bin/pkg/openmote-cc2538/broccoli
>+ _check_commit 765eab50f7796fdb3c308fe9232cd7891f098c67
>+ git_cache cat-file -e
>765eab50f7796fdb3c308fe9232cd7891f098c67^{commit}
>+ git -C /home/ciolo/.gitcache cat-file -e
>765eab50f7796fdb3c308fe9232cd7891f098c67^{commit}
>fatal: Cannot change to '/home/ciolo/.gitcache': No such file or
>directory
>+ git clone https://github.com/bro/broccoli
>/home/ciolo/RIOT/examples/hello-world/bin/pkg/openmote-cc2538/broccoli
>Cloning into
>'/home/ciolo/RIOT/examples/hello-world/bin/pkg/openmote-cc2538/broccoli'...
>remote: Counting objects: 1591, done.
>remote: Total 1591 (delta 0), reused 0 (delta 0), pack-reused 1591
>Receiving objects: 100% (1591/1591), 688.54 KiB | 943.00 KiB/s, done.
>Resolving deltas: 100% (803/803), done.
>Checking connectivity... done.
>+ git -C
>/home/ciolo/RIOT/examples/hello-world/bin/pkg/openmote-cc2538/broccoli
>checkout 765eab50f7796fdb3c308fe9232cd7891f098c67
>Note: checking out '765eab50f7796fdb3c308fe9232cd7891f098c67'.
>
>You are in 'detached HEAD' state. You can look around, make
>experimental
>changes and commit them, and you can discard any commits you make in
>this
>state without impacting any branches by performing another checkout.
>
>If you want to create a new branch to retain commits you create, you
>may
>do so (now or later) by using -b with the checkout command again.
>Example:
>
>  git checkout -b <new-branch-name>
>
>HEAD is now at 765eab5... Updating CHANGES and VERSION.
>+ set +ex
>touch
>/home/ciolo/RIOT/examples/hello-world/bin/pkg/openmote-cc2538/broccoli/.git-downloaded
>"make" -C
>/home/ciolo/RIOT/examples/hello-world/bin/pkg/openmote-cc2538/broccoli
>Error: No build/ directory found. Did you run configure?
>Makefile:45: recipe for target 'configured' failed
>make[2]: *** [configured] Error 1
>Makefile:8: recipe for target 'all' failed
>make[1]: *** [all] Error 2
>/home/ciolo/RIOT/examples/hello-world/../../Makefile.include:308:
>recipe
>for target
>'/home/ciolo/RIOT/examples/hello-world/bin/openmote-cc2538/broccoli.a'
>failed
>make: ***
>[/home/ciolo/RIOT/examples/hello-world/bin/openmote-cc2538/broccoli.a]
>Error 2
>
>2017-01-02 18:00 GMT+01:00 Alberto Ciolini
><albertociolini92 at gmail.com>:
>
>> I did as show link that you sent me, but when i try to flash a
>program
>> (simple hello world with "include <broccoli.h>) on OpenMote i see
>this:
>>
>>
>> 2017-01-02 17:49 GMT+01:00 Oleg Hahm <oliver.hahm at inria.fr>:
>>
>>> Hi Alberto!
>>>
>>> On Mon, Jan 02, 2017 at 05:18:53PM +0100, Alberto Ciolini wrote:
>>> > thanks very for reply. I'll take a look at that link.
>>> > Patches file are mandatory? Because I do not know how to go about
>my
>>> > library, or I do not know if there's no need.
>>>
>>> No, patch files are only necessary if something in the package needs
>to be
>>> adapted to work with RIOT (and cannot be modified in the upstream
>>> version).
>>>
>>> Cheers,
>>> Oleg
>>> --
>>> printk("%s: huh ? Who issued this format command ?\n")
>>>         linux-2.6.6/drivers/block/ps2esdi.c
>>>
>>> _______________________________________________
>>> users mailing list
>>> users at riot-os.org
>>> https://lists.riot-os.org/mailman/listinfo/users
>>>
>>>
>>


More information about the users mailing list