Coder Social home page Coder Social logo

build on esp32 about vedis HOT 2 CLOSED

symisc avatar symisc commented on June 14, 2024
build on esp32

from vedis.

Comments (2)

symisc avatar symisc commented on June 14, 2024

While compiler warning about unused variables are harmless, the last one about vedisExportBuiltinVfs() does mean that no suitable VFS layer were found for the architecture you are targeting; In which case, Vedis cannot save anything to disk, nor create files, only in-memory operations are allowed. If the architecture you are targeting is a POSIX-Like, then define UNIXES as a global compile directive to build the library with the UNIX VFS.

from vedis.

Yardie- avatar Yardie- commented on June 14, 2024

Ok well what I am writting to is a simple SPI Flash FAT file system on an Espresif System on a chip ESP32-PICO in Espressif's on build system. Not really unix not really an OS at all.
https://www.espressif.com/en/products/socs/esp32
If I compile the library as is I get
../main/vedis.c:3076:73: error: parameter 'pUserData' set but not used [-Werror=unused-but-set-parameter]
static sxi32 vedisTokenizeInput(SyStream *pStream,SyToken *pToken,void *pUserData,void *pCtxData)
~~~~~~^~~~~~~~~
../main/vedis.c:3076:89: error: parameter 'pCtxData' set but not used [-Werror=unused-but-set-parameter]
static sxi32 vedisTokenizeInput(SyStream *pStream,SyToken *pToken,void *pUserData,void *pCtxData)
~~~~~~^~~~~~~~
In file included from ../main/vedis.c:7298:
/home/g/esp/esp-idf/components/newlib/platform_include/sys/uio.h: At top level:
/home/g/esp/esp-idf/components/newlib/platform_include/sys/uio.h:17:32: warning: 'struct iovec' declared inside parameter list will not be visible outside of this definition or declaration
int writev(int s, const struct iovec *iov, int iovcnt);
^~~~~
/home/g/esp/esp-idf/components/newlib/platform_include/sys/uio.h:19:36: warning: 'struct iovec' declared inside parameter list will not be visible outside of this definition or declaration
ssize_t readv(int fd, const struct iovec *iov, int iovcnt);
^~~~~
../main/vedis.c:7300:10: fatal error: sys/mman.h: No such file or directory
#include <sys/mman.h>
^~~~~~~~~~~~
cc1: some warnings being treated as errors
compilation terminated.
I am fairly new to this environment but people have had sqlite running on it and also the nodemcu system uses Redis going on the same chip.

I will eventually find the right way to implement the mmap functions It must be in there somewhere but my personal requirements can be satisfied with a simple csv. So maybe personally I will just stick with that for now.
I think there is a good place for a small lightweight database for these SOC chips though they are growing in size and popularity.
I am just not the man for that job.
Thanks heaps for your reply.

:) Greg

from vedis.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.