Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

How to build an mongoose-os project for esp32 in localhost?

Goal: Building an esp32 mongoose project in local install building it in Server
Troubles: When I type "mos build --arch esp32 --local" this commend in my terminal,then it said "Repository "/home/genius/my-app/deps/vfs-fs-spiffs" does not exist, cloning..." and "error: Post https://github.com/mongoose-os-libs/rpc-service-fs/git-upload-pack: net/http: TLS handshake timeout".And when I open this github's Link also found it display a "404 not found" page.

log : WARNING: the lib "core" does not have version 2.4.3. Resorting to latest, but the build might fail.
It usually happens if you clone the latest version of some example app, and try to build it with the mos tool which is older than the lib (in this case, "core").
Consider using the version 2.4.3 of the app (git checkout 2.4.3), or using latest mos tool (mos update latest).
WARNING: the lib "rpc-service-fs" does not have version 2.4.3. Resorting to latest, but the build might fail.
It usually happens if you clone the latest version of some example app, and try to build it with the mos tool which is older than the lib (in this case, "rpc-service-fs").
Consider using the version 2.4.3 of the app (git checkout 2.4.3), or using latest mos tool (mos update latest).
WARNING: the lib "rpc-uart" does not have version 2.4.3. Resorting to latest, but the build might fail.
It usually happens if you clone the latest version of some example app, and try to build it with the mos tool which is older than the lib (in this case, "rpc-uart").
Consider using the version 2.4.3 of the app (git checkout 2.4.3), or using latest mos tool (mos update latest).
WARNING: the lib "ca-bundle" does not have version 2.4.3. Resorting to latest, but the build might fail.
It usually happens if you clone the latest version of some example app, and try to build it with the mos tool which is older than the lib (in this case, "ca-bundle").
Consider using the version 2.4.3 of the app (git checkout 2.4.3), or using latest mos tool (mos update latest).
Handling lib "rpc-uart"...
Handling lib "rpc-service-fs"...
Handling lib "core"...
Handling lib "ca-bundle"...
The --lib flag was not given for "core", checking repository
The --lib flag was not given for "ca-bundle", checking repository
The --lib flag was not given for "rpc-uart", checking repository
Handling lib "rpc-service-config"...
The --lib flag was not given for "rpc-service-config", checking repository
The --lib flag was not given for "rpc-service-fs", checking repository
Repository "/home/genius/my-app/deps/core" does not exist, cloning...

Repository "/home/genius/my-app/deps/rpc-service-config" does not exist, cloning...

Repository "/home/genius/my-app/deps/ca-bundle" does not exist, cloning...

Repository "/home/genius/my-app/deps/rpc-uart" does not exist, cloning...

Repository "/home/genius/my-app/deps/rpc-service-fs" does not exist, cloning...

WARNING: the lib "core" does not have version 2.4.3. Resorting to latest, but the build might fail.
It usually happens if you clone the latest version of some example app, and try to build it with the mos tool which is older than the lib (in this case, "core").
Consider using the version 2.4.3 of the app (git checkout 2.4.3), or using latest mos tool (mos update latest).
The --lib flag was not given for "core", checking repository
Repository "/home/genius/my-app/deps/core" does not exist, cloning...

WARNING: the lib "rpc-service-fs" does not have version 2.4.3. Resorting to latest, but the build might fail.
It usually happens if you clone the latest version of some example app, and try to build it with the mos tool which is older than the lib (in this case, "rpc-service-fs").
Consider using the version 2.4.3 of the app (git checkout 2.4.3), or using latest mos tool (mos update latest).
The --lib flag was not given for "rpc-service-fs", checking repository
Repository "/home/genius/my-app/deps/rpc-service-fs" does not exist, cloning...

WARNING: the lib "rpc-uart" does not have version 2.4.3. Resorting to latest, but the build might fail.
It usually happens if you clone the latest version of some example app, and try to build it with the mos tool which is older than the lib (in this case, "rpc-uart").
Consider using the version 2.4.3 of the app (git checkout 2.4.3), or using latest mos tool (mos update latest).
The --lib flag was not given for "rpc-uart", checking repository
Repository "/home/genius/my-app/deps/rpc-uart" does not exist, cloning...

Repository "/home/genius/my-app/deps/core" is updated recently enough, don't touch it
Hash is updated: "" -> "b41627b2ac06699518935eea0ac8b5ae96498305"
WARNING: the lib "ca-bundle" does not have version 2.4.3. Resorting to latest, but the build might fail.
It usually happens if you clone the latest version of some example app, and try to build it with the mos tool which is older than the lib (in this case, "ca-bundle").
Consider using the version 2.4.3 of the app (git checkout 2.4.3), or using latest mos tool (mos update latest).
The --lib flag was not given for "ca-bundle", checking repository
Repository "/home/genius/my-app/deps/ca-bundle" does not exist, cloning...

