[riot-users] [Riot] Include external library

Alberto Ciolini albertociolini92 at gmail.com
Mon Jan 2 17:18:53 CET 2017


Hi Bas,
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.

Thank u.

2017-01-02 17:06 GMT+01:00 Bas Stotteraar <basstottelaar at gmail.com>:

> Hi Alberto,
>
> You'll have to tell RIOT where to find additional header files. Take a
> look at this example: https://github.com/RIOT-OS/RIOT/blob/master/pkg/
> u8g2/Makefile.include
>
> For that particular library, I can now use '#include <u8g2.h>'.
>
> Kind regards,
> Bas
>
> Op 2 jan. 2017 om 16:45 heeft Alberto Ciolini <albertociolini92 at gmail.com>
> het volgende geschreven:
>
> Hello,
> I'm new in RIOT. I have to include this library, https://github.com/bro/
> broccoli, in RIOT and flash a program in OpenMote for my thesis.
> I read in the RIOT api that you can import external libraries as packages.
> I moved the library in to pkg folder of RIOT. I added the USEPKG macro in
> my application's Makefile but when i use "include <broccoli.h>" in main.c
> of my program i have this error: /home/user/RIOT/examples/hello-world/main.c:23:22:
> fatal error: broccoli.h: No such file or directory #include <broccoli.h>.
> Can you help me please?
>
> Thanks.
>
> _______________________________________________
> users mailing list
> users at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/users
>
>
> _______________________________________________
> users mailing list
> users at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/users/attachments/20170102/f9368e3a/attachment.html>


More information about the users mailing list