FeralAI / GP2040

Gamepad firmware for Raspberry Pi Pico and other RP2040 microcontrollers supporting Nintendo Switch, XInput and DirectInput
https://gp2040.info
MIT License
577 stars 125 forks source link

Error when building from source #76

Open syaroz opened 2 years ago

syaroz commented 2 years ago

hi, thanks for pico arcade firmware.

i got an error when building firmware from source code.

Compiling .pio\build\raspberry-pi-pico\lib2ad\httpd\fs.o Compiling .pio\build\raspberry-pi-pico\lib2ad\httpd\fsdata.o Compiling .pio\build\raspberry-pi-pico\lib2ad\httpd\httpd.o Archiving .pio\build\raspberry-pi-pico\libae7\liblwip.a Compiling .pio\build\raspberry-pi-pico\lib888\rndis\rndis.o In file included from C:\Users\Administrator.platformio\packages\framework-wizio-pico\SDK\lib\tinyusb\src/common/tusb_common.h:68:0, from C:\Users\Administrator.platformio\packages\framework-wizio-pico\SDK\lib\tinyusb\src/tusb.h:37, from lib\rndis\rndis.c:46: C:\Users\Administrator.platformio\packages\framework-wizio-pico\SDK\lib\tinyusb\src/tusb_option.h:274:6: warning: #warning "CFG_TUD_NET is renamed to CFG_TUD_ECM_RNDIS" [-Wcpp]

warning "CFG_TUD_NET is renamed to CFG_TUD_ECM_RNDIS"

  ^~~~~~~

lib\rndis\rndis.c: In function 'linkoutput_fn': lib\rndis\rndis.c:100:9: error: too few arguments to function 'tud_network_can_xmit' if (tud_network_can_xmit()) ^~~~~Compiling .pio\build\raspberry-pi-pico\lib888\rndis\rndis_reports.o


compilation terminated due to -Wfatal-errors.
*** [.pio\build\raspberry-pi-pico\lib888\rndis\rndis.o] Error 1
In file included from C:\Users\Administrator\.platformio\packages\framework-wizio-pico\SDK\lib\tinyusb\src/common/tusb_common.h:68:0,
                 from C:\Users\Administrator\.platformio\packages\framework-wizio-pico\SDK\lib\tinyusb\src/class/cdc/cdc.h:35,
                 from C:\Users\Administrator\.platformio\packages\framework-wizio-pico\SDK\lib\tinyusb\src/class/net/net_device.h:31,        
                 from lib\rndis\rndis_reports.c:33:
C:\Users\Administrator\.platformio\packages\framework-wizio-pico\SDK\lib\tinyusb\src/tusb_option.h:274:6: warning: #warning "CFG_TUD_NET is renamed to CFG_TUD_ECM_RNDIS" [-Wcpp]
     #warning "CFG_TUD_NET is renamed to CFG_TUD_ECM_RNDIS"
      ^~~~~~~
======================================================== [FAILED] Took 17.76 seconds ========================================================
Environment        Status    Duration
-----------------  --------  ------------
raspberry-pi-pico  FAILED    00:00:17.759
=================================================== 1 failed, 0 succeeded in 00:00:17.759 ===================================================The terminal process "C:\Users\Administrator\.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'raspberry-pi-pico'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

how to build succesfully from source?

thank you.
mxd1365 commented 2 years ago

I can confirm that I'm getting the same error when building from a new clone. It looks like the "WizIO - Raspberry Pi Pico" platform in PlatformIDE was updated and broke the current main branch.

TheTrainGoes commented 2 years ago

Hi @syaroz and @mxd1365 ,

There was an update recently to Wizio-Pico that caused some issues for compiling through VS.

From one of the gents working on development: "if you are trying to build the latest GP2040-CE, you will need to uninstall your current Wizio platform and reinstall using my modified fork here: https://github.com/arntsonl/wizio-pico.git "

As a note - This project is no longer maintained. Please check out the Community Edition project and post your issue there if it continues. The Community Edition issues section can be found here: https://github.com/OpenStickFoundation/GP2040-CE/issues