dingo35 / SmartEVSE-3.5

Smart Electric Vehicle Charging Station (EVSE)
MIT License
38 stars 13 forks source link

Trying to compile current version on W10 / VS Code #63

Closed fluppie closed 2 months ago

fluppie commented 2 months ago

Trying to compile here, when extra_scripts = pre:packfs.py is enabled, it doesn't even start compiling. When commenting out it almost finishes:


|-- Update @ 2.0.0
|-- WiFi @ 2.0.0
|-- RemoteDebug @ 3.0.5
Building in release mode
Linking .pio\build\release\firmware.elf
c:/users/philippe/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\release\src\mongoose.c.o:(.literal.packed_open+0x0): undefined reference to `mg_unpack'
c:/users/philippe/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\release\src\mongoose.c.o:(.literal.packed_stat+0x0): undefined reference to `mg_unlist'
c:/users/philippe/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\release\src\mongoose.c.o: in function `packed_open':
C:\Users\Philippe\Documents\GitHub\SmartEVSE-3.5_ORG\SmartEVSE-3/src/mongoose.c:1893: undefined reference to `mg_unpack'
c:/users/philippe/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\release\src\mongoose.c.o: in function `packed_stat':
C:\Users\Philippe\Documents\GitHub\SmartEVSE-3.5_ORG\SmartEVSE-3/src/mongoose.c:1863: undefined reference to `mg_unpack'
c:/users/philippe/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Philippe\Documents\GitHub\SmartEVSE-3.5_ORG\SmartEVSE-3/src/mongoose.c:1865: undefined reference to `mg_unlist'   
c:/users/philippe/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\release\src\mongoose.c.o: in function `packed_list':
C:\Users\Philippe\Documents\GitHub\SmartEVSE-3.5_ORG\SmartEVSE-3/src/mongoose.c:1877: undefined reference to `mg_unlist'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\release\firmware.elf] Error 1
======================================================== [FAILED] Took 22.20 seconds ========================================================

When re-enabling packfs.py I get

Processing release (platform: espressif32 @ 6.6.0; board: esp32dev; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
'rm' is not recognized as an internal or external command,
operable program or batch file.
A subdirectory or file pack.tmp already exists.
'cc' is not recognized as an internal or external command,
operable program or batch file.
========================================================= [FAILED] Took 2.10 seconds =========================================================

I guess if I would have had a Linux system, it would compile without any issue?

dingo35 commented 2 months ago

Correct, we're working on this!

dingo35 commented 2 months ago

@fluppie Could you try to build current master branch on Win10? I had an old Win8.1 version installed but wound up in a maze of policies and restrictions, which reminded me why I love Linux so much :-)

fluppie commented 2 months ago

Nope, not yet :-)

 *  Executing task in folder SmartEVSE-3: C:\Users\Philippe\.platformio\penv\Scripts\platformio.exe run --environment release 

Processing release (platform: espressif32 @ 6.6.0; board: esp32dev; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
'rm' is not recognized as an internal or external command,
operable program or batch file.
A subdirectory or file pack.tmp already exists.
'cp' is not recognized as an internal or external command,
operable program or batch file.
========================================================= [FAILED] Took 2.88 seconds =========================================================
 *  The terminal process "C:\Users\Philippe\.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'release'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 
dingo36 commented 2 months ago

@fluppie same player shoots again...

fluppie commented 2 months ago
 *  Executing task in folder SmartEVSE-3: C:\Users\Philippe\.platformio\penv\Scripts\platformio.exe run --environment release 

Processing release (platform: espressif32 @ 6.6.0; board: esp32dev; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
An error occurred: [WinError 32] Het proces heeft geen toegang tot het bestand omdat het door een ander

proces wordt gebruikt: 'pack.tmp/data/app.js'
========================================================= [FAILED] Took 2.20 seconds =========================================================
 *  The terminal process "C:\Users\Philippe\.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'release'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

In the meantime I made a Ubuntu VM and I'm able to compile it under Linux.

dingo35 commented 2 months ago

Solved since 342467eb3

fluppie commented 2 months ago

Works :)