Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

Cannot Include libs by editing mos.yml

xezxeyxezxey Pattani
edited June 2017 in Mongoose OS

Im trying to include libs like a c_arduino_dht apps by adding in origin region(mos.yml) but it wont work.
Yesterday i tried to build it and it said :

The flag --repo is not given, going to use mongoose-os repository
Sources: [src/*.c src/*.cpp /tmp/fwbuild-volumes/users/test/mongoose_to_netpie/build_requests/build_req_723180078/tmp/deps_init_mongoose_to_netpie.c]
Building...
Docker arguments: run --rm -i -v /tmp/fwbuild-volumes/users/test/mongoose_to_netpie/build_requests/build_req_723180078:/app -v /tmp/fwbuild-
.
.
.
.
src/main.c:4:25: fatal error: ESP8266wifi.h: No such file or directory
 #include "ESP8266wifi.h"
                         ^
compilation terminated.
/mongoose-os/fw/platforms/esp8266/Makefile.build:424: recipe for target '/app/build/objs/main.c.o' failed
make: *** [/app/build/objs/main.c.o] Error 1
make: *** Waiting for unfinished jobs....
  CC    basic/atca_helpers.c
  .
.
.
make[1]: Leaving directory '/mongoose-os/common/platforms/esp8266/lwip'
make: *** wait: No child processes.  Stop.
Error: exit status 2

I think its problem is cannot include library and today i see the update and try to build it again
it said
D:\Netpie\Mongoose-OS\mongoose_to_netpie>mos build --arch esp8266
Handling lib ""...
The --lib flag was not given for it, checking repository
Error: failed to git diff --shortstat: exec: "git": executable file not found in %PATH%

And this is my mos.yml file i think i didnt make any wrong thing but it still not working.

name: mongoose_to_netpie
version: 1.0
arch: esp8266
mongoose_os_version: master
tags:
  - c
libs:
  - origin: https://github.com/netpieio/microgear-esp8266-arduino/
  - origin: https://github.com/ekstrand/ESP8266wifi/
sources:
  - src
  - ${microgear_esp8266_arduino_path}
  - ${ESP8266wifi_path}
skeleton_version: 2017-05-18
build_vars:
  MGOS_ENABLE_FILESYSTEM_SERVICE: 1   # Needed for mos ls,put,get to work
  MGOS_ENABLE_CONFIG_SERVICE: 1       # Needed for mos config-* commands to work
  MGOS_ENABLE_ARDUINO_API: 1
  MGOS_ENABLE_ONEWIRE: 1

Thank you for your help <3

Comments

Sign In or Register to comment.