Comments (5)
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.
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.
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.
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.
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)
- Not saving wifi credentials HOT 78
- Cannot upgrade via WEB [SOLVED, WITH PATCH] HOT 8
- More on issue #60
- Automatically getting esp_nonos_sdk? HOT 3
- Problem with Scan For Wifi HOT 2
- netburn failing HOT 12
- Feature request/question HOT 6
- Profiling of ESP8266 based code HOT 4
- Add make feature to reset via USB (nodeMCU configuration)
- Failed to detect MPU9250 using I2C HOT 2
- Try upgrading to RTOS SDK
- netburn doesn't work with esp8285 HOT 1
- esp_nonos_skd @ 80fbd83 missing HOT 4
- Undefined reference to `os_printf` HOT 6
- documentation HOT 1
- Investigate possible use of mask ROM for malloc/free
- [ webgui flashing ] HOT 6
- Error compiling projects HOT 5
- issues with instructions and python-serial HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp82xx.