Comments (5)
Did you try doing a clean and then rebuilding?
I have not gotten that error before.
from mobile-rr.
yes, I did. still can't find a solution.
steps that i did:
- cloned the solution
- installed platformIO and its dependencies (Windows)
- Initialized the project - successful
- selected ESP board - successful
- Rebuilt C/C++ - Successful
- Update platforms, package and libraries - Successful
- Clean - Successful
- Build - Error
int i, duration; ^ In file included from C:\users\--\.platformio\packages\framework-arduinoespressif8266\tools\sdk\include/user_interface.h:11:0, from D:/esp/project/mobile-rr/src/mobile-rr.ino:97: D:/esp/project/mobile-rr/src/mobile-rr.ino: In function 'void setup()': C:\users\--\.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip\include/lwip/ip_addr.h:220:43: error: invalid cast from type 'IPAddress' to type 'u 8_t* {aka unsigned char*}'
from mobile-rr.
See if it will build with the "build_flags" that are commented out in the platformio.ini.
It's the line just above the current "build_flags" setting. Just comment the current line and uncomment the other.
from mobile-rr.
Still having that error :( here's the full build logs. still finding another way, can i port this project to arduinoIDE?
`^
C:\users\mark.sancho.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip\include/lwip/ip_addr.h:226:38: note: in expansion of macro 'ip4_addr1'
#define ip4_addr1_16(ipaddr) ((u16_t)ip4_addr1(ipaddr))
^
C:\users\mark.sancho.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip\include/lwip/ip_addr.h:240:24: note: in expansion of macro 'ip4_addr1_16'
#define IP2STR(ipaddr) ip4_addr1_16(ipaddr),
^
D:/esp/project/mobile-rr/src/mobile-rr.ino:2651:28: note: in expansion of macro 'IP2STR'
C:\users\mark.sancho.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip\include/lwip/ip_addr.h:221:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'
#define ip4_addr2(ipaddr) (((u8_t*)(ipaddr))[1])
^
C:\users\mark.sancho.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip\include/lwip/ip_addr.h:227:38: note: in expansion of macro 'ip4_addr2'
#define ip4_addr2_16(ipaddr) ((u16_t)ip4_addr2(ipaddr))
^
C:\users\mark.sancho.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip\include/lwip/ip_addr.h:241:5: note: in expansion of macro 'ip4_addr2_16'
ip4_addr2_16(ipaddr),
^
D:/esp/project/mobile-rr/src/mobile-rr.ino:2651:28: note: in expansion of macro 'IP2STR'
C:\users\mark.sancho.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip\include/lwip/ip_addr.h:222:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'
#define ip4_addr3(ipaddr) (((u8_t*)(ipaddr))[2])
^
C:\users\mark.sancho.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip\include/lwip/ip_addr.h:228:38: note: in expansion of macro 'ip4_addr3'
#define ip4_addr3_16(ipaddr) ((u16_t)ip4_addr3(ipaddr))
^
C:\users\mark.sancho.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip\include/lwip/ip_addr.h:242:5: note: in expansion of macro 'ip4_addr3_16'
ip4_addr3_16(ipaddr),
^
D:/esp/project/mobile-rr/src/mobile-rr.ino:2651:28: note: in expansion of macro 'IP2STR'
C:\users\mark.sancho.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip\include/lwip/ip_addr.h:223:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'
#define ip4_addr4(ipaddr) (((u8_t*)(ipaddr))[3])
^
C:\users\mark.sancho.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip\include/lwip/ip_addr.h:229:38: note: in expansion of macro 'ip4_addr4'
#define ip4_addr4_16(ipaddr) ((u16_t)ip4_addr4(ipaddr))
^
C:\users\mark.sancho.platformio\packages\framework-arduinoespressif8266\tools\sdk\lwip\include/lwip/ip_addr.h:243:5: note: in expansion of macro 'ip4_addr4_16'
ip4_addr4_16(ipaddr)
^
D:/esp/project/mobile-rr/src/mobile-rr.ino:2651:28: note: in expansion of macro 'IP2STR'
Compiling .pioenvs\d1_mini\FrameworkArduino\Stream.o
*** [.pioenvs\d1_mini\src\mobile-rr.ino.o] Error 1
[ERROR] Took 6.19 seconds
PlatformIO: BuildFile 0Project 0No IssuesREADME.md1:1
CRLF6 deprecationsUTF-8GitHub Markdownmaster5 updates
`
from mobile-rr.
What does your platformio.ini file look like?
from mobile-rr.
Related Issues (20)
- Feature: Disconnect station from AP after receiving Rick Roll
- SSID changes not processed HOT 5
- Too many redirects on windows, ios and android HOT 1
- Broadcast SSID remains unchanged after changing variable HOT 1
- Browser Error HOT 3
- lib ESPAsyncWebServer not installed HOT 1
- no loading/welcome page pop-up HOT 1
- Unable to build -> '_ws_client' does not name a type HOT 7
- Can't log in to console HOT 3
- HOT 3
- Curiosity HOT 3
- HOT 1
- Can't build mobile-rr in Atom or VSCode with Platformio HOT 5
- 'class DNSServer' has no member named 'onquery' HOT 5
- serial.serialutil.SerialException: [Errno 2] could not open port /dev/cu.wchusbserial14440: [Errno 2] No such file or directory: '/dev/cu.wchusbserial14440' HOT 4
- Can we still make this work? HOT 3
- What libraries are needed I cant compile it?!
- Error when compiling HOT 8
- Error Compiling HOT 3
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 mobile-rr.