bitluni / ESP32VGA

http://bitluni.net/esp32-vga
128 stars 24 forks source link

No one exemple compile #4

Closed techno94 closed 5 years ago

techno94 commented 5 years ago

hello, i've trie all the exemple with the new lib. no one compile. it's all the time the same bug :

In file included from \hardware\espressif\esp32\libraries\ESP32Lib\src/ESP32Lib.h:7:0, from \espressif\esp32\libraries\ESP32Lib\examples\VGAHighRes\VGAHighRes.ino:10:

\espressif\esp32\libraries\ESP32Lib\src/Graphics/Mesh.h: In static member function 'static Mesh::Color Mesh::basicVertexShader(int, short int, short int, short int, const signed char, Mesh::Color)':

\espressif\esp32\libraries\ESP32Lib\src/Graphics/Mesh.h:54:32: error: 'scaleN' was not declared in this scope const float nx = normal[0] * scaleN;

bitluni commented 5 years ago

sorry... was a simple bug.. latest version should have fixed it

techno94 commented 5 years ago

Hello, thanks for the quick fixe and for the awesome librarie i arrived to display most of the exemples. (demo, 3dengine, demo14, sprites, helloworld)

but, i still have bug at compilation for VGAWiFiTextTerminal

here it is : In file included from espressif\esp32\libraries\ESP32Lib\src/ESP32Lib.h:8:0, from Temp\arduino_modified_sketch_452553\VGAWiFiTextTerminal.ino:11:

espressif\esp32\libraries\ESP32Lib\src/Graphics/Mesh.h: In static member function 'static Mesh::Color Mesh::basicTriangleShaderNormals(int, short int, short int, short int, const signed char, Mesh::Color)':

espressif\esp32\libraries\ESP32Lib\src/Graphics/Mesh.h:66:66: error: there are no arguments to 'max' that depend on a template parameter, so a declaration of 'max' must be available [-fpermissive]

const float NdotL = max(0.0f, nx L[0] + ny L[1] + nz * L[2]);

                                                              ^

espressif\esp32\libraries\ESP32Lib\src/Graphics/Mesh.h:66:66: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)

thank you

bitluni commented 5 years ago

i'll check it

bitluni commented 5 years ago

version 0.0.9 should fix it are you using arduino or platform io? i didn't get this error but I can imagine it could come up since arduino.h wasn't included it would be cool if you could check the examples with your compiler

techno94 commented 5 years ago

hello, thanks for you re reactivitie i use arduino IDE i will try, and i will say if it's fixed

techno94 commented 5 years ago

Hello, i've update my espressif board (it as 10 month) and know it compile. i haven't test with the board but i think it s OK Thanks a lot and sorry for the disturb.

did you think that you could make an exemple with you're ESP32SpaceShooter but with VGA

techno94 commented 5 years ago

Hello, with the update of my espressif folder, it work perfectly thanks a lot did you think that you could make an exemple of ESP32SpaceShooter but with VGA ?? img_20190212_203220 img_20190212_203232