Giter Club home page Giter Club logo

Comments (5)

e-neko avatar e-neko commented on September 15, 2024

Did you consider using Linux virtual machine, for example a virtualbox image? I've been using Ubuntu VMs for development for many years now, they can share folders/files with your Windows host, simplifying context switching immensely.

from esp82xx.

con-f-use avatar con-f-use commented on September 15, 2024

The easiest way would be to develop in a Linux virtual machine, making use of shared folders between Windows host and Linux guest, if necessary. That way you could edit the html with Windows tools and get it to the esp with Linux.

The more complicated way is to cross-compile the binary. Usually when cross-compiling C code, I do it on Linux for a Windows target. For that I use mingw (sudo apt-get install mingw-w64). My guess is the line to invoke is something like:

x86_64-w64-mingw32-gcc -D_FILE_OFFSET_BITS=64 -D_DIRENT_HAVE_D_TYPE mfsmaker.c -o mfsmaker.exe

from esp82xx.

king2 avatar king2 commented on September 15, 2024

Thanks you for answer!
I will need to setup Linux VMs on all 3 notebooks just for compiling pages. I will better try to compile it :)

I did tried to use msys2 to compile it, but it tells me:

mfsmaker.c:61:12: error: 'struct dirent' has no member named 'd_type'; did you mean 'd_name'?
mfsmaker.c:61:21: error: 'DT_REG' undeclared (first use in this function)

even if I use -D_DIRENT_HAVE_D_TYPE (but I have used i686-w64-mingw32-gcc.exe).

from esp82xx.

e-neko avatar e-neko commented on September 15, 2024

You only need to prepare vm image once, then copy it over to all three notebooks. Alternatively, put it on a fast USB3 memory stick.

from esp82xx.

king2 avatar king2 commented on September 15, 2024

I have compiled mfsmaker.exe succesfully (removed DT_REG checking and added checking for "." and "..") - I have no folders inside webpage, so I can do it safely.
It works and can compile webpage. Thank you for help!

from esp82xx.

Related Issues (20)

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.