Falling back to sources for "core" (failed to fetch prebuilt binary: got 404 status code when accessed https://github.com/mongoose-os-libs/core/releases/download/2.4.3/libcore-esp32.a)
Prepared local dir: "/home/genius/my-app/deps/core"
Handling lib "mongoose"...
Handling lib "vfs-fs-spiffs"...
The --lib flag was not given for "mongoose", checking repository
The --lib flag was not given for "vfs-fs-spiffs", checking repository
Repository "/home/genius/my-app/deps/mongoose" does not exist, cloning...

Repository "/home/genius/my-app/deps/vfs-fs-spiffs" does not exist, cloning...

Error: preparing local copy of the lib "rpc-service-fs": cloning "https://github.com/mongoose-os-libs/rpc-service-fs" to "/home/genius/my-app/deps/rpc-service-fs": unexpected client error: Post https://github.com/mongoose-os-libs/rpc-service-fs/git-upload-pack: net/http: TLS handshake timeout

I am feel sorry for my poor English,thanks all

Comments

  • nliviunliviu Romania

    I can't reproduce. Try to rm -rf build/ deps/ and build again.
    Might also be something related to the internet connection.

  • Thanks for your reply,but it does work.I think the main trouble is some Link writtern in .yml files are invalid,so now I am finding them.

  • nliviunliviu Romania

    Does your application builds if you run mos build --platform esp32? (cloud build).

    Try this:
    - create a new directory, let's say test
    - cd test
    - mos init
    - mos build --local --platform esp32

    Thanked by 1Freshman
  • FreshmanFreshman China
    edited August 2

    Thanks for your reply,but it also does not works. you are right , mos build --platform esp32 this commend is build in cloud.

    LOG:WARNING: the lib "rpc-service-config" does not have version 2.4.3. Resorting to latest, but the build might fail.
    It usually happens if you clone the latest version of some example app, and try to build it with the mos tool which is older than the lib (in this case, "rpc-service-config").
    Consider using the version 2.4.3 of the app (git checkout 2.4.3), or using latest mos tool (mos update latest).
    Handling lib "ca-bundle"...
    The --lib flag was not given for "ca-bundle", checking repository
    Handling lib "rpc-service-fs"...
    Repository "/home/genius/test/deps/ca-bundle" does not exist, cloning...
    
    Handling lib "rpc-uart"...
    Handling lib "rpc-service-config"...
    The --lib flag was not given for "rpc-service-config", checking repository
    The --lib flag was not given for "rpc-uart", checking repository
    Repository "/home/genius/test/deps/rpc-service-config" does not exist, cloning...
    
    Repository "/home/genius/test/deps/rpc-uart" does not exist, cloning...
    
    Handling lib "core"...
    The --lib flag was not given for "core", checking repository
    Repository "/home/genius/test/deps/core" does not exist, cloning...
    
    The --lib flag was not given for "rpc-service-fs", checking repository
    Repository "/home/genius/test/deps/rpc-service-fs" does not exist, cloning...
    
    Hash is updated: "" -> "b41627b2ac06699518935eea0ac8b5ae96498305"
    Falling back to sources for "core" (failed to fetch prebuilt binary: got 404 status code when accessed https://github.com/mongoose-os-libs/core/releases/download/2.4.3/libcore-esp32.a)
    Prepared local dir: "/home/genius/test/deps/core"
    Handling lib "mongoose"...
    Handling lib "vfs-fs-spiffs"...
    The --lib flag was not given for "mongoose", checking repository
    The --lib flag was not given for "vfs-fs-spiffs", checking repository
    Repository "/home/genius/test/deps/mongoose" does not exist, cloning...
    
    Repository "/home/genius/test/deps/vfs-fs-spiffs" does not exist, cloning...
    
    Hash is updated: "" -> "c6063cb57eb6afd24941f822b11d4a01ae28da4c"
    Successfully fetched prebuilt binary for "mongoose" to "/home/genius/test/deps/mongoose/lib/esp32/libmongoose.a"
    Prepared local dir: "/home/genius/test/deps/mongoose"
    Handling lib "vfs-common"...
    The --lib flag was not given for "vfs-common", checking repository
    Repository "/home/genius/test/deps/vfs-common" does not exist, cloning...
    
    Hash is updated: "" -> "eaea73744ecd04f008f4f3df5da7726ea2b2fa70"
    Falling back to sources for "ca-bundle" (failed to fetch prebuilt binary: Get https://github.com/mongoose-os-libs/ca-bundle/releases/download/2.4.3/libca-bundle-esp32.a: net/http: TLS handshake timeout)
    Prepared local dir: "/home/genius/test/deps/ca-bundle"
    Hash is updated: "" -> "da1f6ce1c086a63325eaeaa789cfe3885500db22"
    Falling back to sources for "vfs-common" (failed to fetch prebuilt binary: got 404 status code when accessed https://github.com/mongoose-os-libs/vfs-common/releases/download/2.4.3/libvfs-common-esp32.a)
    Prepared local dir: "/home/genius/test/deps/vfs-common"
    WARNING: the lib "rpc-service-config" does not have version 2.4.3. Resorting to latest, but the build might fail.
    It usually happens if you clone the latest version of some example app, and try to build it with the mos tool which is older than the lib (in this case, "rpc-service-config").
    Consider using the version 2.4.3 of the app (git checkout 2.4.3), or using latest mos tool (mos update latest).
    The --lib flag was not given for "rpc-service-config", checking repository
    Repository "/home/genius/test/deps/rpc-service-config" does not exist, cloning...
    
    Error: preparing local copy of the lib "rpc-service-config": cloning "https://github.com/mongoose-os-libs/rpc-service-config" to "/home/genius/test/deps/rpc-service-config": unexpected client error: Post https://github.com/mongoose-os-libs/rpc-service-config/git-upload-pack: net/http: TLS handshake timeout
    
  • nliviunliviu Romania

    Did you try the cloud build?
    What is your mos version (mos --version)?

  • Yes I have tried many times, cloud build is always work,but the speed is too slow,build one time will cost my about 20min.My mos tool's version is 2.4.3,I keep it up to date.

  • nliviunliviu Romania

    "but the speed is too slow,build one time will cost my about 20min" veeery slow internet connection :(

  • .......Right,I think it is the fucking Great Fire Wall getting lose my package.
    Anyway ,thanks a lot!

Sign In or Register to comment.